mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-03-25 00:33:08 +00:00
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.
This commit is contained in:
@@ -293,7 +293,10 @@ export const CardActions = memo(function CardActions({
|
|||||||
) : null}
|
) : null}
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
{!isCurrentAutoTask && feature.status === 'backlog' && (
|
{!isCurrentAutoTask &&
|
||||||
|
(feature.status === 'backlog' ||
|
||||||
|
feature.status === 'interrupted' ||
|
||||||
|
feature.status === 'ready') && (
|
||||||
<>
|
<>
|
||||||
<Button
|
<Button
|
||||||
variant="secondary"
|
variant="secondary"
|
||||||
|
|||||||
@@ -126,8 +126,12 @@ export const CardHeaderSection = memo(function CardHeaderSection({
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Backlog header */}
|
{/* Backlog header (also handles 'interrupted' and 'ready' statuses that display in backlog column) */}
|
||||||
{!isCurrentAutoTask && !isSelectionMode && feature.status === 'backlog' && (
|
{!isCurrentAutoTask &&
|
||||||
|
!isSelectionMode &&
|
||||||
|
(feature.status === 'backlog' ||
|
||||||
|
feature.status === 'interrupted' ||
|
||||||
|
feature.status === 'ready') && (
|
||||||
<div className="absolute top-2 right-2 flex items-center gap-1">
|
<div className="absolute top-2 right-2 flex items-center gap-1">
|
||||||
<Button
|
<Button
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
|
|||||||
@@ -121,6 +121,8 @@ export const KanbanCard = memo(function KanbanCard({
|
|||||||
const isDraggable =
|
const isDraggable =
|
||||||
!isSelectionMode &&
|
!isSelectionMode &&
|
||||||
(feature.status === 'backlog' ||
|
(feature.status === 'backlog' ||
|
||||||
|
feature.status === 'interrupted' ||
|
||||||
|
feature.status === 'ready' ||
|
||||||
feature.status === 'waiting_approval' ||
|
feature.status === 'waiting_approval' ||
|
||||||
feature.status === 'verified' ||
|
feature.status === 'verified' ||
|
||||||
feature.status.startsWith('pipeline_') ||
|
feature.status.startsWith('pipeline_') ||
|
||||||
|
|||||||
Reference in New Issue
Block a user