diff --git a/openmetadata-ui/src/main/resources/ui/src/components/Database/Profiler/DataObservability/TabFilters/TabFilters.tsx b/openmetadata-ui/src/main/resources/ui/src/components/Database/Profiler/DataObservability/TabFilters/TabFilters.tsx index d15ef980503..b76c78965b3 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/Database/Profiler/DataObservability/TabFilters/TabFilters.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/Database/Profiler/DataObservability/TabFilters/TabFilters.tsx @@ -168,7 +168,6 @@ const TabFilters = () => { minWidth: '36px', height: '32px', }} - title={t('label.setting-plural')} variant="outlined" onClick={onSettingButtonClick}> diff --git a/openmetadata-ui/src/main/resources/ui/src/components/Database/Profiler/TableProfiler/ColumnSummary.tsx b/openmetadata-ui/src/main/resources/ui/src/components/Database/Profiler/TableProfiler/ColumnSummary.tsx index 8cfea6bb364..3ab7bcdd8a5 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/Database/Profiler/TableProfiler/ColumnSummary.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/Database/Profiler/TableProfiler/ColumnSummary.tsx @@ -10,11 +10,20 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import { Space, Typography } from 'antd'; -import { isEmpty } from 'lodash'; -import { FC } from 'react'; +import { + Card, + Divider, + Grid, + Stack, + Typography, + useTheme, +} from '@mui/material'; +import { FC, useMemo } from 'react'; +import { useTranslation } from 'react-i18next'; import { Column } from '../../../../generated/entity/data/container'; import { getEntityName } from '../../../../utils/EntityUtils'; +import { getFilterTags } from '../../../../utils/TableTags/TableTags.utils'; +import { DataPill } from '../../../common/DataPill/DataPill.styled'; import RichTextEditorPreviewerV1 from '../../../common/RichTextEditor/RichTextEditorPreviewerV1'; import TagsViewer from '../../../Tag/TagsViewer/TagsViewer'; @@ -23,26 +32,66 @@ interface ColumnSummaryProps { } const ColumnSummary: FC = ({ column }) => { + const theme = useTheme(); + const { t } = useTranslation(); + + const { Classification, Glossary } = useMemo(() => { + return getFilterTags(column.tags ?? []); + }, [column.tags]); + return ( -
- - {getEntityName(column)} - - {`(${column.dataType})`} - - - - - {!isEmpty(column.tags) ? ( -
- -
- ) : null} -
+ + + + {getEntityName(column)} + + + {column.dataType} + + + + + + + + {t('label.glossary-term-plural')} + + + + {t('label.tag-plural')} + + + + + + ); }; diff --git a/openmetadata-ui/src/main/resources/ui/src/components/Database/Profiler/TableProfiler/SingleColumnProfile.tsx b/openmetadata-ui/src/main/resources/ui/src/components/Database/Profiler/TableProfiler/SingleColumnProfile.tsx index b1e9db76db9..fb80bd5ae94 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/Database/Profiler/TableProfiler/SingleColumnProfile.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/Database/Profiler/TableProfiler/SingleColumnProfile.tsx @@ -10,7 +10,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import { Stack } from '@mui/material'; +import { Grid, Stack } from '@mui/material'; import { AxiosError } from 'axios'; import { find, first, isString, last, pick } from 'lodash'; import { DateRangeObject } from 'Models'; @@ -167,7 +167,15 @@ const SingleColumnProfile: FC = ({ className="m-b-lg" data-testid="profiler-tab-container" spacing="30px"> - {selectedColumn && } + {selectedColumn && ( + + + + + "DQ widget" + + )} + = ({ const popoverRenderElement = useMemo( () => sortedTagsBySource.slice(sizeCap).length > 0 && ( -
+
@@ -101,7 +101,9 @@ const TagsViewer: FunctionComponent = ({ placement="bottom" trigger="click"> {`+${ sortedTagsBySource.length - (sizeCap ?? 0) } more`} diff --git a/openmetadata-ui/src/main/resources/ui/src/components/Tag/TagsViewer/tags-viewer.less b/openmetadata-ui/src/main/resources/ui/src/components/Tag/TagsViewer/tags-viewer.less index 6f41f77eaa9..c9263b2d052 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/Tag/TagsViewer/tags-viewer.less +++ b/openmetadata-ui/src/main/resources/ui/src/components/Tag/TagsViewer/tags-viewer.less @@ -44,3 +44,16 @@ } } } + +.plus-more-tag { + &.new-look { + color: @primary-color; + font-size: 12px; + font-weight: 500; + background-color: unset; + border: none; + display: inline-flex; + align-items: center; + height: 100%; + } +} diff --git a/openmetadata-ui/src/main/resources/ui/src/components/common/SummaryCard/SummaryCardV1.tsx b/openmetadata-ui/src/main/resources/ui/src/components/common/SummaryCard/SummaryCardV1.tsx index 56c4590e8a5..ded52a915d1 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/common/SummaryCard/SummaryCardV1.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/common/SummaryCard/SummaryCardV1.tsx @@ -28,7 +28,7 @@ const SummaryCardV1 = ({