gsxdsm
e4a9dc6df5
FN-7250: remove deleted tasks from shared task state
Keep board and right-dock task lists in sync immediately after a task delete succeeds.
- Remove deleted ids from useTasks state as soon as the delete API call resolves.
- Update or clear the project task SWR cache to avoid stale remount hydration.
- Invalidate older refreshes so late pre-delete snapshots cannot resurrect removed cards.
- Cover board columns, right-dock rows, cache updates, rejection handling, archived rows, and late refresh behavior.
- Add a patch changeset for the published Fusion package.
Files changed:
.changeset/fn-7250-delete-refresh.md | 7 +
.../app/components/__tests__/Board.test.tsx | 35 ++++
.../app/components/__tests__/DockTaskList.test.tsx | 30 ++++
.../dashboard/app/hooks/__tests__/useTasks.test.ts | 190 +++++++++++++++++++++
packages/dashboard/app/hooks/useTasks.ts | 33 +++-
5 files changed, 294 insertions(+), 1 deletion(-)
Fusion-Task-Id: FN-7250
Fusion-Task-Lineage: f2271366-7494-402c-9a8b-9927dbe4401c
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
2026-06-29 19:36:01 -07:00
..
2026-06-29 18:32:36 -07:00
2026-06-28 12:49:55 -07:00
2026-06-29 18:41:43 -07:00
2026-06-29 19:36:01 -07:00
2026-06-28 12:49:55 -07:00
2026-06-28 12:49:55 -07:00
2026-06-29 19:23:38 -07:00
2026-06-28 12:49:55 -07:00
2026-06-28 12:49:55 -07:00
2026-06-28 12:49:55 -07:00
2026-06-08 15:19:27 -07:00
2026-06-28 12:49:55 -07:00