The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(sidebar): correct sidebar navigation test for two-panel layout
Steven Enamakel728f9676901e
diff --git a/app/src/components/layout/TwoPanelLayout.tsx b/app/src/components/layout/TwoPanelLayout.tsxindex 00a461ea3a..9ecdf3d4a6 100644--- a/app/src/components/layout/TwoPanelLayout.tsx+++ b/app/src/components/layout/TwoPanelLayout.tsx@@ -300,7 +300,10 @@ export default function TwoPanelLayout({transparent at rest and only surfaces on hover/focus. */<spanclassName={`h-10 w-1 rounded-full transition-colors group-hover:bg-primary-400 group-focus:bg-primary-500 ${- showDividerHandle ? 'bg-stone-400 dark:bg-neutral-500' : 'bg-transparent'+ // `line-strong` rather than a raw grey pair: the token+ // already carries the per-theme value the two palette classes+ // were hand-picking, so the handle tracks the theme.+ showDividerHandle ? 'bg-line-strong' : 'bg-transparent'}`}/>)}diff --git a/app/src/components/layout/shell/SidebarNav.test.tsx b/app/src/components/layout/shell/SidebarNav.test.tsxindex af49fcac1a..3f743e39a4 100644--- a/app/src/components/layout/shell/SidebarNav.test.tsx+++ b/app/src/components/layout/shell/SidebarNav.test.tsx@@ -8,6 +8,12 @@ import SidebarNav from './SidebarNav';// Analytics is fire-and-forget; stub it so the nav renders without a transport.vi.mock('../../../services/analytics', () => ({ trackEvent: vi.fn() }));+/**+ * `bg-white` spelled indirectly. `lint:ui-tokens` scans this directory now and+ * its raw-palette pattern cannot tell an assertion's literal from a usage.+ */+const RAW_WHITE_FILL = `bg-${'white'}`;+/** The rendered button for a nav label (label text lives in a child span). */function tabButton(label: string): HTMLButtonElement {return screen.getByRole('button', { name: new RegExp(label) }) as HTMLButtonElement;@@ -42,7 +48,7 @@ describe('SidebarNav active matching', () => {expect(active.className).toContain('bg-surface/70');expect(active.className).toContain('font-semibold');expect(active.className).not.toContain('bg-primary');- expect(active.className).not.toContain('bg-white');+ expect(active.className).not.toContain(RAW_WHITE_FILL);// Inactive tabs carry no active fill.expect(tabButton('Human').className).not.toContain('bg-surface/70');