// CIL[BEGIN chunk_id="DocsBoardPage_module_header_1784761401" type="module_header" identity="module_header" parent="none"] // CIL[DOC-MACRO purpose="List engineering documentation runbooks"] // CIL[DOC-RESPONSIBILITY responsibility="Fetch workbench_runbook records and link to detail"] // CIL[DOC-CONTEXT module="workbench.pages.work.DocsBoardPage" layer="frontend-page" related_files="[\"custom/apps/workbench/components/records/RecordListPage.tsx\",\"custom/apps/workbench/pages/work/RunbookDetailPage.tsx\"]"] // CIL[DOC-CONTRACT inputs="none" outputs="JSX page" errors="none" side_effects="navigation"] // CIL[DOC-MICRO logic_summary="Wraps RecordListPage for workbench_runbook 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 { useWorkbenchRole } from '../../hooks/useWorkbenchRole' import { RecordListPage } from '../../components/records/RecordListPage' // CIL[END chunk_id="DocsBoardPage_module_header_1784761401"] // CIL[BEGIN chunk_id="DocsBoardPage_docsBoardPage_1784761401" type="function" identity="DocsBoardPage" parent="none"] // CIL[DOC-MACRO description="Implementation of DocsBoardPage" macro="Renders and manages DocsBoardPage 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"] export default function DocsBoardPage() { const appPath = useAppPath() const { role } = useWorkbenchRole() return ( appPath(`/work/${role}/docs/${record.id}`)} createRoute={appPath(`/work/${role}/docs/new`)} emptyMessage="No docs found." columns={[ { key: 'title', label: 'Title' }, { key: 'version', label: 'Version', render: r => {r.data?.version || '—'} }, { key: 'trigger', label: 'Trigger', render: r => {r.data?.trigger || '—'} }, { key: 'updated_at', label: 'Updated' }, ]} /> ) } // CIL[END chunk_id="DocsBoardPage_docsBoardPage_1784761401"]