style(desktop): new-shell polish: flat workspace frame, sliding left sidebar, aligned pane headers
Summary
- Workspace frame: in the new shell, workspace pages drop the framed card around their panes. The area behind the pane cards, the scripts bar and the frame take the shell colour, and the frame loses its border.
- Left sidebar: it slides open and closed with the same animation as the right pane, instead of vanishing at once.
- Pane headers: the header title lines up with the pane content (8px in). Before, the terminal header's icon sat 18px in, above terminal text 8px in.
All three apply only with the redesigned shell on (paradev-shell). The old shell renders as before.
Why / Context
Polish on the redesigned shell from #9124:
- In workspaces the pane cards already act as the surface, so a framed card around them doubled the edge and the background.
- The right pane slid while the left sidebar disappeared instantly, so the two sides felt different.
- The terminal header looked offset from the terminal under it.
How It Works
- Frame:
_dashboard/layout.tsxappliesborder border-border bg-backgroundto the content frame only off v2 workspace routes. The panesWorkspaceroot (in thecardsappearance) andV2PresetsBar(in the new shell) stop paintingbg-background. - Slide:
SidebarSlidemoves to_dashboard/components, because the dashboard layout and the workspace page both use it now.- It gains
edge("left"keeps the content anchored left while it moves) andalwaysMounted. A move that reverses another one now starts from the width on screen, so reopening during a close no longer snaps the panel shut first (this applies to the right pane too). WorkspaceSidebarPanelgainsslides, which the dashboard layout turns on in the new shell.DashboardSidebarstays rendered and laid out while closed, behind the slide'sinert, invisible content. So opening only reveals it, and its hooks (⌘1-9, the workspace switcher) keep running, including when the app starts collapsed.- Because the list stays rendered, toggling the sidebar sends Escape to a menu that has focus. Otherwise a context menu opened from a row stayed open over the content after ⌘B. The left slide also runs the browser relayout on each frame, as the right pane's slide does.
- It gains
- Header: in the
cardsappearance,DefaultHeaderContentkeeps an 8px inset: 2px outside the title's clipping box and 6px inside it.TerminalSessionDropdownadds-ml-1.5in that appearance (read withusePaneAppearance, now exported from@superset/panes). So its icon sits on the 8px line and its hover background is drawn in full.
Manual QA
Checked in a dev build with paradev-shell on, by measuring the DOM over CDP:
- Workspace page: the area around the pane cards and the scripts bar row match the sidebar and title bar colour (
#1A1716in the dark theme). The frame border is gone, and the pane cards keep their own border. - Left sidebar toggle: the width eases from 246px to 0 over about 0.3s, the same transition as the right pane. Mid-animation the list keeps its width and is clipped at the moving edge, and reopening restores it.
- Terminal header: the icon is 8px from the card edge, the terminal text 8px, and the gap from the header to the terminal 8px (the icon was 18px before).
- Terminal header hover: the clipping box and the session button both start 6px left of the title line, and the hover background's rounded left corner is drawn in full.
- ⌘B with a workspace row's context menu open: the sidebar and the menu both close. Before the fix the menu stayed open over the content.
- Left sidebar open speed (dev build, ⌘B, 4 runs): worst frame 50–64ms, first visible frame 74–86ms after the key press. Before: about 245ms and 280ms, because the list (about 2,500 elements) was built on each open.
- Not checked by hand:
- other pages' framed card (that code path is unchanged)
- the old shell
- collapsing the sidebar by dragging its handle past the collapse threshold
- auto-collapse in a narrow window with
slideson
Testing
tsc --noEmitinapps/desktopandpackages/panes: exit 0biome checkon the changed files: cleanbun testforSidebarSlide,WorkspaceSidebarPanel,WorkspaceSplitLayout,DashboardSidebar,TerminalPane(299 tests) andpackages/panes(144 tests): all pass. They include three newSidebarSlidetests:alwaysMountedbefore and after its first open, the left edge, and a reversed move starting from the on-screen width (this one fails on the old code).
Tests and typecheck ran on this branch in its own checkout. The CDP checks ran in a dev build with the same changed files.
Risks / Rollout
Low. Every change sits behind paradev-shell (or the cards appearance it sets), except the reversed-move fix in SidebarSlide, which the right pane also uses. With the sidebar closed at launch, its list now renders at startup instead of on first open, as the old shell always did. Rollback: revert the PR.
Summary by cubic
Polishes the redesigned shell: workspace pages drop the framed card around their panes, the left sidebar slides open and closed like the right pane, and pane header titles line up with their content.
- Workspace pages and the scripts bar stop painting their background in the new shell; other pages keep the frame.
- The left sidebar keeps its list rendered and laid out while collapsed, so it opens fast (~75ms vs ~280ms first frame in a dev build) and its hooks (⌘1-9, the workspace switcher) run from launch.
- A slide that reverses mid-move now starts from the width on screen, which also fixes the right pane.
- Toggling the sidebar now sends Escape to a focused menu, closing a context menu that would otherwise stay open over the content.
- The left slide relayouts browser panes on each frame, so a webview keeps its position when the split resizes.
- Pane header icons move to the same 8px line as their content; the header's clip includes that inset so the terminal session button's hover corner draws in full.
All changes are gated behind paradev-shell or the cards appearance; the old shell renders as before.
Summary by CodeRabbit
- New Features
- Workspace side panels can remain mounted while closed and slide in from either side.
- Sidebar panels preserve their expanded width when reopened, and their content remains available during transitions.
- Collapsing a sidebar closes any focused menu within it.
- Style
- Updated workspace appearance in ParaDev Shell, including panel and preset-bar backgrounds.
- Adjusted terminal session menu spacing in ParaDev Shell.
- Card-style panes now use a distinct background and header spacing.