Skip to content

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

feat(sidebar): add collapsible navigation sections

Steven Enamakele4236d8fa281
diff --git a/app/src/components/ui/Sidebar.tsx b/app/src/components/ui/Sidebar.tsx
index 7cc2958795..20738c84a1 100644
--- a/app/src/components/ui/Sidebar.tsx
+++ b/app/src/components/ui/Sidebar.tsx
@@ -550,10 +550,17 @@ const MENU_BUTTON_SIZES: Record<SidebarMenuButtonSize, string> = {
/**
* One navigation row.
*
- * The active state is a neutral fill lifted off the chrome, not an accent tint:
- * the chrome carries the theme's hue, so tinting a pill on top of it stacks two
- * colours and reads as noise. Weight and contrast carry the selection instead,
- * and the fills are alpha-based so they lift against whatever the theme paints.
+ * The active state is a solid `primary-500` pill with inverted text. This was
+ * a neutral `bg-surface/70` fill, on the reasoning that the chrome carries the
+ * theme's hue so an accent pill stacks two colours. That held while the chrome
+ * was a themed WebGL mesh; the default backdrop is flat now and the chrome is a
+ * plain neutral, so a neutral pill on it is the thing that reads as noise —
+ * there is nothing for it to lift against. The accent is the only colour in
+ * this column, which is what makes it legible as *selection* rather than
+ * decoration.
+ *
+ * The hover/idle states stay alpha-based so they still lift against whatever a
+ * theme paints behind them.
*/
export const SidebarMenuButton = forwardRef<HTMLButtonElement, SidebarMenuButtonProps>(
(
@@ -582,7 +589,7 @@ export const SidebarMenuButton = forwardRef<HTMLButtonElement, SidebarMenuButton
'disabled:pointer-events-none disabled:opacity-50',
MENU_BUTTON_SIZES[size],
isActive
- ? 'bg-surface/70 font-semibold text-content'
+ ? 'bg-primary-500 font-semibold text-content-inverted'
: 'text-content-muted hover:bg-surface/40 hover:text-content-secondary',
className
)}
diff --git a/app/src/config/navConfig.ts b/app/src/config/navConfig.ts
index e11c672936..35518c96e9 100644
--- a/app/src/config/navConfig.ts
+++ b/app/src/config/navConfig.ts
@@ -105,7 +105,10 @@ interface AvatarMenuItem {
/**
* Avatar dropdown menu items shown beneath the agent-profile list.
- * Order: Account → Billing → Rewards → Invites → Wallet.
+ * Order: Account → Billing → Invites → Wallet.
+ *
+ * Rewards is not here: it is a primary `NAV_TABS` destination now, and one
+ * door per surface is the point of moving it.
*/
export const AVATAR_MENU_ITEMS: AvatarMenuItem[] = [
{
@@ -121,13 +124,6 @@ export const AVATAR_MENU_ITEMS: AvatarMenuItem[] = [
kind: 'openUrl',
cloudOnly: true,
},
- {
- id: 'rewards',
- labelKey: 'nav.avatarMenu.rewards',
- target: '/rewards',
- kind: 'navigate',
- cloudOnly: true,
- },
{
id: 'invites',
labelKey: 'nav.avatarMenu.invites',