1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-09 00:18:00 +01:00

1-3125: Update project navigation for the simplified view (#8770)

The changes are:
- Change "Flags" to "Overview"
- Also hide "Insights" and "Health"
- Change "Project settings" to "Settings"
This commit is contained in:
Thomas Heartman 2024-11-15 10:56:41 +01:00 committed by GitHub
parent 046573174b
commit f89bc33645
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -144,10 +144,13 @@ export const Project = () => {
const tabs: ITab[] = [ const tabs: ITab[] = [
{ {
title: 'Flags', title: simplifyProjectOverview ? 'Overview' : 'Flags',
path: basePath, path: basePath,
name: 'flags', name: 'flags',
}, },
...(simplifyProjectOverview
? []
: [
{ {
title: 'Insights', title: 'Insights',
path: `${basePath}/insights`, path: `${basePath}/insights`,
@ -158,9 +161,6 @@ export const Project = () => {
path: `${basePath}/health`, path: `${basePath}/health`,
name: 'health', name: 'health',
}, },
...(simplifyProjectOverview
? []
: [
{ {
title: 'Archived flags', title: 'Archived flags',
path: `${basePath}/archive`, path: `${basePath}/archive`,
@ -185,7 +185,7 @@ export const Project = () => {
name: 'logs', name: 'logs',
}, },
{ {
title: 'Project settings', title: simplifyProjectOverview ? 'Settings' : 'Project settings',
path: `${basePath}/settings`, path: `${basePath}/settings`,
ossPath: `${basePath}/settings/api-access`, ossPath: `${basePath}/settings/api-access`,
name: 'settings', name: 'settings',