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 8748dad63..d6198f36d 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 @@ -136,8 +136,9 @@ export const KanbanCard = memo(function KanbanCard({ }); // Make the card a drop target for creating dependency links - // Only backlog cards can be link targets (to avoid complexity with running features) - const isDroppable = !isOverlay && feature.status === 'backlog' && !isSelectionMode; + // All non-completed cards can be link targets to allow flexible dependency creation + // (completed features are excluded as they're already done) + const isDroppable = !isOverlay && feature.status !== 'completed' && !isSelectionMode; const { setNodeRef: setDroppableRef, isOver } = useDroppable({ id: `card-drop-${feature.id}`, disabled: !isDroppable, diff --git a/apps/ui/src/components/views/board-view/dialogs/dependency-link-dialog.tsx b/apps/ui/src/components/views/board-view/dialogs/dependency-link-dialog.tsx index 152e6702b..c86b41f9f 100644 --- a/apps/ui/src/components/views/board-view/dialogs/dependency-link-dialog.tsx +++ b/apps/ui/src/components/views/board-view/dialogs/dependency-link-dialog.tsx @@ -12,6 +12,8 @@ import { Button } from '@/components/ui/button'; import { ArrowDown, ArrowUp, Link2, X } from 'lucide-react'; import type { Feature } from '@/store/app-store'; import { cn } from '@/lib/utils'; +import { StatusBadge } from '../components'; +import type { FeatureStatusWithPipeline } from '@automaker/types'; export type DependencyLinkType = 'parent' | 'child'; @@ -57,7 +59,10 @@ export function DependencyLinkDialog({
{/* Dragged feature */}
-
Dragged Feature
+
+ Dragged Feature + +
{draggedFeature.description}
@@ -71,7 +76,10 @@ export function DependencyLinkDialog({ {/* Target feature */}
-
Target Feature
+
+ Target Feature + +
{targetFeature.description}
diff --git a/apps/ui/src/components/views/board-view/hooks/use-board-drag-drop.ts b/apps/ui/src/components/views/board-view/hooks/use-board-drag-drop.ts index 327a28927..10b7d1ba9 100644 --- a/apps/ui/src/components/views/board-view/hooks/use-board-drag-drop.ts +++ b/apps/ui/src/components/views/board-view/hooks/use-board-drag-drop.ts @@ -88,10 +88,10 @@ export function useBoardDragDrop({ const targetFeature = features.find((f) => f.id === targetFeatureId); if (!targetFeature) return; - // Only allow linking backlog features (both must be in backlog) - if (draggedFeature.status !== 'backlog' || targetFeature.status !== 'backlog') { + // Don't allow linking completed features (they're already done) + if (draggedFeature.status === 'completed' || targetFeature.status === 'completed') { toast.error('Cannot link features', { - description: 'Both features must be in the backlog to create a dependency link.', + description: 'Completed features cannot be linked.', }); return; }