Skip to content

Update the sidebar and shared layout - #2945

Open
yasell wants to merge 1 commit into
CopilotKit:mainfrom
yasell:redesign/sidebar-layout
Open

yasell wants to merge 1 commit into
CopilotKit:mainfrom
yasell:redesign/sidebar-layout

Conversation

@yasell

@yasell yasell commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

The app's sidebar and the frame the screens sit in, drawn to the updated Figma UI Kit (Sidebar, Topbar, and the master screens that show them in place) and the designer's window backgrounds for light and dark.

What changes

The window. The sidebar and the page are two slabs on the window, 8px from its edges and 4px apart, with the same corner. The window is a new color, window, the designer's: #0B121A in light, below every slab, and the violet-gray #4A4E66 in dark, lifted above them, with the designer's square-dot matrix over it. The dots are drawn in code, as the empty states' pattern is: an SVG tile used as a mask, filled with window-foreground at a strength set in theme.css, so they follow the theme and weigh 2.9 KB gzipped. The page keeps no edge of its own there, as the sidebar's slab has none: each is told apart by its level.

The sidebar's slab. The frame (sidebar) is now the sidebar's own slab: the strip and, in OpenBot Desktop on macOS, the row of the window's buttons. The panel lies in it on the page's level (background), flush with the slab's right and bottom edges, with its own corner where it meets the strip, as the design draws it. Settings and Admin are the same slab, Back to app on its top row and the page's menu filling the rest. Before, the strip and the panel were drawn on the frame and the frame was the window too.

The strip.

  • Icons only, each in a 40px circle with an 18px icon. A section's name is in a tooltip beside its icon, and read out as before. The strip's short name "Chats" is gone: the tooltip says Conversations, as the panel does.
  • The open section is marked by the design's notch: the window bulging into the slab at its edge, drawn as an SVG in the window's colors (window, and window-foreground for the bar), so it meets the window's edge with no seam. It still slides between sections, and stands still when less motion is asked for. The open section's icon is in the text's color, the others muted, and it has no fill.
  • Hover is half of a chosen row's tint (sidebar-accent/50), everywhere in the sidebar.
  • The orb and the account are 40px, as the sections are.

The panels (Conversations, Bots). A 36px title row, a 32px search, rows 36px tall and 4px apart with a 24px orb, all 12px in from the panel's edge. A conversation's age is always shown at the row's right, not only on hover. New conversation is a plus, as New Bot is. At the design's width a long name is cut short: a conversation's before its age, a Bot's before its + and caret (#2936).

Settings and Admin. Back to app on the slab's top row, beside the window's buttons in OpenBot Desktop on macOS, with a chevron. Under it the page's level with the page's title, the groups (their labels in the text's color, semibold), 36px rows with 18px icons, the chosen page marked by the same notch, and the version at the foot.

OpenBot Desktop on macOS. The window's buttons have a 48px row of their own across the sidebar's top, as the master screens draw it. The strip and the panel start below it. The buttons stay where TRAFFIC_LIGHTS puts them. There is still no hide-sidebar button in it; folded down to the strip, the sidebar's edge has a "Show sidebar ⌘B" tooltip.

Width. 312px before anybody drags it (was 360): the design's 300px sidebar plus the window's 8px and 4px around it. A width somebody dragged stays.

Banners and the page's top bar. The eight banners across the top of the page (connection, update, plan, the three moves, self-host, an organization left) share one look: at least 48px tall, a line under them, no fill of their own, and the action as a semibold link (with an arrow where it leads on). PageShell's bar is 48px, as the design's top bar is (was 56px).

The scheme: a new color, window

Agreed beforehand, and in this pull request rather than one of its own because the slabs are drawn on it:

  • tokens/src/scheme.ts: window (light oklch(0.179 0.02 252.2), the design's #0B121A; dark oklch(0.43 0.04 277.2), its #4A4E66) and window-foreground (white; the dark theme's text color), each with its meaning, written out by bun run tokens:generate into app/src/theme.css, the artifacts kit's tokens.css and OpenBot Mobile's scheme.ts. The artifact bridge passes the two to a page as it passes every scheme color (THEME_TOKENS).
  • app/src/theme.css: --window-pattern (the tile, app/src/assets/patterns/window-matrix.svg) and --window-pattern-opacity (11% in light, 10% in dark), beside the empty-state pattern's, and the bg-window family for Tailwind. --window-pattern-opacity: 0 turns the dots off.
  • A stock shadcn theme doesn't set window, so a customer's theme gets OpenBot's window around it until it sets one. Skins draw their own frames and don't show it.

What the design draws and this doesn't

  • The dots at the design's size. The designer's tile repeats every 6.8px; here it is 6px with 3px squares, so every square lands on whole pixels at 1x and 2x.
  • Solid icons for the open section. Hugeicons' free set has no solid style, and filling an outline hides a clock's hands or a bubble's dots. The open section is marked by the notch and the text's color.
  • Hover and selection the same lavender. The kit draws both with sidebar-accent, so the row under the pointer looked chosen. Hover is half of it here.
  • The pin on a row's corner, half outside it. The pin stays in the row; the Pinned and Recents labels stay too.
  • "Working" in blue. It needs the in-progress token from Colors: the scheme follows the Figma UI Kit, light and dark #2879. It stays muted until that lands, then it's one class.

The chat's right panel and its header (Figma's "Chat sidebar" and "Chat" top bar) belong to the conversation screen's pull request.

Rules this changes, agreed beforehand

  • docs/design-system.md: a fourth level, Window (window), and the frame is the sidebar's slab. The window is the darkest surface in light and, as the design draws it, lifted above the slabs in dark; the slabs keep their order in both. The app's sidebar panels draw their rows at 36px, as page does; default keeps shadcn's 32px.
  • docs/app-guidelines.md: window in the scheme's list and the surfaces, and the dark window as the one gray with a tint of its own (violet, not slate's blue-gray); the lavender marks the chosen sidebar row and, at half strength, the row the pointer is on.
  • app/tests/design-tokens.test.ts: the window is below every slab in light and above every slab in dark, and --window* is one of ours. tokens/tests/slate.test.ts: dark's window is held on its own, a quiet violet tint. tokens/tests/contrast.test.ts: window-foreground reads on window.
  • openbot-copy skill: the strip's short name "Chats" is gone.

Tests that held the old look, changed with it: strip.test.tsx (names in a tooltip, a 40px circle), section-strip.test.tsx and section-strip-routines.test.tsx ("Conversations" for "Chats", the notch for the bar), channel-item-working.test.tsx (the age always shown), sidebar-preference.test.ts (312px), browser-nav-item.test.tsx (the tooltip names Skills above the recording), app-navigation.test.tsx, bots-panel.test.tsx, the corner positions in sidebar-window-buttons.test.tsx and skins-window-buttons.test.tsx, which say they are re-measured when the strip or a banner is redrawn, and the first step of sidebar-zoom-drag.test.tsx, whose zoomed window no longer clamps a 312px sidebar (the drag out to two-fifths still does).

The open base-component pull requests

They change this look once merged. Only #2879 shares files with this one, the scheme and the copies it writes, where the two add different colors:

Skins

OpenDuet, OpenDots and OpenFuse keep their own frames, and nothing of the app's sidebar or the window shows in them. They draw three of the banners (connection, self-host, update), which now have the shared look.

Screenshots

main on the left, this pull request on the right, light above dark. Rendered from the real components with seeded conversations and Bots (1200×760).

The app, Conversations open

The app, Conversations open

The app, Bots open

The app, Bots open

A section with no panel (Routines): the strip alone

A section with no panel (Routines): the strip alone

A section's name in its tooltip

A section's name in its tooltip

With a banner across the page

With a banner across the page

OpenBot Desktop on macOS: the row for the window's buttons

OpenBot Desktop on macOS: the row for the window's buttons

A narrow window, the sidebar's sheet open

A narrow window, the sidebar's sheet open

Settings

Settings

Settings in OpenBot Desktop on macOS

Settings in OpenBot Desktop on macOS

Admin

Admin

OpenDuet, with the self-host banner

OpenDuet, with the self-host banner

OpenDots, with the self-host banner

OpenDots, with the self-host banner

OpenFuse, with the self-host banner

OpenFuse, with the self-host banner

Checks

  • bun run typecheck
  • biome format and biome lint --error-on-warnings on the touched files
  • bun test tokens/tests (the scheme's copies, contrast, the grays, the charts): 71 pass, 0 fail
  • bun test on the 36 app test files that touch the strip, the panels, the rows, the shells, the banners, the frame's skeleton, the look's rules and the scheme's colors (the artifact bridge's and kit's tokens, skins): 344 pass, 0 fail (56 skipped run only in a browser)
  • In Chromium and WebKit (OPENBOT_APP_BROWSER=1), the 11 browser test files for the sidebar, the shells, the banners and the skins' frames (sidebar-window-buttons, skins-window-buttons, sidebar-zoom-drag, sidebar-current-row, section-strip-routines, strip-version-layout, update-banner-layout, compact-avatar-layout, account-row-layout, self-contained-account-menu, app-frame-skeleton-still): 170 pass, 0 fail (5 skipped only write screenshots)

The sidebar and the page are two slabs on the window, drawn to the updated
Figma kit and the designer's window backgrounds: a new scheme color, `window`
(#0B121A in light, #4A4E66 in dark) with its dots drawn in code; the strip as
icons in 40px circles with the notch in the window's colors; 36px panel rows;
Settings and Admin on the same slab; one 48px look for the eight banners and
PageShell's bar.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant