From ccf585efbac5634f9666ca451ae02d8d593a73f3 Mon Sep 17 00:00:00 2001 From: Shailesh Parmar Date: Thu, 29 Jun 2023 22:07:35 +0530 Subject: [PATCH] ui: worked on ui feedback part 2 (#12228) * updated request description in topic details * miner fix * worked on feedback * fixed redirection link for activity feed * fixed failing test * miner fix * fixed infinite loading issue when there is no permission --- .../components/TestCaseForm.tsx | 6 +- .../ui/src/components/AppBar/Appbar.tsx | 2 +- .../NotificationBox.component.tsx | 10 +- .../ui/src/components/Services/Services.tsx | 2 +- .../Component/ProfilerSettingsModal.tsx | 11 +- .../TableProfiler/tableProfiler.less | 7 + .../TopicDetails/TopicDetails.component.tsx | 15 +- .../TopicSchema/TopicSchema.interface.tsx | 6 + .../TopicSchema/TopicSchema.test.tsx | 1 + .../TopicDetails/TopicSchema/TopicSchema.tsx | 160 ++++++++++++++++-- .../TopicVersion/TopicVersion.component.tsx | 1 + .../src/components/Users/Users.component.tsx | 28 +-- .../common/PopOverCard/EntityPopOverCard.tsx | 8 + .../ui/src/locale/languages/en-us.json | 1 + .../ui/src/locale/languages/es-es.json | 1 + .../ui/src/locale/languages/fr-fr.json | 1 + .../ui/src/locale/languages/ja-jp.json | 1 + .../ui/src/locale/languages/pt-br.json | 1 + .../ui/src/locale/languages/zh-cn.json | 1 + .../AddQueryPage/AddQueryPage.component.tsx | 4 +- .../LogsViewer/LogsViewer.component.test.tsx | 8 + .../pages/LogsViewer/LogsViewer.component.tsx | 150 ++++++++-------- .../TableDetailsPageV1/TableDetailsPageV1.tsx | 9 +- .../resources/ui/src/utils/CommonUtils.tsx | 4 + .../ui/src/utils/LogsViewer.utils.ts | 9 +- .../resources/ui/src/utils/ServiceUtils.tsx | 10 +- .../resources/ui/src/utils/TableUtils.tsx | 9 +- 27 files changed, 340 insertions(+), 126 deletions(-) diff --git a/openmetadata-ui/src/main/resources/ui/src/components/AddDataQualityTest/components/TestCaseForm.tsx b/openmetadata-ui/src/main/resources/ui/src/components/AddDataQualityTest/components/TestCaseForm.tsx index c426b35b41a..fb36bb17a5e 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/AddDataQualityTest/components/TestCaseForm.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/AddDataQualityTest/components/TestCaseForm.tsx @@ -140,9 +140,9 @@ const TestCaseForm: React.FC = ({ ); const name = value.testName?.trim() || - `${columnName ? columnName : table.name}_${snakeCase( - selectedTestType - )}_${cryptoRandomString({ + `${replaceAllSpacialCharWith_( + columnName ? columnName : table.name + )}_${snakeCase(selectedTestType)}_${cryptoRandomString({ length: 4, type: 'alphanumeric', })}`; diff --git a/openmetadata-ui/src/main/resources/ui/src/components/AppBar/Appbar.tsx b/openmetadata-ui/src/main/resources/ui/src/components/AppBar/Appbar.tsx index eecf1f3780d..e0c70824271 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/AppBar/Appbar.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/AppBar/Appbar.tsx @@ -319,9 +319,9 @@ const Appbar: React.FC = (): JSX.Element => { {remainingTeamsCount} {t('label.more')} ) : null} +
) : null} -
); }; diff --git a/openmetadata-ui/src/main/resources/ui/src/components/NotificationBox/NotificationBox.component.tsx b/openmetadata-ui/src/main/resources/ui/src/components/NotificationBox/NotificationBox.component.tsx index aad05a5a8fc..275cd772b49 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/NotificationBox/NotificationBox.component.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/NotificationBox/NotificationBox.component.tsx @@ -13,6 +13,8 @@ import { Badge, Button, List, Tabs, Typography } from 'antd'; import { AxiosError } from 'axios'; +import { ActivityFeedTabs } from 'components/ActivityFeed/ActivityFeedTab/ActivityFeedTab.interface'; +import { EntityTabs } from 'enums/entity.enum'; import { UserProfileTab } from 'enums/user.enum'; import { isEmpty } from 'lodash'; import React, { useCallback, useEffect, useMemo, useState } from 'react'; @@ -52,9 +54,11 @@ const NotificationBox = ({ const [isLoading, setIsLoading] = useState(false); const [viewAllPath, setViewAllPath] = useState( - `${getUserPath(currentUser?.name as string)}/tasks?feedFilter=${ - FeedFilter.ASSIGNED_TO - }` + getUserPath( + currentUser?.name as string, + EntityTabs.ACTIVITY_FEED, + ActivityFeedTabs.TASKS + ) ); const notificationDropDownList = useMemo(() => { diff --git a/openmetadata-ui/src/main/resources/ui/src/components/Services/Services.tsx b/openmetadata-ui/src/main/resources/ui/src/components/Services/Services.tsx index 62573e637a9..729efd42440 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/Services/Services.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/Services/Services.tsx @@ -169,7 +169,7 @@ const Services = ({