From f459b73cb5fc02eec629ad5701780d8b9978de11 Mon Sep 17 00:00:00 2001 From: gsxdsm Date: Sun, 15 Feb 2026 10:38:23 -0800 Subject: [PATCH] fix: update kanban card status handling - Enhanced the Kanban card component to support additional feature statuses ('interrupted' and 'ready') in the backlog display logic. - Updated relevant components to reflect these changes, ensuring consistent behavior across the UI. --- .../components/kanban-card/card-actions.tsx | 85 ++++++++++--------- .../components/kanban-card/card-header.tsx | 62 +++++++------- .../components/kanban-card/kanban-card.tsx | 2 + 3 files changed, 79 insertions(+), 70 deletions(-) diff --git a/apps/ui/src/components/views/board-view/components/kanban-card/card-actions.tsx b/apps/ui/src/components/views/board-view/components/kanban-card/card-actions.tsx index 9348a321..cc2b85c8 100644 --- a/apps/ui/src/components/views/board-view/components/kanban-card/card-actions.tsx +++ b/apps/ui/src/components/views/board-view/components/kanban-card/card-actions.tsx @@ -293,56 +293,59 @@ export const CardActions = memo(function CardActions({ ) : null} )} - {!isCurrentAutoTask && feature.status === 'backlog' && ( - <> - - {feature.planSpec?.content && onViewPlan && ( + {!isCurrentAutoTask && + (feature.status === 'backlog' || + feature.status === 'interrupted' || + feature.status === 'ready') && ( + <> - )} - {onImplement && ( - - )} - - )} + {feature.planSpec?.content && onViewPlan && ( + + )} + {onImplement && ( + + )} + + )} ); }); diff --git a/apps/ui/src/components/views/board-view/components/kanban-card/card-header.tsx b/apps/ui/src/components/views/board-view/components/kanban-card/card-header.tsx index 793c3191..bdf028b9 100644 --- a/apps/ui/src/components/views/board-view/components/kanban-card/card-header.tsx +++ b/apps/ui/src/components/views/board-view/components/kanban-card/card-header.tsx @@ -126,35 +126,39 @@ export const CardHeaderSection = memo(function CardHeaderSection({ )} - {/* Backlog header */} - {!isCurrentAutoTask && !isSelectionMode && feature.status === 'backlog' && ( -
- - -
- )} + {/* Backlog header (also handles 'interrupted' and 'ready' statuses that display in backlog column) */} + {!isCurrentAutoTask && + !isSelectionMode && + (feature.status === 'backlog' || + feature.status === 'interrupted' || + feature.status === 'ready') && ( +
+ + +
+ )} {/* Waiting approval / Verified header */} {!isCurrentAutoTask && diff --git a/apps/ui/src/components/views/board-view/components/kanban-card/kanban-card.tsx b/apps/ui/src/components/views/board-view/components/kanban-card/kanban-card.tsx index a332f305..f6725a7d 100644 --- a/apps/ui/src/components/views/board-view/components/kanban-card/kanban-card.tsx +++ b/apps/ui/src/components/views/board-view/components/kanban-card/kanban-card.tsx @@ -121,6 +121,8 @@ export const KanbanCard = memo(function KanbanCard({ const isDraggable = !isSelectionMode && (feature.status === 'backlog' || + feature.status === 'interrupted' || + feature.status === 'ready' || feature.status === 'waiting_approval' || feature.status === 'verified' || feature.status.startsWith('pipeline_') ||