-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(nav): Move stats to settings #84804
Conversation
@@ -226,16 +225,7 @@ export function PrimaryNavigationItems() { | |||
</SidebarMenu> | |||
|
|||
<SidebarLink | |||
to={`/${prefix}/stats/`} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removes stats in new nav component
@@ -695,6 +696,39 @@ function buildRoutes() { | |||
</Route> | |||
); | |||
|
|||
const statsChildRoutes = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Refactor so that we can use the statsChildRoutes in two places
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New wrapper for stats routes to provide redirect from /stats/
-> /settings/stats/
(redirect only happens when feature flag is on)
@@ -126,6 +126,14 @@ const organizationNavigation: NavigationSection[] = [ | |||
show: ({organization}) => | |||
!!organization && organization.features.includes('feature-flag-ui'), | |||
}, | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adds stats item in settings menu (feature flagged)
❌ 2 Tests Failed:
View the top 2 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
Ref #84018
As part of the new nav project, we want to locate the
/stats/
page inside/settings/stats/
.The stats page will remain unchanged if you do not have the new nav feature flag on.