gsxdsm
e7cb2f1fed
FN-7525: add Revert/Undo affordance to Done and Archived task cards
Adds a Revert action so operators can undo landed changes for Done/Archived tasks directly from the board.
- Adds onRevertTask wiring through Board, Column, Lane, ListView, TaskDetailModal, and WorktreeGroup surfaces
- Adds a Revert affordance to TaskCard (Done/Archived states) with confirm UX and CSS
- Adds POST /tasks/:id/revert legacy API route supporting "auto" mode with an AI-undo fallback (mode: "ai") on conflict
- Wires useTasks hook and dashboard MainContent/types to support the new revert action
- Adds new i18n strings for the revert affordance
- Adds a minor changeset for @runfusion/fusion documenting the feature
- Adds/updates tests: TaskCard.test.tsx, board-mobile.test.tsx, api-git.test.ts
- Updates docs/dashboard-guide.md and docs/task-management.md
Files changed:
.changeset/fn-7525-revert-card-affordance.md | 7 +
docs/dashboard-guide.md | 2 +-
docs/task-management.md | 10 ++
packages/dashboard/app/App.tsx | 7 +-
packages/dashboard/app/__tests__/api-git.test.ts | 51 +++++++
packages/dashboard/app/api/legacy.ts | 51 +++++++
packages/dashboard/app/components/AppModals.tsx | 5 +-
packages/dashboard/app/components/Board.tsx | 10 +-
packages/dashboard/app/components/Column.tsx | 8 +-
packages/dashboard/app/components/Lane.tsx | 5 +-
packages/dashboard/app/components/ListView.tsx | 80 ++++++++++-
packages/dashboard/app/components/TaskCard.css | 24 +++-
packages/dashboard/app/components/TaskCard.tsx | 127 ++++++++++++++++-
packages/dashboard/app/components/TaskDetailModal.tsx | 85 ++++++++++++
packages/dashboard/app/components/WorktreeGroup.tsx | 6 +
packages/dashboard/app/components/__tests__/TaskCard.test.tsx | 151 +++++++++++++++++++++
packages/dashboard/app/components/__tests__/board-mobile.test.tsx | 63 +++++++++
packages/dashboard/app/components/dashboard/MainContent.tsx | 4 +
packages/dashboard/app/components/dashboard/types.ts | 8 ++
packages/dashboard/app/components/useRightDockController.tsx | 4 +
packages/dashboard/app/hooks/useTasks.ts | 21 ++-
packages/i18n/locales/en/app.json | 11 ++
22 files changed, 718 insertions(+), 22 deletions(-)
Fusion-Task-Id: FN-7525
Fusion-Task-Lineage: b9e2ca94-4ec6-4443-8e41-cf4828018856
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
2026-07-05 11:31:47 -07:00
..
2026-07-05 11:31:47 -07:00
2026-07-05 11:31:47 -07:00
2026-07-05 11:31:47 -07:00
2026-07-05 11:31:47 -07:00
2026-07-02 14:31:16 -07:00
2026-07-01 18:01:17 -07:00
2026-06-27 12:20:42 -07:00
2026-07-04 13:43:59 -07:00
2026-07-05 11:31:46 -07:00
2026-07-05 11:31:47 -07:00
2026-07-03 07:47:03 -07:00
2026-06-23 10:43:14 -07:00
2026-07-02 11:38:34 -07:00
2026-06-21 00:12:57 -07:00