Add a session Kanban board - #2
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a session Kanban board: a new full-screen surface where sessions sit in automatic columns and the only manual transition is archive/unarchive.
archived → working → needs_you → idle, sorted pinned-first then by recency. Cards carry the reason (Waiting for you/Finished).data-no-dragtargets ignored.No schema or persistence changes: archiving uses the existing
session_set_archivedpath, and the board is derived state (no polling).Implementation notes
src/lib/sessionBoard.ts— pure classifier over the canonical merged session list plus the existing live signal sets (busySessionIds,approvalSessionIds,unseenFinishedIds); excludes ephemeralinboxAsksessions and orchestration workers.src/lib/kanbanDrag.ts— pure drop-target helpers (kanbanColumnFromPoint,boardDropOutcome).src/surfaces/KanbanView.tsx— the surface (header, scope toggle, columns, cards, drag gesture).src/App.tsx— surface lifecycle parity with Inbox/Notes: mutual exclusion, keyboard guards, back navigation, hidden/inert workspace, usage-footer suppression. While the board is open the previously active session counts as unfocused, so a turn that finishes then shows up as "Finished" (and its approval/question banner can fire).Tests
npm run check:web— 230 files / 2395 tests passed,tsc --noEmitclean.npm run check:rust— fmt clean, clippy-D warningsclean, 310 tests passed.sessionBoard.test.ts(precedence, needs-you reasons, scope filter, sorting, worker exclusion),kanbanDrag.test.ts(drop matrix, hit test),KanbanView.test.ts(columns, badges, empty hints, all-projects names),ProjectRail.test.ts(rail entry order).Stacked PR
This branch is based on
feat/pr-write-actions(#1). Merge #1 first, or retarget this PR tomainafter #1 lands.Pending before merge