From 3808f99e82b484971c7cfb60b06d93098d21a58d Mon Sep 17 00:00:00 2001 From: Jiayuan Zhang Date: Fri, 10 Apr 2026 02:06:02 +0800 Subject: [PATCH] refactor(sidebar): split Workspace into Workspace + Configure groups Split 6-item Workspace group into two cleaner groups: - Workspace: Issues, Projects, Agents (core collaboration) - Configure: Runtimes, Skills, Settings (infrastructure/admin) --- .../(dashboard)/_components/app-sidebar.tsx | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/apps/web/app/(dashboard)/_components/app-sidebar.tsx b/apps/web/app/(dashboard)/_components/app-sidebar.tsx index 84826f5919..bea4e79d31 100644 --- a/apps/web/app/(dashboard)/_components/app-sidebar.tsx +++ b/apps/web/app/(dashboard)/_components/app-sidebar.tsx @@ -64,6 +64,9 @@ const workspaceNav = [ { href: "/issues", label: "Issues", icon: ListTodo }, { href: "/projects", label: "Projects", icon: FolderKanban }, { href: "/agents", label: "Agents", icon: Bot }, +]; + +const configureNav = [ { href: "/runtimes", label: "Runtimes", icon: Monitor }, { href: "/skills", label: "Skills", icon: BookOpenText }, { href: "/settings", label: "Settings", icon: Settings }, @@ -235,6 +238,29 @@ export function AppSidebar() { {workspaceNav.map((item) => { + const isActive = pathname === item.href; + return ( + + } + className="text-muted-foreground hover:not-data-active:bg-sidebar-accent/70 data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground" + > + + {item.label} + + + ); + })} + + + + + + Configure + + + {configureNav.map((item) => { const isActive = pathname === item.href; return (