diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-01-18 15:24:58 -1000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-01-18 15:24:58 -1000 |
| commit | 8dbb6f43577b8a86e94ef7aaee196f9743356643 (patch) | |
| tree | 8713bf776f0c01c3d0fc94d906667e2e839e79f3 /cmd | |
| parent | 143166ce759ce2cb0133b7438db36b844a9db1a7 (diff) | |
Implement unified task completion with cache sync (Phase 3 Step 7)
Add checkbox UI to Tasks tab for completing Todoist tasks and archiving
Trello cards. Fix cache synchronization so completed items stay gone
after page reload by deleting them from SQLite cache after API success.
- Add HandleCompleteAtom handler routing to Todoist/Trello APIs
- Add DeleteTask/DeleteCard store methods for cache removal
- Add htmx.process() calls after innerHTML updates in app.js
- Add comprehensive tests for completion and cache behavior
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/dashboard/main.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/dashboard/main.go b/cmd/dashboard/main.go index 4a1fb32..e8c2fa4 100644 --- a/cmd/dashboard/main.go +++ b/cmd/dashboard/main.go @@ -85,6 +85,9 @@ func main() { r.Post("/tasks", h.HandleCreateTask) r.Post("/tasks/complete", h.HandleCompleteTask) + // Unified task completion (for Tasks tab Atoms) + r.Post("/complete-atom", h.HandleCompleteAtom) + // Serve static files fileServer := http.FileServer(http.Dir("web/static")) r.Handle("/static/*", http.StripPrefix("/static/", fileServer)) |
