import { useAppPath } from '@core/hooks/useAppPath' import { RecordListPage } from '../../components/records/RecordListPage' import { Badge } from '@core/components/ui/badge' const STATUS_LABELS: Record = { roadmap: 'Roadmap', decomposing: 'Decomposing', ready: 'Ready', active: 'Active', completed: 'Completed', parked: 'Parked', cancelled: 'Cancelled', } const PRIORITY_LABELS: Record = { p0: 'P0', p1: 'P1', p2: 'P2', p3: 'P3', } export default function InitiativesBoardPage() { const appPath = useAppPath() return ( appPath(`/planning/initiatives/${record.id}`)} createRoute={appPath('/planning/initiatives/new')} emptyMessage='No initiatives found.' columns={[ { key: 'title', label: 'Title' }, { key: 'status', label: 'Status', render: r => {STATUS_LABELS[r.status] || r.status || '—'} }, { key: 'priority', label: 'Priority', render: r => {PRIORITY_LABELS[r.data?.priority] || r.data?.priority || '—'} }, { key: 'target_date', label: 'Target Date' }, { key: 'updated_at', label: 'Updated' }, ]} /> ) }