This repository was archived by the owner on Sep 2, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 2, 2026. It is now read-only.
[Spec] Sidebar stage groups #28
Copy link
Copy link
Closed
Labels
ready-for-agentready-for-agent
Description
Part of the wayfinder map. Decisions: #9, #3, #5.
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
- 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.
- As a user, I want stage groups in board column order, so that the sidebar matches the board.
- As a user, I want unstaged workspaces in a top "Sans stage" section, so that simple work stays visible and sorted.
- As a user, I want children nested under their root inside its group, so that a feature stays one unit.
- 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.
- 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.
- As a user, I want blocked drops explained, so that authority rules are legible outside the board.
- As a user, I want an amber awaiting indicator on rows whose agent waits for me, so that I notice without reordering.
- 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-stagegroup-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.
Metadata
Metadata
Assignees
Labels
ready-for-agentready-for-agent
Activity
Merge pull request #66 from 64ix/spec/28-sidebar-stage-groups
feat(worktree): mobile stage badge & By-stage grouping (#97)