fix(desktop): hide empty archived workspace lanes

Closed
RO
3mo ago
+138-15

What changed

  • open Workspaces in board view by default
  • hide archived workspaces by default
  • omit empty Merged and Deleted lanes while archived workspaces are hidden
  • keep terminal lanes visible when they contain a live workspace, or when an archived window is selected
  • preserve explicit List and archived-window choices in shareable URLs

Why

Filtering archived workspaces removed their cards but left empty Merged and Deleted lanes behind. The unused columns consumed horizontal space and made the filter feel incomplete.

Screenshots

Before

Workspaces board before: empty Merged and Deleted lanes remain while archived workspaces are hidden

After

Workspaces board after: empty Merged and Deleted lanes are omitted while archived workspaces are hidden

Validation

  • bun test for board column visibility, filter defaults/reset behavior, and existing board derivation (14 passing)
  • bun run --cwd apps/desktop typecheck
  • scoped Biome check for all changed files
  • git diff --check
  • desktop CDP verification on the merged-deleted worktree, renderer http://localhost:3245/#/v2-workspaces, CDP port 3260
    • reproduced empty Merged and Deleted lanes with Hide archived selected
    • verified both lanes disappear after the fix
    • verified selecting Archived: past week restores both lanes
    • verified navigating away and back retains Board + Hide archived
    • captured before/after screenshots and zero renderer console errors during the final lifecycle check
  • fresh independent review after upstream integration
    • preserved upstream sorting, pin-filter URLs, shared archived grouping, and includeArchived: true
    • corrected the list empty-state filter baseline for the new Hide archived default

Summary by CodeRabbit

  • New Features

    • Workspaces now open in board view by default, with archived workspaces hidden.
    • Board and list views are preserved when shared or refreshed through the URL.
    • Empty merged and deleted columns are automatically hidden unless archived workspaces are being viewed.
  • Bug Fixes

    • Improved empty-state handling across all archived-workspace time ranges.
    • Archived columns remain visible when they contain workspaces or archived workspaces are shown.
    • Resetting workspace filters now preserves the selected view while hiding archived workspaces.