Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion datahub-web-react/src/app/homeV2/layout/NavLinksMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { NavMenuItem, NavSubMenuItem } from '@app/homeV2/layout/types';
import { HOME_PAGE_INGESTION_ID } from '@app/onboarding/config/HomePageOnboardingConfig';
import { useHandleOnboardingTour } from '@app/onboarding/useHandleOnboardingTour';
import { useUpdateEducationStepsAllowList } from '@app/onboarding/useUpdateEducationStepsAllowList';
import { useAppConfig } from '@app/useAppConfig';
import { useAppConfig, useBusinessAttributesFlag } from '@app/useAppConfig';
import { HelpLinkRoutes, PageRoutes } from '@conf/Global';

import AnalyticsMenuIcon from '@images/analyticsMenuIcon.svg?react';
Expand Down Expand Up @@ -108,6 +108,7 @@ export function NavLinksMenu(props: Props) {
// Flags to show/hide menu items
const isAnalyticsEnabled = config?.analyticsConfig?.enabled;
const isIngestionEnabled = config?.managedIngestionConfig?.enabled;
const businessAttributesFlag = useBusinessAttributesFlag();

const showSettings = true;
const showAnalytics = (isAnalyticsEnabled && me && me?.platformPrivileges?.viewAnalytics) || false;
Expand Down Expand Up @@ -164,6 +165,12 @@ export function NavLinksMenu(props: Props) {
link: PageRoutes.MANAGE_TAGS,
isHidden: false,
},
{
title: 'Business Attributes',
description: 'Universal field for data consistency',
link: PageRoutes.BUSINESS_ATTRIBUTE,
isHidden: !businessAttributesFlag,
},
{
title: 'Domains',
description: 'Manage related groups of data assets',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
BookBookmark,
Gear,
Globe,
HardDrives,
Plugs,
Question,
SignOut,
Expand All @@ -27,7 +28,7 @@ import {
} from '@app/homeV2/layout/navBarRedesign/types';
import useSelectedKey from '@app/homeV2/layout/navBarRedesign/useSelectedKey';
import OnboardingContext from '@app/onboarding/OnboardingContext';
import { useAppConfig } from '@app/useAppConfig';
import { useAppConfig, useBusinessAttributesFlag } from '@app/useAppConfig';
import { colors } from '@src/alchemy-components';
import { getColor } from '@src/alchemy-components/theme/utils';
import useGetLogoutHandler from '@src/app/auth/useGetLogoutHandler';
Expand Down Expand Up @@ -98,6 +99,7 @@ export const NavSidebar = () => {
const showManageTags =
config?.featureFlags?.showManageTags &&
(me.platformPrivileges?.manageTags || me.platformPrivileges?.viewManageTags);
const businessAttributesFlag = useBusinessAttributesFlag();

const showDataSources =
config.managedIngestionConfig.enabled &&
Expand Down Expand Up @@ -157,6 +159,15 @@ export const NavSidebar = () => {
link: PageRoutes.MANAGE_TAGS,
isHidden: !showManageTags,
},
{
type: NavBarMenuItemTypes.Item,
title: 'Business Attributes',
key: 'businessAttributes',
icon: <HardDrives />,
selectedIcon: <HardDrives weight="fill" />,
link: PageRoutes.BUSINESS_ATTRIBUTE,
isHidden: !businessAttributesFlag,
},
{
type: NavBarMenuItemTypes.Item,
title: 'Applications',
Expand Down
Loading