refactor: extract shared client task operations #347

Merged
barrettruth merged 1 commit from issue-322-client-task-operations into main 2026-05-11 20:13:25 +00:00
Owner

Problem

Queue, kanban, and calendar each carried their own complete/delete/status-change wiring, including undo payload construction, recurrence-delete prompting, and panel-closing behavior. The unused legacy TaskList path also kept a second copy of those flows alive.

Solution

  • Add shared task operation helpers plus useTaskOperations for client complete/delete/status-change flows.
  • Route queue, kanban, and calendar mutations through the shared hook while leaving rendering and selection local to each view.
  • Share the recurrence-delete dialog wiring and delete the unused TaskList component.
  • Prompt recurring masters and materialized recurring instances through the same recurrence-delete path.

Verification

  • nix develop --command pnpm vitest run tests/lib/task-operations.test.ts --reporter=verbose
  • nix develop --command just lint
  • nix develop --command just test
  • nix develop --command just build
  • nix develop --command just ci

Closes #322

## Problem Queue, kanban, and calendar each carried their own complete/delete/status-change wiring, including undo payload construction, recurrence-delete prompting, and panel-closing behavior. The unused legacy TaskList path also kept a second copy of those flows alive. ## Solution - Add shared task operation helpers plus `useTaskOperations` for client complete/delete/status-change flows. - Route queue, kanban, and calendar mutations through the shared hook while leaving rendering and selection local to each view. - Share the recurrence-delete dialog wiring and delete the unused `TaskList` component. - Prompt recurring masters and materialized recurring instances through the same recurrence-delete path. ## Verification - `nix develop --command pnpm vitest run tests/lib/task-operations.test.ts --reporter=verbose` - `nix develop --command just lint` - `nix develop --command just test` - `nix develop --command just build` - `nix develop --command just ci` Closes #322
refactor: extract shared task operations
All checks were successful
quality / Test (pull_request) Successful in 16s
quality / Lint (pull_request) Successful in 20s
quality / Build (pull_request) Successful in 43s
5969c2e71f
barrettruth deleted branch issue-322-client-task-operations 2026-05-11 20:13:25 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
barrettruth/delta!347
No description provided.