import { Badge } from "@code/ui/components/badge"; import { Activity, ChevronRight, FileText, GitPullRequest, Layers, Radio, TriangleAlert, } from "lucide-react"; import { formatRelativeTime } from "@/lib/work-os/work-unit-projection"; import type { WorkUnitCard as WorkUnitCardData } from "@/lib/work-os/work-unit-projection"; const STATUS_LABEL: Record = { completed: "Completed", failed: "Failed", "needs-input": "Needs input", open: "Ready", queued: "Queued", working: "In progress", }; const STATUS_TONE: Record = { completed: "bg-emerald-500/15 text-emerald-400", failed: "bg-destructive/15 text-destructive", "needs-input": "bg-amber-500/15 text-amber-400", open: "bg-muted text-muted-foreground", queued: "bg-violet-500/15 text-violet-400", working: "bg-blue-500/15 text-blue-400", }; interface IndicatorProps { readonly icon: React.ReactNode; readonly label: string; readonly value: number; readonly tone?: string; } const Indicator = ({ icon, label, tone, value }: IndicatorProps) => ( {icon} {value} {label} ); interface WorkUnitCardProps { readonly card: WorkUnitCardData; readonly selected: boolean; readonly onSelect: () => void; } export const WorkUnitCard = ({ card, onSelect, selected, }: WorkUnitCardProps) => ( );