veritas-kanban/web
BradGroux c8ee5004cd fix(web): eliminate 11 redundant full-list refetches from detail mutations
Detail-level mutations (subtasks, comments, observations, verification
steps) previously called invalidateQueries(['tasks']) on success, which
triggered a full GET /api/tasks re-fetch — even though the mutation
response already contained the complete updated task.

Replaced with patchTaskInCaches() helper that does an in-place cache
update of both the list cache (['tasks']) and individual task cache
(['tasks', id]). The existing polling interval and WebSocket events
still handle eventual consistency for multi-client scenarios.

Affected hooks (11 total):
- useAddSubtask, useUpdateSubtask, useDeleteSubtask
- useToggleSubtaskCriteria
- useAddComment, useEditComment, useDeleteComment
- useAddObservation, useDeleteObservation
- useAddVerificationStep, useUpdateVerificationStep, useDeleteVerificationStep

Added 12 regression tests verifying each mutation patches the cache
without triggering full-list invalidation.

All 95 tests pass (83 existing + 12 new).
2026-03-05 22:50:03 -06:00
..
src fix(web): eliminate 11 redundant full-list refetches from detail mutations 2026-03-05 22:50:03 -06:00
.env.example fix(security): remove .env from git, add .env.example 2026-01-28 12:05:17 -06:00
components.json feat: complete US-104 to US-108 (Kanban UI) 2026-01-26 02:54:25 -06:00
favicon.svg feat: add purple scales of justice favicon 2026-02-05 20:56:24 -06:00
index.html feat: add purple scales of justice favicon 2026-02-05 20:56:24 -06:00
package.json chore: bump the production-dependencies group with 4 updates (#172) 2026-03-04 00:45:58 -06:00
tailwind.config.js feat: complete US-104 to US-108 (Kanban UI) 2026-01-26 02:54:25 -06:00
tsconfig.json feat: initial project scaffolding 2026-01-26 02:34:54 -06:00
tsconfig.node.json feat: initial project scaffolding 2026-01-26 02:34:54 -06:00
vite.config.ts chore: bump tailwindcss from 3.4.19 to 4.2.1 (#149) 2026-02-28 09:20:52 -06:00
vitest.config.ts feat(web): add React error boundaries with graceful fallback UI 2026-01-29 04:39:30 -06:00