feat(kanban): archive finished tasks#15
Merged
Merged
Conversation
Adds a two-step wind-down for completed work: a "Done" button on review cards promotes the task to the Done column, and a new Archive button (card + run-panel header) stamps `archivedAt` and tears down the task's tmux session so background claude REPLs don't outlive the user's interest in them. The default filter hides archived tasks; "All" and "Archived only" reveal them. Archived rows render read-only — no composer, no drag, no PATCH — until the user clicks Unarchive. Server-side: dedicated POST /tasks/:id/archive + /unarchive endpoints (kept off the PATCH allow-list so the tmux side-effect stays coupled to archival). archiveTask refuses non-Done rows and refuses while a run is still active, so the exit handler can't race the timestamp flip and leave the row in a contradictory column. PATCH refuses any mutation on archived rows, matching the UI invariant.
# Conflicts: # src/bun/approvals-endpoint.test.ts # src/mainview/App.tsx # src/mainview/components/kanban/KanbanFilters.tsx # src/mainview/components/kanban/RunPanel.tsx
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.
Adds a two-step wind-down for completed work: a "Done" button on review cards promotes the task to the Done column, and a new Archive button (card + run-panel header) stamps
archivedAtand tears down the task's tmux session so background claude REPLs don't outlive the user's interest in them. The default filter hides archived tasks; "All" and "Archived only" reveal them. Archived rows render read-only — no composer, no drag, no PATCH — until the user clicks Unarchive.Server-side: dedicated POST /tasks/:id/archive + /unarchive endpoints (kept off the PATCH allow-list so the tmux side-effect stays coupled to archival). archiveTask refuses non-Done rows and refuses while a run is still active, so the exit handler can't race the timestamp flip and leave the row in a contradictory column. PATCH refuses any mutation on archived rows, matching the UI invariant.