From dcdba7e75f06da3723b5432c2c5126fa02a241d5 Mon Sep 17 00:00:00 2001 From: Charlie Park Date: Mon, 22 Jan 2024 10:38:57 -0800 Subject: [PATCH 1/3] Remove 'Settings' link from sidebar nav --- app/layouts/SystemLayout.tsx | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/app/layouts/SystemLayout.tsx b/app/layouts/SystemLayout.tsx index fc60e679a2..74c4d9dbec 100644 --- a/app/layouts/SystemLayout.tsx +++ b/app/layouts/SystemLayout.tsx @@ -9,13 +9,7 @@ import { useMemo } from 'react' import { useLocation, useNavigate, useParams } from 'react-router-dom' import { apiQueryClient } from '@oxide/api' -import { - Cloud16Icon, - Divider, - Metrics16Icon, - Settings16Icon, - Storage16Icon, -} from '@oxide/ui' +import { Cloud16Icon, Divider, Metrics16Icon, Storage16Icon } from '@oxide/ui' import { trigger404 } from 'app/components/ErrorBoundary' import { DocsLinkItem, NavLinkItem, Sidebar } from 'app/components/Sidebar' @@ -118,9 +112,6 @@ export default function SystemLayout() { Networking */} - - Settings - From 0b4000f78e1ce7996adbadabb64760da4cfbba50 Mon Sep 17 00:00:00 2001 From: Charlie Park Date: Mon, 22 Jan 2024 10:54:26 -0800 Subject: [PATCH 2/3] Remove 'system' links from path-builder --- app/util/path-builder.spec.ts | 1 - app/util/path-builder.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/app/util/path-builder.spec.ts b/app/util/path-builder.spec.ts index d61bcca8af..b82d541bf1 100644 --- a/app/util/path-builder.spec.ts +++ b/app/util/path-builder.spec.ts @@ -73,7 +73,6 @@ test('path builder', () => { "systemHealth": "/system/health", "systemIssues": "/system/issues", "systemNetworking": "/system/networking", - "systemSettings": "/system/settings", "systemUtilization": "/system/utilization", "vpc": "/projects/p/vpcs/v", "vpcEdit": "/projects/p/vpcs/v/edit", diff --git a/app/util/path-builder.ts b/app/util/path-builder.ts index bf4b40509c..2c88e678ce 100644 --- a/app/util/path-builder.ts +++ b/app/util/path-builder.ts @@ -78,7 +78,6 @@ export const pb = { systemHealth: () => '/system/health', systemNetworking: () => '/system/networking', - systemSettings: () => '/system/settings', inventory: () => '/system/inventory', rackInventory: () => '/system/inventory/racks', From 6b0de998fcf743ef4263461092bb3144ac4641fa Mon Sep 17 00:00:00 2001 From: Charlie Park Date: Mon, 22 Jan 2024 10:58:50 -0800 Subject: [PATCH 3/3] Remove settings route --- app/routes.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/app/routes.tsx b/app/routes.tsx index 62e347d570..afe77dfdac 100644 --- a/app/routes.tsx +++ b/app/routes.tsx @@ -171,7 +171,6 @@ export const routes = createRoutesFromElements( - } />