{navbarItems.map((section, index) => (
- {section.map((item) => (
- {
- if (activeNavbarItemId === item.identifier && isSidebarShown) {
- hideSidebar()
- } else {
- showSidebar(item.identifier)
+ {section.map((item) =>
+ item.featureFlag && !featureFlags[item.featureFlag] ? null : (
+ {
+ if (activeNavbarItemId === item.identifier && isSidebarShown) {
+ hideSidebar()
+ } else {
+ showSidebar(item.identifier)
+ }
}
- }
- : undefined
- }
- active={activeNavbarItemId === item.identifier && isSidebarShown}
- />
- ))}
+ : undefined
+ }
+ active={activeNavbarItemId === item.identifier && isSidebarShown}
+ />
+ )
+ )}
))}
@@ -78,6 +87,7 @@ export function Navbar(): JSX.Element {
? 'Switch to light mode'
: 'Switch to dark mode'
}
+ shortTitle="Toggle theme"
onClick={() => toggleTheme()}
persistentTooltip
/>
@@ -87,7 +97,7 @@ export function Navbar(): JSX.Element {
icon={
}
identifier="help-button"
title="Need any help?"
- popoverMarker
+ shortTitle="Help"
/>
}
placement="right-end"
@@ -95,6 +105,7 @@ export function Navbar(): JSX.Element {
}
identifier={Scene.ProjectSettings}
+ title="Project settings"
to={urls.projectSettings()}
/>
}
identifier="me"
title={`Hi${user?.first_name ? `, ${user?.first_name}` : ''}!`}
+ shortTitle={user?.first_name || user?.email}
onClick={toggleSitePopover}
- popoverMarker
/>
+