From dfabcd13cb57d423f627545699d12b365b9afc55 Mon Sep 17 00:00:00 2001 From: Shailesh Parmar Date: Thu, 9 Oct 2025 20:35:07 +0530 Subject: [PATCH] feat: Introduce RequiredLabel component for consistent required field styling --- ...InlineTestCaseIncidentStatus.component.tsx | 23 +++---------------- .../RequiredLabel/RequiredLabel.styled.tsx | 21 +++++++++++++++++ 2 files changed, 24 insertions(+), 20 deletions(-) create mode 100644 openmetadata-ui/src/main/resources/ui/src/components/common/MuiComponents/RequiredLabel/RequiredLabel.styled.tsx diff --git a/openmetadata-ui/src/main/resources/ui/src/components/DataQuality/IncidentManager/TestCaseStatus/InlineTestCaseIncidentStatus.component.tsx b/openmetadata-ui/src/main/resources/ui/src/components/DataQuality/IncidentManager/TestCaseStatus/InlineTestCaseIncidentStatus.component.tsx index a7521ceb0ac..fed8c70c050 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/DataQuality/IncidentManager/TestCaseStatus/InlineTestCaseIncidentStatus.component.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/DataQuality/IncidentManager/TestCaseStatus/InlineTestCaseIncidentStatus.component.tsx @@ -54,6 +54,7 @@ import { } from '../../../../utils/EntityUtils'; import { showErrorToast } from '../../../../utils/ToastUtils'; import Loader from '../../../common/Loader/Loader'; +import { RequiredLabel } from '../../../common/MuiComponents/RequiredLabel/RequiredLabel.styled'; import { UserTag } from '../../../common/UserTag/UserTag.component'; import { TestCaseStatusIncidentManagerProps } from './TestCaseIncidentManagerStatus.interface'; @@ -589,16 +590,7 @@ const InlineTestCaseIncidentStatus = ({ - - {t('label.reason')} - + {t('label.reason')} {Object.values(TestCaseFailureReasonType).map((reason) => ( - - {t('label.comment')} - + {t('label.comment')} ({ + fontSize: 13, + fontWeight: 500, + color: theme.palette.grey[800], + '&::after': { content: '" *"', color: theme.palette.error.main }, +}));