diff --git a/openmetadata-ui/src/main/resources/ui/src/components/common/popover/PopOver.tsx b/openmetadata-ui/src/main/resources/ui/src/components/common/popover/PopOver.tsx index f3cb75a0e6b..043e025cf4a 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/common/popover/PopOver.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/common/popover/PopOver.tsx @@ -21,6 +21,8 @@ const PopOver: React.FC = ({ arrow = true, children, className = '', + delay = 500, + hideDelay = 0, html, position, size = 'regular', @@ -32,6 +34,8 @@ const PopOver: React.FC = ({ { setServiceList(services[tabName] as unknown as Array); }; + const fetchLeftPanel = () => { + return ( + <> +
+
Services
+
+ + {getServiceTabs()?.map((tab, index) => { + return ( +
{ + handleTabChange(tab.name); + }}> +

+ {tab.displayName} +

+ + {getCountBadge( + servicesCount[tab.name], + '', + tab.name === serviceName + )} +
+ ); + })} + + ); + }; + const getOptionalFields = (service: ServiceDataObj): JSX.Element => { switch (serviceName) { case ServiceCategory.DATABASE_SERVICES: { @@ -452,174 +487,135 @@ const ServicesPage = () => { return ( <> {!isLoading ? ( - - + +
-
- -
- {/*
-
- {serviceList.length > 0 ? ( - - - - ) : null} -
-
*/} {serviceList.length ? ( -
- {serviceList.map((service, index) => ( + <> +
-
- - - -
- {service.description ? ( - - ) : ( - - No description added - - )} -
- {getOptionalFields(service)} -
- - - {service.ingestionSchedule?.repeatFrequency - ? getFrequencyTime( - service.ingestionSchedule.repeatFrequency - ) - : '--'} - -
-
- - - {service.serviceType} - -
-
-
-
- - - - - - -
-
- {/* {!isNull(serviceTypeLogo(service.serviceType)) && ( - - )} */} - {getServiceLogo(service.serviceType || '')} -
-
+ className="tw-heading tw-text-link tw-text-base" + data-testid="service-name"> + {servicesDisplayName[serviceName]}
- ))} -
+ + + +
+
+ {serviceList.map((service, index) => ( +
+
+ + + +
+ {service.description ? ( + + ) : ( + + No description added + + )} +
+ {getOptionalFields(service)} +
+ + + {service.ingestionSchedule?.repeatFrequency + ? getFrequencyTime( + service.ingestionSchedule.repeatFrequency + ) + : '--'} + +
+
+ + + {service.serviceType} + +
+
+
+
+ + + + + + +
+
+ {getServiceLogo(service.serviceType || '')} +
+
+
+ ))} +
+ ) : (
diff --git a/openmetadata-ui/src/main/resources/ui/src/pages/tags/index.tsx b/openmetadata-ui/src/main/resources/ui/src/pages/tags/index.tsx index d7c4b1c4b23..a7ad9e794e9 100644 --- a/openmetadata-ui/src/main/resources/ui/src/pages/tags/index.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/pages/tags/index.tsx @@ -44,7 +44,11 @@ import { } from '../../generated/api/tags/createTagCategory'; import { TagCategory, TagClass } from '../../generated/entity/tags/tagCategory'; import { useAuth } from '../../hooks/authHooks'; -import { getCountBadge, isEven } from '../../utils/CommonUtils'; +import { + getActiveCatClass, + getCountBadge, + isEven, +} from '../../utils/CommonUtils'; import SVGIcons from '../../utils/SvgUtils'; import { getTagCategories, getTaglist } from '../../utils/TagsUtils'; import Form from './Form'; @@ -93,14 +97,6 @@ const TagsPage = () => { } }; - const currentCategoryTab = (name: string) => { - if (currentCategory?.name === name) { - return 'activeCategory'; - } else { - return ''; - } - }; - const createCategory = (data: CreateTagCategory) => { createTagCategory(data).then((res: AxiosResponse) => { if (res.data) { @@ -180,11 +176,11 @@ const TagsPage = () => { const fetchLeftPanel = () => { return ( <> -
-
Tag Categories
+
+
Tag Categories
)} -
+
{ }); }; - const getCurrentTeamClass = (name: string) => { - if (currentTeam?.name === name) { - return 'activeCategory'; - } else { - return ''; - } - }; const getActiveTabClass = (tab: number) => { return tab === currentTab ? 'active' : ''; }; @@ -276,11 +269,11 @@ const TeamsPage = () => { const fetchLeftPanel = () => { return ( <> -
-
Teams
+
+
Teams
{ + return activeName === name ? 'activeCategory' : ''; +};