From 8e0d2eadec552130a974c0cf055dd773a970acfa Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Fri, 15 Nov 2024 10:50:51 +0100 Subject: [PATCH] 1-3125: Update project navigation for the simplified view The changes are: - Change "Flags" to "Overview" - Also hide "Insights" and "Health" - Change "Project settings" to "Settings" --- .../src/component/project/Project/Project.tsx | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/frontend/src/component/project/Project/Project.tsx b/frontend/src/component/project/Project/Project.tsx index 1c68e975add8..15dbbf2eeb79 100644 --- a/frontend/src/component/project/Project/Project.tsx +++ b/frontend/src/component/project/Project/Project.tsx @@ -144,23 +144,23 @@ export const Project = () => { const tabs: ITab[] = [ { - title: 'Flags', + title: simplifyProjectOverview ? 'Overview' : 'Flags', path: basePath, name: 'flags', }, - { - title: 'Insights', - path: `${basePath}/insights`, - name: 'insights', - }, - { - title: 'Health', - path: `${basePath}/health`, - name: 'health', - }, ...(simplifyProjectOverview ? [] : [ + { + title: 'Insights', + path: `${basePath}/insights`, + name: 'insights', + }, + { + title: 'Health', + path: `${basePath}/health`, + name: 'health', + }, { title: 'Archived flags', path: `${basePath}/archive`, @@ -185,7 +185,7 @@ export const Project = () => { name: 'logs', }, { - title: 'Project settings', + title: simplifyProjectOverview ? 'Settings' : 'Project settings', path: `${basePath}/settings`, ossPath: `${basePath}/settings/api-access`, name: 'settings',