Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(panel): restore missing sidebar navigation

Steven Enamakela2d306f7a047
diff --git a/app/src/components/layout/PanelPage.tsx b/app/src/components/layout/PanelPage.tsx
index 370881756f..3d7b9b31cf 100644
--- a/app/src/components/layout/PanelPage.tsx
+++ b/app/src/components/layout/PanelPage.tsx
@@ -132,15 +132,14 @@ export default function PanelPage<T extends string = string>({
}));
return (
- <div className={`relative flex h-full min-h-0 flex-col ${className}`} data-testid={testId}>
+ <div className={cn('relative flex h-full min-h-0 flex-col', className)} data-testid={testId}>
{/* Fixed page chrome: optional title + description, then the chip row. */}
<PanelHeader
title={title}
description={description}
leading={leading}
action={action}
- className="flex-shrink-0 px-4 pt-4 pb-3"
- bgClassName={DEFAULT_PANEL_HEADER_BG}>
+ className="flex-shrink-0">
{headerExtra}
<ChipTabs
className="flex flex-wrap gap-1.5 pt-2"
@@ -158,6 +157,7 @@ export default function PanelPage<T extends string = string>({
<PanelScaffold
description={active.description}
contentClassName={active.contentClassName ?? ''}
+ width={width}
bodyBorder>
{active.content}
</PanelScaffold>
diff --git a/app/src/components/layout/shell/SidebarNav.tsx b/app/src/components/layout/shell/SidebarNav.tsx
index 10a73db06e..2d4cdd24bb 100644
--- a/app/src/components/layout/shell/SidebarNav.tsx
+++ b/app/src/components/layout/shell/SidebarNav.tsx
@@ -81,38 +81,42 @@ export default function SidebarNav() {
<SidebarGroup>
<SidebarMenu>
{tabs.map(tab => {
- const active = matchActive(tab.path, location.pathname);
- const showBadge = tab.id === 'notifications' && unreadCount > 0;
- const showCompanionDot = tab.id === 'settings' && companionActive;
- return (
- <SidebarMenuItem key={tab.id}>
- <SidebarMenuButton
- isActive={active}
- data-walkthrough={tab.walkthroughAttr}
- onClick={() => handleClick(tab, active)}
- title={tab.label}
- // A nav row, not a control: auto height and 14px type, so the
- // row breathes the way the shell's own spacing scale expects.
- className="h-auto py-2 text-[14px]">
- <SidebarMenuIcon>
- <NavIcon id={tab.id} className="h-4 w-4" />
- {showBadge && (
- // Overlaid on the icon rather than trailing the row, so the
- // count survives the collapsed rail's icon-only footprint.
- <SidebarMenuBadge tone="attention" className="absolute -right-1 -top-1 ml-0">
- {unreadCount > 9 ? '9+' : unreadCount}
- </SidebarMenuBadge>
- )}
- {showCompanionDot && (
- <span className="absolute -right-0.5 -top-0.5 h-2 w-2 animate-pulse rounded-full bg-blue-500" />
- )}
- </SidebarMenuIcon>
- <SidebarMenuLabel>{tab.label}</SidebarMenuLabel>
- </SidebarMenuButton>
- </SidebarMenuItem>
- );
- })}
- </SidebarMenu>
+ const active = matchActive(tab.path, location.pathname);
+ const showBadge = tab.id === 'notifications' && unreadCount > 0;
+ const showCompanionDot = tab.id === 'settings' && companionActive;
+ return (
+ <SidebarMenuItem key={tab.id}>
+ <SidebarMenuButton
+ isActive={active}
+ data-walkthrough={tab.walkthroughAttr}
+ onClick={() => handleClick(tab, active)}
+ title={tab.label}
+ // A nav row, not a control: auto height and 14px type, so
+ // the row breathes the way the shell's spacing scale expects.
+ className="h-auto py-2 text-[14px]">
+ <SidebarMenuIcon>
+ <NavIcon id={tab.id} className="h-4 w-4" />
+ {showBadge && (
+ // Overlaid on the icon rather than trailing the row, so
+ // the count survives the collapsed rail's icon-only
+ // footprint.
+ <SidebarMenuBadge
+ tone="attention"
+ className="absolute -right-1 -top-1 ml-0">
+ {unreadCount > 9 ? '9+' : unreadCount}
+ </SidebarMenuBadge>
+ )}
+ {showCompanionDot && (
+ <span className="absolute -right-0.5 -top-0.5 h-2 w-2 animate-pulse rounded-full bg-blue-500" />
+ )}
+ </SidebarMenuIcon>
+ <SidebarMenuLabel>{tab.label}</SidebarMenuLabel>
+ </SidebarMenuButton>
+ </SidebarMenuItem>
+ );
+ })}
+ </SidebarMenu>
+ </SidebarGroup>
</nav>
);
}