import { Card, CardContent, CardHeader, CardTitle } from '@core/components/ui/card' import { Badge } from '@core/components/ui/badge' const TYPE_LABELS: Record = { workbench_idea: 'Idea', workbench_discovery: 'Discovery', workbench_initiative: 'Initiative', workbench_epic: 'Epic', workbench_sprint: 'Sprint', workbench_work_item: 'Work item', } function TypeLabel({ slug }: { slug?: string }) { const label = (slug && TYPE_LABELS[slug]) || slug?.replace(/^workbench_/, '') || 'Record' return {label} } function LineRow({ item }: { item: any }) { return (
{item.title || 'Untitled'}
{item.status || '—'} · {item.description?.slice(0, 60) || ''}{item.description?.length > 60 ? '…' : ''}
) } export function OriginChain({ item }: { item: any }) { const parents = item?.parents || [] const children = item?.children || [] if (!parents.length && !children.length) { return null } return ( Origin & context {parents.length > 0 && (
Parents
{parents.map((p: any, idx: number) => ( ))}
)} {children.length > 0 && (
Children ({children.length})
{children.slice(0, 20).map((c: any, idx: number) => ( ))}
)}
) }