import { KanbanColumn } from './KanbanColumn' import type { Feature, FeatureListResponse, ActiveAgent } from '../lib/types' import { Card, CardContent } from '@/components/ui/card' interface KanbanBoardProps { features: FeatureListResponse | undefined onFeatureClick: (feature: Feature) => void onAddFeature?: () => void onExpandProject?: () => void activeAgents?: ActiveAgent[] onCreateSpec?: () => void hasSpec?: boolean } export function KanbanBoard({ features, onFeatureClick, onAddFeature, onExpandProject, activeAgents = [], onCreateSpec, hasSpec = true }: KanbanBoardProps) { const hasFeatures = features && (features.pending.length + features.in_progress.length + features.done.length) > 0 // Combine all features for dependency status calculation const allFeatures = features ? [...features.pending, ...features.in_progress, ...features.done] : [] if (!features) { return (
{['Pending', 'In Progress', 'Done'].map(title => (
{[1, 2, 3].map(i => (
))}
))}
) } return (
) }