feat(desktop): redesigned shell behind the paradev-shell flag (rail, title-bar tabs, pane cards, composer home)
Summary
- A redesigned v2 desktop shell: an icon navigation rail, a title bar that holds the window controls and the open screen's tabs, a rounded content card, panes as separate cards, and a composer home screen.
- All of it is behind the
paradev-shellPostHog flag. With the flag off (everyone today) the desktop matchesmain, apart from the ungated items listed below. - The built-in Light theme gets a warm palette and AA contrast fixes. This part is not gated.
What the flag gates
With paradev-shell on:
- Title bar (
TitleBar): window controls inset, back/forward, sidebar toggle, New Workspace (when the list panel is hidden), ports, offline badge, then the screen's tab bar. In a v2 workspace the center tabs sit in the title bar and the right pane's tabs sit above the right pane, separated by a line. On macOS the row keeps a constant physical height under page zoom. On Windows/Linux it reserves the window-controls area on both sides, and the controls overlay takes the title bar's colour and height while it is on screen. - Navigation rail (
NavigationRail): Home, Chat (also needschannels), Pages, Plugins, Automations (red dot; opens your failed runs while it shows), Tasks, Pull requests, and a More menu (Workspaces, Usage, Add project). The account menu at the foot carries Settings. - List panel: collapses to width 0 beside the rail. The Chat section lists only Channels and Devs, and everything else lists workspaces.
- Chat tabs (
ChatTabs): one tab per channel, Dev and Threads in the title bar while in the Chat section. They are scoped to the organization, capped at 12, and persisted aschat-tabs. - Pane cards:
@superset/panesrendersappearance="cards": rounded cards with gaps, headers without a tint, pill tabs, and inactive split panes faded to 70%. - Home: the single-pill composer ("Do anything in Paradev"), with context pickers above, mode / agent / model below, and suggestions under the block.
How the gate works
useParadevShell()reads PostHog's cached flag value once, on its first call. PostHog is initialized before the dashboard renders, and the value is kept for the whole launch, so a flag change never swaps layouts (and remounts terminals) mid-session. A change applies on the next launch, and a profile with no cached flags gets the old layout until then.- Desktop components branch on that hook. Main's shell pieces (
WindowChrome,WindowChromeScope,useShowsAppTopBar,PageHeader's window-control inset) are kept, and they step aside inside the new shell:useCollapsedSidebarBandreturns false, andWindowControlsInsetonly reserves space in the title bar. - Shared packages don't read the flag.
@superset/panestakesappearance, and@superset/chat-uitakeslayout="inline".ParadevShellSyncsetsdata-shell="next"on<html>for the one shared class constant that uses ashell-next:Tailwind variant (PILL_TRIGGER_CLASS).
Not gated (reaches everyone on merge)
- Light theme (
packages/shared/src/themes/built-in/light.ts+ the:root.lightfallback): content#fafaf8, card#ffffff, shell#eceae8, borders#e2e0de/#d8d6d4, and the terminal background matches the pane card. Muted text is#625f5d(≥ 5.28:1) and the focus ring is#878482(≥ 3:1). Other light themes are untouched. - Shared code on the flag-off path, intended to be behaviour-neutral:
- The old sidebar header now uses
useDashboardNavigation,AddProjectMenuItems,SidebarNewWorkspaceButton,SidebarSearchButtonanduseCommandPaletteToggle, instead of its own copies. AgentIconmoved torenderer/components/AgentIcon.NewWorkspaceScreenshares its picker blocks between the two renders.- chat-ui's
ComposerBodywas restructured to add the inline layout; the stacked layout renders as before.
- The old sidebar header now uses
- Small behaviour changes for everyone:
- New Workspace opened from a workspace keeps that workspace's host, instead of the last-used host.
- A keyboard press on the sidebar's Search button reads the palette's live open state.
window.setTitleBarOverlay(desktop tRPC) accepts an optionalheight.TITLE_BAR_OVERLAY_HEIGHTis shared with the main process.
v1 (TopBar + WorkspaceSidebar) is untouched.
Rollout
paradev-shell exists in PostHog Production and Local Development. Dev stacks read Local Development, so a local build needs the flag there. Both target a single internal account. To try it, add yourself to the flag in the matching project and restart the app. Once it rolls out fully, a follow-up deletes the old path.
Manual QA Checklist
Driven over CDP against a dev stack (macOS, dark and light):
- Flag on: rail navigation, title-bar tabs (open, switch, close hands over to the left neighbour), right-pane tabs above the right pane, which disappear when it closes; chat tabs in the Chat section; pane cards; home composer
- Flag off (after the review fixes): old sidebar, nav, Channels/Devs sections, footer, in-place tab bars and pane borders, as on
main - Switching the flag and reloading swaps layouts; the workspace and its terminals come back
- Flag off: clicking through the old sidebar header (Tasks, PRs, Automations, New Workspace, Add project, Search) and the old New Workspace screen
- Windows / Linux: title bar insets, overlay colour and height (not run)
- macOS page zoom ≠ 100% with the flag on (not run)
Testing
bun run typecheck(apps/desktop),tscinpackages/panesandpackages/chat-ui- Biome on every changed file;
bun run check:i18n(all locales complete) bun test --isolate(Bun 1.4.3): desktop 3,283 in the touched areas,packages/panes144,packages/chat-ui81, chat-tabs store tests (organization scoping, malformed URLs, href bound, cap)- CI on
7737201ddc: Typecheck, Test, Lint, Sherif all pass
Known Limitations
- Settings stays a full-window screen rather than a tab.
- Inactive split panes fade to 70% in the new shell, which lowers text contrast there (kept as the intended look; open for design review).
- Tabs of archived channels are pruned unless that channel is open, because
channel.listomits archived channels. - The flag-off New Workspace screen, Windows/Linux and page zoom are not verified by hand (see the checklist).
Follow-ups
- Settings as a tab; per-entity tabs outside Chat; a design pass on pane dimming.
- When the flag is fully rolled out: delete the old shell path (
WindowChrome*,useShowsAppTopBar, the old header, theappearance="default"branches in panes, the old home render).
Summary by cubic
The v2 desktop shell — window-wide title bar over an icon rail and a rounded content card, with a composer home screen — is now gated behind the paradev-shell flag. Off (the default) the desktop matches main; on it shows the rail, title-bar tabs, pane cards, and inline home composer. The warm Light theme stays ungated.
useParadevShellkeeps the first PostHog answer per launch, so a flag change never swaps layouts (and remounts terminals) mid-session.- Desktop components branch on the hook; the old chrome (
WindowChrome,WindowControlsInset, the collapsed band) steps aside inside the new shell. @superset/panestakes anappearanceprop ("cards") instead of reading the flag; chat-ui's quiet send fill applies only tolayout="inline".ParadevShellSyncsetsdata-shell="next"on<html>when the flag and the V2 gate are both on. TheTitleBarpaints the Windows/Linux window-controls overlay with the sidebar text colour and its own height while mounted, restores the theme background on unmount, and only reruns the overlay when one of its colours changes.TitleBarowns the window controls and keeps a constant physical height under macOS page zoom, with a left inset for Linux window buttons. It hosts the workspace's tabs and, in the Chat section, a tab per channel, Dev, and Threads. Tabs are scoped to the active organization, sync across windows, treat ids over 128 characters as not tabs, and store an overlong href as its canonical path. Tabs placed in the title bar keep theirdata-pane-areaso close shortcuts still target the right pane.NavigationRailreplaces the old sidebar header navigation; the account menu now carries Settings.useDashboardNavigationdrives both the rail and the old header, and the collapsed list panel's resize handle stays reachable. New Workspace buttons and the shortcut open the screen with the viewed workspace's project and host already picked.- The workspace list collapses to width 0 beside the rail (Channels and Devs only in the Chat section);
DashboardSidebarkeeps its hooks mounted while hidden. WindowChrome,WindowChromeScope, anduseShowsAppTopBarare removed;PageHeaderand pane tab bars no longer reserve window-control space.- Panes are separate rounded cards in the Rex style, and header tabs and buttons share the one 28px pill style from
@superset/ui/lib/header-controls. PromptInputgainslayout="inline"for the single-pill composer; its placeholder is the fixed "Do anything in Paradev" line. In the inline layout the editor stays mounted while dictating and regains focus when the session goes idle, and the home picker rows wrap at narrow widths. The command-palette toggle reads the live open state for keyboard clicks, which have no pointerdown.- The built-in Light theme is re-tokened to a warm palette (content
#fafaf8, card#ffffff, shell#eceae8), its terminal background matches the pane card, and muted text and focus ring meet AA.
v1 (TopBar + WorkspaceSidebar) is untouched. Known limits: the failed-automations count badge is now just a rail dot, and Settings stays a full-window surface rather than a tab.
Summary by CodeRabbit
- New Features
- Added a redesigned desktop layout with a navigation rail, title bar, and tabs for chats, channels, and developers. Tabs can be opened, switched, and closed.
- Added a streamlined workspace-creation composer with agent selection and updated project, environment, and setup controls.
- Added an inline prompt composer option and a card-style workspace view.
- Added quick access to dashboard sections and project-creation options.
- Style
- Updated shell controls and light-theme colors with a warmer palette.
- Localization
- Added translations for new interface labels across supported languages.