From a1e728ad8444b47c3e304c91b0e44e00ba42a61a Mon Sep 17 00:00:00 2001 From: Pranita Fulsundar Date: Wed, 2 Apr 2025 21:55:56 +0530 Subject: [PATCH] fix: tour page and tags count inside table (#20583) --- .../ActivityFeedList/ActivityFeedListV1New.component.tsx | 2 +- .../src/components/Database/TableTags/TableTags.component.tsx | 2 ++ .../resources/ui/src/components/Tag/TagsViewer/TagsViewer.tsx | 2 +- .../src/main/resources/ui/src/constants/constants.ts | 1 + openmetadata-ui/src/main/resources/ui/src/utils/TourUtils.tsx | 2 +- 5 files changed, 6 insertions(+), 3 deletions(-) diff --git a/openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityFeedList/ActivityFeedListV1New.component.tsx b/openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityFeedList/ActivityFeedListV1New.component.tsx index 42f25afc8b6..1d1e1056121 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityFeedList/ActivityFeedListV1New.component.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityFeedList/ActivityFeedListV1New.component.tsx @@ -116,7 +116,7 @@ const ActivityFeedListV1New = ({ return ; } - if (isEmpty(entityThread) && !isLoading) { + if (isEmpty(entityThread) && isEmpty(feedList) && !isLoading) { return (
({ selectedTags={tags} showHeader={false} showInlineEditButton={showInlineEditTagButton} + sizeCap={TAG_LIST_SIZE} tagType={type} onSelectionChange={async (selectedTags) => { await handleTagSelection(selectedTags, record); diff --git a/openmetadata-ui/src/main/resources/ui/src/components/Tag/TagsViewer/TagsViewer.tsx b/openmetadata-ui/src/main/resources/ui/src/components/Tag/TagsViewer/TagsViewer.tsx index ce2e43ead38..e58c708e559 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/Tag/TagsViewer/TagsViewer.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/Tag/TagsViewer/TagsViewer.tsx @@ -91,7 +91,7 @@ const TagsViewer: FunctionComponent = ({ const popoverRenderElement = useMemo( () => sortedTagsBySource.slice(sizeCap).length > 0 && ( -
+
diff --git a/openmetadata-ui/src/main/resources/ui/src/constants/constants.ts b/openmetadata-ui/src/main/resources/ui/src/constants/constants.ts index d48435bb085..2b6d83e2e15 100644 --- a/openmetadata-ui/src/main/resources/ui/src/constants/constants.ts +++ b/openmetadata-ui/src/main/resources/ui/src/constants/constants.ts @@ -55,6 +55,7 @@ export const PAGE_SIZE_LARGE = 50; export const ES_MAX_PAGE_SIZE = 10000; export const API_RES_MAX_SIZE = 100000; export const LIST_SIZE = 5; +export const TAG_LIST_SIZE = 3; export const ADD_USER_CONTAINER_HEIGHT = 250; export const INGESTION_PROGRESS_START_VAL = 20; export const INGESTION_PROGRESS_END_VAL = 80; diff --git a/openmetadata-ui/src/main/resources/ui/src/utils/TourUtils.tsx b/openmetadata-ui/src/main/resources/ui/src/utils/TourUtils.tsx index dc302023506..5a02175f5a5 100644 --- a/openmetadata-ui/src/main/resources/ui/src/utils/TourUtils.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/utils/TourUtils.tsx @@ -228,7 +228,7 @@ export const getTourSteps = ({ i18nKey="message.tour-step-click-on-entity-tab" renderElement={} values={{ - text: i18next.t('label.profiler'), + text: i18next.t('label.data-obervability'), }} />