feat(KB-069): add Archive All Done feature

- Add archiveAllDone method to TaskStore with filtering and batch archive
- Add POST /tasks/archive-all-done API endpoint with tests
- Add useTasks hook support and API function for archiveAllDone
- Add Archive All button to done column header in Board UI
- Wire up onArchiveAllDone through Board component hierarchy
This commit is contained in:
gsxdsm
2026-03-30 16:50:34 -07:00
parent c71347930f
commit 360f3e03b3
11 changed files with 293 additions and 5 deletions

View File

@@ -123,6 +123,12 @@ export function unarchiveTask(id: string): Promise<Task> {
return api<Task>(`/tasks/${id}/unarchive`, { method: "POST" });
}
export function archiveAllDone(): Promise<Task[]> {
return api<{ archived: Task[] }>("/tasks/archive-all-done", { method: "POST" }).then(
(response) => response.archived
);
}
export function approvePlan(id: string): Promise<Task> {
return api<Task>(`/tasks/${id}/approve-plan`, { method: "POST" });
}