From b93a8c8d0d9fb14e7f6fbee7ea1f7fd3d07ab27c Mon Sep 17 00:00:00 2001 From: Sachin Chaurasiya Date: Tue, 8 Mar 2022 18:27:34 +0530 Subject: [PATCH] UI : Data profiler and Feed changes (#3267) --- .../ActivityFeedPanel/ActivityFeedPanel.tsx | 54 ++++++++--- .../ActivityThreadPanel.tsx | 29 ++++-- .../DatasetDetails.interface.ts | 2 +- .../TableProfiler/TableProfiler.component.tsx | 92 ++++++++++++------- .../ui/src/components/app-bar/Appbar.tsx | 6 +- .../ui/src/constants/profiler.constant.ts | 3 + .../ui/src/generated/entity/data/table.ts | 2 + .../DatasetDetailsPage.component.tsx | 8 +- .../pages/RolesPage/RolesPage.component.tsx | 2 +- .../resources/ui/src/utils/CommonUtils.tsx | 2 +- .../resources/ui/src/utils/ProfilerUtils.ts | 37 ++++++++ 11 files changed, 178 insertions(+), 59 deletions(-) create mode 100644 openmetadata-ui/src/main/resources/ui/src/utils/ProfilerUtils.ts diff --git a/openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityFeedPanel/ActivityFeedPanel.tsx b/openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityFeedPanel/ActivityFeedPanel.tsx index 53a37cbdf57..c7862300f60 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityFeedPanel/ActivityFeedPanel.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityFeedPanel/ActivityFeedPanel.tsx @@ -23,6 +23,8 @@ import React, { } from 'react'; import { getFeedById } from '../../../axiosAPIs/feedsAPI'; import { getEntityField, getReplyText } from '../../../utils/FeedUtils'; +import { Button } from '../../buttons/Button/Button'; +import PopOver from '../../common/popover/PopOver'; import Loader from '../../Loader/Loader'; import ActivityFeedCard from '../ActivityFeedCard/ActivityFeedCard'; import ActivityFeedEditor from '../ActivityFeedEditor/ActivityFeedEditor'; @@ -39,6 +41,7 @@ interface FeedPanelHeaderProp Pick { entityField: string; noun?: string; + onShowNewConversation?: (v: boolean) => void; } interface FeedPanelOverlayProp extends HTMLAttributes, @@ -53,6 +56,7 @@ export const FeedPanelHeader: FC = ({ entityField, className, noun, + onShowNewConversation, }) => { return (
@@ -61,21 +65,41 @@ export const FeedPanelHeader: FC = ({ {noun ? noun : 'Conversation'} on{' '} {entityField}

- - - +
+ {onShowNewConversation ? ( + +