Files
evig/scripts
Mao NakamotoandClaude Opus 4.8 6bd1f9ae8f refactor(repairer): remove orphaned pro-repairer application/certification flow
The "professional repairer" application flow let users apply to become vetted
pro technicians pending admin approval — but the professional tier was never
assigned to any profile, so the whole pipeline (apply → review → approve/reject,
certification + document verification) produced only dead pending/rejected rows
with no downstream effect. Removed entirely.

Deleted (36 files): /api/repairer/apply, all /api/admin/repairer-applications
routes, /api/admin/documents + /api/admin/certifications routes, the
/admin/repairer-applications page, the 9-file review-UI component dir, the
repairer email templates, and the now-dead certification-status.ts +
document-status.ts config.

Shared-file edits:
- schema: dropped the `repairerApplications` (technician_applications) table
- TABLE_NAMES: removed REPAIRER_APPLICATIONS + the 4 cert/doc tables that the
  deleted routes queried (those 4 never had a migration — they never existed)
- dashboard: removed the repairer-application count + inline action
  (getDashboardStats / buildActionItems / types / InlineActionButton)
- actions.ts: removed approveRepairerApplicationAction
- config/permissions/nav: removed the `repairer-applications` section,
  permission alias, and breadcrumb
- IT-Hilfe admin: the empty-state CTAs (which pointed at the deleted review
  page) now point at the technician directory /it-hilfe/techniker; DE copy
  updated to reflect that technicians self-register
- email: removed the repairer + adminNewRepairerApplication templates/exports
- config/repairer-status: removed REPAIRER_APPLICATION_STATUS(+_LABELS)

Migration 116 drops technician_applications (CASCADE).

KEPT (the live community-technician / IT-Hilfe flow): repairer_profiles
(profile_tier='community'), technician_services/availability/reviews,
getActiveTechnicianProfileId, all /api/it-hilfe/* + /it-hilfe/* pages,
TechnicianProfileSchema, the dashboard totalTechnicians count.

Verified: 0 dangling references, 0 typecheck errors, lint clean, 131 test
suites / 3082 tests green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-09 18:06:15 +02:00
..
…