import { useAppPath } from '@core/hooks/useAppPath' import { RecordListPage } from '../../components/records/RecordListPage' import { Badge } from '@core/components/ui/badge' const STATUS_LABELS: Record = { discovery: 'Discovery', decision: 'Decision', refinement: 'Refinement', approved: 'Approved', rejected: 'Rejected', parked: 'Parked', } export default function DiscoveryBoardPage() { const appPath = useAppPath() return ( appPath(`/intake/discoveries/${record.id}`)} createRoute={appPath('/intake/discoveries/new')} emptyMessage='No discoveries found.' columns={[ { key: 'title', label: 'Title' }, { key: 'status', label: 'Status', render: r => {STATUS_LABELS[r.status] || r.status || '—'} }, { key: 'priority', label: 'Priority', render: r => {r.data?.priority || '—'} }, { key: 'updated_at', label: 'Updated' }, ]} /> ) }