From 47fe497ca1d0ff64e743ac074cf9ef639b32d987 Mon Sep 17 00:00:00 2001 From: Fred KISSIE Date: Fri, 13 Feb 2026 05:39:16 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20add=20sidebar=20item=20for=20pol?= =?UTF-8?q?icies?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- messages/en-US.json | 1 + src/app/navigation.tsx | 16 ++++++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/messages/en-US.json b/messages/en-US.json index 68f9640b2..d311976a6 100644 --- a/messages/en-US.json +++ b/messages/en-US.json @@ -1231,6 +1231,7 @@ "sidebarResources": "Resources", "sidebarProxyResources": "Public", "sidebarClientResources": "Private", + "sidebarResourcePolicies": "Policies", "sidebarAccessControl": "Access Control", "sidebarLogsAndAnalytics": "Logs & Analytics", "sidebarUsers": "Users", diff --git a/src/app/navigation.tsx b/src/app/navigation.tsx index 7df4364a5..85d7d010a 100644 --- a/src/app/navigation.tsx +++ b/src/app/navigation.tsx @@ -17,6 +17,7 @@ import { ScanEye, // Added from 'dev' branch Server, Settings, + ShieldIcon, SquareMousePointer, TicketCheck, User, @@ -62,7 +63,18 @@ export const orgNavSections = (env?: Env): SidebarNavSection[] => [ title: "sidebarClientResources", href: "/{orgId}/settings/resources/client", icon: - } + }, + ...(build !== "oss" + ? [ + { + title: "sidebarResourcePolicies", + href: "/{orgId}/settings/resources/policies", + icon: ( + + ) + } + ] + : []) ] }, { @@ -86,7 +98,7 @@ export const orgNavSections = (env?: Env): SidebarNavSection[] => [ href: "/{orgId}/settings/domains", icon: }, - ...(build == "saas" + ...(build === "saas" ? [ { title: "sidebarRemoteExitNodes",