Flatten the sidebar: Office under Team, Connectors under Approvals, no divider

This commit is contained in:
ZacharyZhang-NY committed 2026-07-07 11:44:15 -04:00
1 parent defe8f12b1
commit eb16baff50
2 files changed
+3 -17

No files matched your search

+3 -16
View File
@@ -27,25 +27,18 @@ interface NavSpec {
* internal scroll regions, so the content area must not scroll as one block. */ * internal scroll regions, so the content area must not scroll as one block. */
const FLUSH_ROUTES = new Set<RouteId>(["chat", "settings", "files", "runs", "office"]); const FLUSH_ROUTES = new Set<RouteId>(["chat", "settings", "files", "runs", "office"]);
/** The daily-driver surfaces — the core operating loop. */ const allNav: NavSpec[] = [
const primaryNav: NavSpec[] = [
{ id: "home", label: "Home" }, { id: "home", label: "Home" },
{ id: "work", label: "Work" }, { id: "work", label: "Work" },
{ id: "team", label: "Team" }, { id: "team", label: "Team" },
{ id: "office", label: "Office" },
{ id: "chat", label: "Messages" }, { id: "chat", label: "Messages" },
{ id: "runs", label: "Runs" }, { id: "runs", label: "Runs" },
{ id: "files", label: "Files" }, { id: "files", label: "Files" },
{ id: "approvals", label: "Approvals" }, { id: "approvals", label: "Approvals" },
];
/** Less-frequent surfaces, demoted under a divider so the primary set leads. */
const secondaryNav: NavSpec[] = [
{ id: "connectors", label: "Connectors" }, { id: "connectors", label: "Connectors" },
{ id: "office", label: "Office" },
]; ];
const allNav: NavSpec[] = [...primaryNav, ...secondaryNav];
export function Shell({ export function Shell({
snapshot, snapshot,
route, route,
@@ -101,13 +94,7 @@ export function Shell({
<span className="search-kbd">⌘K</span> <span className="search-kbd">⌘K</span>
</button> </button>
<nav className="nav"> <nav className="nav">
{primaryNav.map((item) => ( {allNav.map((item) => (
<NavButton key={item.id} item={item} active={route === item.id} badge={badges[item.id]} onSelect={setRoute} />
))}
</nav>
<div className="nav-divider" />
<nav className="nav">
{secondaryNav.map((item) => (
<NavButton key={item.id} item={item} active={route === item.id} badge={badges[item.id]} onSelect={setRoute} /> <NavButton key={item.id} item={item} active={route === item.id} badge={badges[item.id]} onSelect={setRoute} />
))} ))}
</nav> </nav>
-1
View File
@@ -205,7 +205,6 @@ a { color: inherit; }
color: var(--text-3); color: var(--text-3);
font-variant-numeric: tabular-nums; font-variant-numeric: tabular-nums;
} }
.nav-divider { height: 1px; background: var(--border-soft); margin: var(--sp-2); }
.convo-item { .convo-item {
display: flex; display: flex;