You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
refactor(ats): MockApplication is the production domain type for 14 components #536
office-applications-screen.tsx:63 transforms API rows intoMockApplication "for UI compatibility". The mock file cannot be deleted without extracting the type first.
The type is also partly fictional: the comment at line 64 says data comes from v_applications_with_user_profiles, a view that does not exist in any migration, and the transform reads ~25 fields no endpoint returns.
Work
Rename MockApplication → ATSApplication and move it to features/office/applications/types.ts.
Reconcile the field list with what the employer endpoint actually returns — drop or mark optional anything fictional.
Demote ats-mock-data.ts to a test/Storybook fixture that imports the domain type rather than defining it.
Also in scope
Drop the vestigial core.application_status ENUM. Declared in 001_schema.sql:33 with a vocabulary used nowhere (draft, submitted, under_review, interviewing, offer_extended, …). The column is TEXT with a CHECK constraint, so the type is dead and actively misleads anyone reading the schema for the canonical status list.
Acceptance
No production component imports from a path containing mock-data.
Activity