From 995d69a352f9f7323feb6a662f6002cb07e0a024 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20G=C3=B3is?= Date: Thu, 15 May 2025 14:45:29 +0100 Subject: [PATCH] fix: hide project archive in OSS (#10004) https://linear.app/unleash/issue/2-3569/fix-hide-project-archive-in-oss Hides "project archive" in OSS. I believe this is a bug. OSS only has one project and the project archive was acting unexpectedly anyways since it was showing the same default project as being archived. This is because in OSS we use the OSS project-controller, not the Enterprise version (override) of it. --- .../component/menu/__tests__/__snapshots__/routes.test.tsx.snap | 1 + frontend/src/component/menu/routes.ts | 1 + frontend/src/component/project/ProjectList/ProjectList.tsx | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/component/menu/__tests__/__snapshots__/routes.test.tsx.snap b/frontend/src/component/menu/__tests__/__snapshots__/routes.test.tsx.snap index 61093db32c..b98915c97f 100644 --- a/frontend/src/component/menu/__tests__/__snapshots__/routes.test.tsx.snap +++ b/frontend/src/component/menu/__tests__/__snapshots__/routes.test.tsx.snap @@ -93,6 +93,7 @@ exports[`returns all baseRoutes 1`] = ` }, { "component": [Function], + "enterprise": true, "menu": {}, "path": "/projects-archive", "title": "Projects archive", diff --git a/frontend/src/component/menu/routes.ts b/frontend/src/component/menu/routes.ts index 08ee8ab298..7eb3cf5bb7 100644 --- a/frontend/src/component/menu/routes.ts +++ b/frontend/src/component/menu/routes.ts @@ -126,6 +126,7 @@ export const routes: IRoute[] = [ component: ArchiveProjectList, type: 'protected', menu: {}, + enterprise: true, }, // Flags overview diff --git a/frontend/src/component/project/ProjectList/ProjectList.tsx b/frontend/src/component/project/ProjectList/ProjectList.tsx index f6c24c7710..e0972e0088 100644 --- a/frontend/src/component/project/ProjectList/ProjectList.tsx +++ b/frontend/src/component/project/ProjectList/ProjectList.tsx @@ -78,7 +78,7 @@ export const ProjectList = () => { } /> - + {!isOss() && }