// CIL[BEGIN chunk_id="ParkingLotPage_module_header_1784761401" type="module_header" identity="module_header" parent="none"] // CIL[DOC-MACRO purpose="List parked work items and let users open a detail view"] // CIL[DOC-RESPONSIBILITY responsibility="Fetch workbench_work_item records with status=parking and render them in a clickable list"] // CIL[DOC-CONTEXT module="workbench.pages.work.ParkingLotPage" layer="frontend-page" related_files="[\"custom/apps/workbench/components/records/RecordListPage.tsx\",\"custom/apps/workbench/pages/work/WorkItemDetailPage.tsx\",\"custom/apps/workbench/components/work/badges.tsx\"]"] // CIL[DOC-CONTRACT inputs="none" outputs="JSX page" errors="fetch errors rendered inline" side_effects="calls /api/admin-data, navigates on row click"] // CIL[DOC-MICRO logic_summary="Wraps RecordListPage configured for parking status work items; row opens /engineering/items/:id" 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 { StatusBadge, PriorityBadge, SeverityBadge, WorkTypeBadge } from '../../components/work/badges' import { useWorkbenchRole } from '../../hooks/useWorkbenchRole' // CIL[END chunk_id="ParkingLotPage_module_header_1784761401"] // CIL[BEGIN chunk_id="ParkingLotPage_parkingLotPage_1784761401" type="function" identity="ParkingLotPage" parent="none"] // CIL[DOC-MACRO description="Implementation of ParkingLotPage" macro="Renders and manages ParkingLotPage 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 ParkingLotPage() { const appPath = useAppPath() const { role } = useWorkbenchRole() return ( appPath(`/work/${role}/items/${record.id}`)} createRoute={appPath(`/work/${role}/items/new`)} emptyMessage="No parked items." extraParams={{ status: 'parking' }} filterFn={record => record.data?.team === role || record.data?.team === '*' || record.data?.team === 'unassigned'} columns={[ { key: 'title', label: 'Title' }, { key: 'status', label: 'Status', render: r => }, { key: 'work_type', label: 'Type', render: r => }, { key: 'priority', label: 'Priority', render: r => }, { key: 'severity', label: 'Severity', render: r => }, { key: 'updated_at', label: 'Updated' }, ]} /> ) } // CIL[END chunk_id="ParkingLotPage_parkingLotPage_1784761401"]