From 7582bddba3bb1acdb500c9720826b29c05873db2 Mon Sep 17 00:00:00 2001 From: gsxdsm Date: Sat, 13 Jun 2026 00:29:21 -0700 Subject: [PATCH] FN-6340: restrict archive action to done tasks Limits task card archiving UI to completed tasks while preserving coverage for hidden states. - Render the archive button only when a task is in the done column. - Update TaskCard tests to assert archive action visibility for done tasks and absence for other live columns. - Keep the header action placement assertion focused on done task cards. Files changed: packages/dashboard/app/components/TaskCard.tsx | 2 +- .../app/components/__tests__/TaskCard.test.tsx | 23 +++++++++++++++++----- 2 files changed, 19 insertions(+), 6 deletions(-) Fusion-Task-Id: FN-6340 Fusion-Task-Lineage: e1373fd1-5e50-4784-bf04-fa13ef0a08cb --- .../dashboard/app/components/TaskCard.tsx | 2 +- .../components/__tests__/TaskCard.test.tsx | 23 +++++++++++++++---- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/packages/dashboard/app/components/TaskCard.tsx b/packages/dashboard/app/components/TaskCard.tsx index c39cb5ed14..65425b4312 100644 --- a/packages/dashboard/app/components/TaskCard.tsx +++ b/packages/dashboard/app/components/TaskCard.tsx @@ -2043,7 +2043,7 @@ function TaskCardComponent({ )} - {task.column !== "archived" && onArchiveTask && ( + {task.column === "done" && onArchiveTask && (