Skip to content
This repository was archived by the owner on Sep 2, 2026. It is now read-only.
This repository was archived by the owner on Sep 2, 2026. It is now read-only.

[Spec] Sidebar stage groups #28

Closed

Description

@64ix

Part of the wayfinder map. Decisions: #9, #3, #5.

Blocked by: #21, #23.

Problem Statement

The sidebar is the generalist view of every workspace, but today it has no way to sort by delivery stage. The user wants it sorted without losing the general overview.

Solution

A fourth group-by mode, "By stage":

  • Groups worktrees by stage in board column order, with a "Sans stage" section at the top for unstaged workspaces.
  • Children stay nested under their root row (they have no stage of their own).
  • Staged workspaces carry a small stage badge in ALL grouping modes, so the generalist view stays legible.
  • Dropping a worktree onto a stage group declares that stage — authority-gated like the board.
  • Awaiting-input shows as a clear amber indicator on the row; no elevation (board-only behavior).

User Stories

  1. As a user, I want a "By stage" group-by mode in the sidebar, so that I can see all workspaces sorted by pipeline stage.
  2. As a user, I want stage groups in board column order, so that the sidebar matches the board.
  3. As a user, I want unstaged workspaces in a top "Sans stage" section, so that simple work stays visible and sorted.
  4. As a user, I want children nested under their root inside its group, so that a feature stays one unit.
  5. As a user, I want a small stage badge on staged workspaces in every grouping mode, so that I stay oriented even in the general view.
  6. As a user, I want to drop a workspace onto a stage group to declare its stage, so that the sidebar can steer stages too.
  7. As a user, I want blocked drops explained, so that authority rules are legible outside the board.
  8. As a user, I want an amber awaiting indicator on rows whose agent waits for me, so that I notice without reordering.
  9. As a user, I want the existing group-by modes (status, repo, PR status) unchanged, so that nothing I use disappears.

Implementation Decisions

  • New workflow-stage group-by mode beside the existing three; groups ordered by the fixed stage set, "Sans stage" section first.
  • Group membership from the effective stage (spec 2) for root worktrees; children render nested via the existing lineage display.
  • The stage badge is a per-row decoration rendered from the worktree's stage, visible in every grouping mode including none.
  • Drops reuse the existing status-lane drop machinery, extended with the authority guard (spec 3); blocked drops show the explanation.
  • Awaiting-input: indicator only (amber icon), reusing the existing agent-state gutter; no elevation, no reordering.

Testing Decisions

  • Test group membership and ordering, the Sans-stage section, nested children, badge presence across modes, drop gating with explanations, awaiting indicator.
  • Seams: the group-by view-model, the drop handler, the row badge.
  • Prior art: worktree-list-groups tests; status-lane drop tests; WorktreeList grouping tests.

Out of Scope

  • The board itself (spec 4) — the sidebar shares derivation + authority, not the board's UI.
  • Classic drawer changes beyond the exclusivity filter (spec 1).

Further Notes

  • Elevation (awaiting-input floats to top) is intentionally board-only; the sidebar keeps rows stable.

Activity

  1. added 2 commits that reference this issue on Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions