From c67a2dfa7307f7856bd0b37175da837344ec8032 Mon Sep 17 00:00:00 2001 From: Owen Date: Mon, 9 Jun 2025 18:10:04 -0400 Subject: [PATCH] Add sidebar - needs translations --- messages/en-US.json | 18 ++++++++++++++++-- src/app/navigation.tsx | 30 +++++++++++++++--------------- 2 files changed, 31 insertions(+), 17 deletions(-) diff --git a/messages/en-US.json b/messages/en-US.json index 6eb8d8af..c640e6c1 100644 --- a/messages/en-US.json +++ b/messages/en-US.json @@ -1075,5 +1075,19 @@ "authErrorNoUpdate": "No auth info to update", "orgErrorNoUpdate": "No org to update", "orgErrorNoProvided": "No org provided", - "apiKeysErrorNoUpdate": "No API key to update" -} + "apiKeysErrorNoUpdate": "No API key to update", + "sidebarOverview": "Overview", + "sidebarHome": "Home", + "sidebarSites": "Sites", + "sidebarResources": "Resources", + "sidebarAccessControl": "Access Control", + "sidebarUsers": "Users", + "sidebarInvitations": "Invitations", + "sidebarRoles": "Roles", + "sidebarShareableLinks": "Shareable Links", + "sidebarApiKeys": "API Keys", + "sidebarSettings": "Settings", + "sidebarAllUsers": "All Users", + "sidebarIdentityProviders": "Identity Providers", + "sidebarLicense": "License" +} \ No newline at end of file diff --git a/src/app/navigation.tsx b/src/app/navigation.tsx index 8ea3c080..af4eea75 100644 --- a/src/app/navigation.tsx +++ b/src/app/navigation.tsx @@ -13,7 +13,7 @@ import { export const orgLangingNavItems: SidebarNavItem[] = [ { - title: "Overview", + title: "sidebarOverview", href: "/{orgId}", icon: } @@ -21,7 +21,7 @@ export const orgLangingNavItems: SidebarNavItem[] = [ export const rootNavItems: SidebarNavItem[] = [ { - title: "Home", + title: "sidebarHome", href: "/", icon: } @@ -29,49 +29,49 @@ export const rootNavItems: SidebarNavItem[] = [ export const orgNavItems: SidebarNavItem[] = [ { - title: "Sites", + title: "sidebarSites", href: "/{orgId}/settings/sites", icon: }, { - title: "Resources", + title: "sidebarResources", href: "/{orgId}/settings/resources", icon: }, { - title: "Access Control", + title: "sidebarAccessControl", href: "/{orgId}/settings/access", icon: , autoExpand: true, children: [ { - title: "Users", + title: "sidebarUsers", href: "/{orgId}/settings/access/users", children: [ { - title: "Invitations", + title: "sidebarInvitations", href: "/{orgId}/settings/access/invitations" } ] }, { - title: "Roles", + title: "sidebarRoles", href: "/{orgId}/settings/access/roles" } ] }, { - title: "Shareable Links", + title: "sidebarShareableLinks", href: "/{orgId}/settings/share-links", icon: }, { - title: "API Keys", + title: "sidebarApiKeys", href: "/{orgId}/settings/api-keys", icon: }, { - title: "Settings", + title: "sidebarSettings", href: "/{orgId}/settings/general", icon: } @@ -79,22 +79,22 @@ export const orgNavItems: SidebarNavItem[] = [ export const adminNavItems: SidebarNavItem[] = [ { - title: "All Users", + title: "sidebarAllUsers", href: "/admin/users", icon: }, { - title: "API Keys", + title: "sidebarApiKeys", href: "/admin/api-keys", icon: }, { - title: "Identity Providers", + title: "sidebarIdentityProviders", href: "/admin/idp", icon: }, { - title: "License", + title: "sidebarLicense", href: "/admin/license", icon: }