From 8668642b8d376b273b430ce19acd16699992f435 Mon Sep 17 00:00:00 2001 From: hsiegeln <37154749+hsiegeln@users.noreply.github.com> Date: Mon, 27 Apr 2026 14:58:27 +0200 Subject: [PATCH] feat: add account settings route and user menu dropdown Co-Authored-By: Claude Sonnet 4.6 --- ui/src/components/Layout.tsx | 9 +++++++++ ui/src/router.tsx | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/ui/src/components/Layout.tsx b/ui/src/components/Layout.tsx index dde1b0e..ebb9026 100644 --- a/ui/src/components/Layout.tsx +++ b/ui/src/components/Layout.tsx @@ -55,6 +55,14 @@ export function Layout() { return { label }; }); + const userMenuItems = [ + { + label: 'Account Settings', + icon: , + onClick: () => navigate('/settings/account'), + }, + ]; + const sidebar = ( {}}> diff --git a/ui/src/router.tsx b/ui/src/router.tsx index b585ffc..4cf3191 100644 --- a/ui/src/router.tsx +++ b/ui/src/router.tsx @@ -27,6 +27,7 @@ import { TeamPage } from './pages/tenant/TeamPage'; import { SettingsPage } from './pages/tenant/SettingsPage'; import { TenantAuditPage } from './pages/tenant/TenantAuditPage'; import { OnboardingPage } from './pages/OnboardingPage'; +import { AccountSettingsPage } from './pages/AccountSettingsPage'; function LandingRedirect() { const scopes = useScopes(); @@ -135,6 +136,9 @@ export function AppRouter() { } /> } /> + {/* Account settings — accessible to any authenticated user */} + } /> + {/* Default redirect — vendor goes to /vendor/tenants, customer to /tenant */} } />