feat(desktop): reorganize sidebar and workspace header chrome

Merged
KI
4mo ago
+991-676

Summary

Reorganizes the v2 desktop chrome across the dashboard sidebar, workspace tab bar, and right sidebar (two parallel sessions on this branch; full revert-oriented change log in apps/desktop/plans/20260721-sidebar-header-reorg-notes.md).

Dashboard sidebar

  • User/org dropdown moved from the sidebar top into the footer; Settings is an icon-only gear; help menu and Switch-organization live inside the org dropdown
  • New Search button (opens/closes the command palette); looking-glass removed from the nav row; New Workspace moved to top; Workspaces tab hidden behind a flag
  • Collapsible "Workspaces" list header with add-repo dropdown; deeper indent for workspaces under sections; drag grip no longer swaps in on group hover

Workspace view

  • TopBar merged into the pane tab bar on the v2 workspace route (expanded sidebar): the tab bar is now the Electron drag region and hosts the right-sidebar toggle + non-Mac window controls; TopBar still renders when the sidebar is collapsed/closed (traffic-light inset)
  • Inverted tab styling (pane tabs + Files/Changes/Review tabs): inactive tabs carry the shaded block, active tab blends into the content below with an l/r/t frame; assorted dividers removed
  • Run button moved into the tab bar trailing slot; presets bar borderless and taller

Right sidebar

  • PR action header is a CSS container: open-in button and PR badge collapse to icon-only below 240px so the header never squishes; full worktree path in the open-in tooltip
  • Files-tab search moved into the explorer toolbar; changes panel spacing/spinner cleanups

Test Plan

  • Sidebar footer: org dropdown (help submenu, switch org, log out), gear opens settings, hotkey tooltips
  • Search button toggles command palette open/closed
  • Workspace view (expanded sidebar): no top bar, window drags from empty tab-bar space, tabs/buttons all clickable, right-sidebar toggle works
  • Collapse the left sidebar: TopBar returns, traffic lights don't overlap
  • Resize right sidebar below ~240px: open-in + PR badge collapse to icons; tooltips/hover cards intact
  • Windows/Linux: window controls present in tab bar on the workspace route

Summary by cubic

Reorganizes desktop chrome to simplify navigation and save space: moves org/help/search into the dashboard sidebar, adds a collapsible “Workspaces” header with Add‑repo, merges the TopBar into the v2 workspace tab bar, and makes the PR header responsive. Adds an “Add project” section to the command palette and subtle edge fades in Files and Changes.

  • New Features

    • Dashboard sidebar: Search button toggles the command palette; New Workspace moved to the top; org menu moved to the footer with Help; new collapsible “Workspaces” header with Add‑repo dropdown (state persists).
    • Command palette: New “Add project” section (Clone from URL, Open from folder, Start from template) with a folder‑import flow.
    • Workspace (v2): TopBar merged into the tab bar; Run, right‑sidebar toggle, and non‑Mac window controls moved into the tab bar; Open‑in moved into the PR header with a tooltip showing the full path; Files tab search moved into the explorer toolbar.
    • Tabs: Inverted tab style across packages/panes; tab bar doubles as the window drag region.
  • Refactors

    • Cleaner UI: removed extra borders/dividers; presets bar is taller and borderless; “Explorer” title removed.
    • Sidebar polish: deeper indent for nested workspaces; section/project counts removed; diff stats shown only on the active row; hover drag‑grip removed; Workspaces tab and history button hidden behind flags.
    • Scroll polish: edge fades on scrollable content in Files and Changes views.
    • Minor fixes: Help submenu uses onSelect for proper menu behavior; folder‑import intent seeded on mount to avoid replayed imports.

Summary by CodeRabbit

  • New Features
    • Added an “Add project” section to the command palette (clone URL, open folder, start from template), including folder-import flow with success/error toasts.
    • Added a Help dropdown in the top bar (docs, keyboard shortcuts, report issue, contact links) with a submit prompt dialog.
  • UI Improvements
    • Restyled dashboard/workspace sidebars and tabs, including collapsible “Workspaces” with remembered state, updated header controls, refined top bar behavior, and improved file/changes scrolling fades.
  • Bug Fixes
    • Improved folder-import feedback, including clearer handling when multiple candidate projects are found.