// CIL[BEGIN chunk_id="EpicsPage_module_header_1784761401" type="module_header" identity="module_header" parent="none"] // CIL[DOC-MACRO purpose="List engineering epics"] // CIL[DOC-RESPONSIBILITY responsibility="Fetch workbench_epic records and open the detail view on row click"] // CIL[DOC-CONTEXT module="workbench.pages.work.EpicsPage" layer="frontend-page" related_files="[\"custom/apps/workbench/components/records/RecordListPage.tsx\",\"custom/apps/workbench/pages/work/EpicDetailPage.tsx\"]"] // CIL[DOC-CONTRACT inputs="none" outputs="JSX page" errors="none" side_effects="navigation"] // CIL[DOC-MICRO logic_summary="Wraps RecordListPage for workbench_epic records" notable_decisions="[]"] // CIL[DOC-CONFIDENCE pass="first" score="0.9" flags="none"] // CIL[DOC-STABILITY stability="experimental"] // CIL[DOC-AUDIENCE audience="developer"] import { useAppPath } from '@core/hooks/useAppPath' import { RecordListPage } from '../../components/records/RecordListPage' import { Badge } from '@core/components/ui/badge' // CIL[END chunk_id="EpicsPage_module_header_1784761401"] // CIL[BEGIN chunk_id="EpicsPage_epicsPage_1784761401" type="function" identity="EpicsPage" parent="none"] // CIL[DOC-MACRO description="Implementation of EpicsPage" macro="Renders and manages EpicsPage UI state"] // CIL[DOC-CONTRACT input_spec="See module header or type signature" output_spec="JSX or value" side_effects="none"] // CIL[DOC-STABILITY stability="experimental"] const PHASE_LABELS: Record = { current: 'Current', future: 'Future', completed: 'Completed' } export default function EpicsPage() { const appPath = useAppPath() return ( appPath(`/engineering/planning/epics/${record.id}`)} createRoute={appPath('/engineering/planning/epics/new')} emptyMessage="No epics found." columns={[ { key: 'title', label: 'Title' }, { key: 'phase', label: 'Phase', render: r => {PHASE_LABELS[r.data?.phase] || r.data?.phase || '—'} }, { key: 'team', label: 'Team', render: r => {r.data?.team || '—'} }, { key: 'target_date', label: 'Target Date' }, { key: 'updated_at', label: 'Updated' }, ]} /> ) } // CIL[END chunk_id="EpicsPage_epicsPage_1784761401"]