From 1c1e5c9da5bb276a27248e0b1b887f4583fa6d91 Mon Sep 17 00:00:00 2001 From: ReBotics AI Date: Sat, 1 Aug 2026 18:25:57 -0600 Subject: [PATCH] Polish sidebar chrome and keep Digital Admin labels readable. Move the workspace switcher under the brand, put ModeToggle in the header, and wrap long agent group titles instead of truncating them. --- apps/web/src/components/AgentGroup.tsx | 6 ++--- apps/web/src/components/AppHeader.tsx | 5 ++++- apps/web/src/components/SidebarNav.tsx | 6 ++--- .../src/components/SidebarShellContent.tsx | 22 +++++++++++-------- 4 files changed, 22 insertions(+), 17 deletions(-) diff --git a/apps/web/src/components/AgentGroup.tsx b/apps/web/src/components/AgentGroup.tsx index 2b124d6..9d7c243 100644 --- a/apps/web/src/components/AgentGroup.tsx +++ b/apps/web/src/components/AgentGroup.tsx @@ -77,7 +77,7 @@ export function AgentGroup({ onOpenChange={setOpen} className="flex flex-col gap-0.5 rounded-lg border border-sidebar-border/60 bg-sidebar-accent/10 p-1.5" > -
+
)} + + ); } diff --git a/apps/web/src/components/SidebarNav.tsx b/apps/web/src/components/SidebarNav.tsx index 28da225..fca9245 100644 --- a/apps/web/src/components/SidebarNav.tsx +++ b/apps/web/src/components/SidebarNav.tsx @@ -51,7 +51,6 @@ import { useTenant } from "@/lib/tenant-context"; import { useIntelligence } from "@/lib/intelligence-context"; import { iconByName } from "@/lib/icon-lookup"; import { cn } from "@/lib/utils"; -import { WorkspaceSwitcher } from "@/components/WorkspaceSwitcher"; import { AgentGroup } from "@/components/AgentGroup"; import { AgentPulseIcon } from "@/components/AgentPulseIcon"; import { @@ -96,8 +95,8 @@ const NEW_PAGE_PROMPT = * Tree navigation. Top: the user's PERSONAL pages (Calendar, Tasks, Vault, etc.). * Middle: departments as labeled section headers, each revealing divisions as * expandable sub-trees. Bottom: Shared and Marketplace nodes. The active division - * auto-expands and the active page is highlighted. Users/Settings stay in the - * footer chrome (see SidebarShellContent.tsx). + * auto-expands and the active page is highlighted. Brand header, project + * switcher, and Users/Settings live in SidebarShellContent.tsx. */ export function SidebarNav({ onNavigate }: { onNavigate?: () => void }) { const { pathname } = useLocation(); @@ -313,7 +312,6 @@ export function SidebarNav({ onNavigate }: { onNavigate?: () => void }) {
- {PERSONAL_ITEMS.map(({ to, label, Icon }) => ( -
- - {APP_NAME} - +
+
+ + {APP_NAME} + +
+