import { useAppPath } from '@core/hooks/useAppPath' import { RecordListPage } from '../../components/records/RecordListPage' import { Badge } from '@core/components/ui/badge' const TYPE_LABELS: Record = { unit: 'Unit', integration: 'Integration', e2e: 'E2E', regression: 'Regression', manual: 'Manual' } export default function UnitTestsPage() { const appPath = useAppPath() return ( appPath(`/quality/unit/${record.id}`)} emptyMessage="No unit tests found." extraParams={{ case_type: 'unit' }} filterFn={record => record.data?.case_type === 'unit'} columns={[ { key: 'title', label: 'Title' }, { key: 'case_type', label: 'Type', render: r => {TYPE_LABELS[r.data?.case_type] || r.data?.case_type || '—'} }, { key: 'status', label: 'Status' }, { key: 'updated_at', label: 'Updated' }, ]} /> ) }