Legacy cleanup (access control verified — no prod user holds legacy keys):
- Delete /admin/products (+components/hooks/APIs with zero live callers),
/admin/analytics (+orphaned service), /admin/timecards redirect stub
- Factsheet print view is a LIVE feature, not legacy: re-homed to
/admin/erfassung/[id]/factsheet, "Factsheet drucken" restored on the
erfassung success screen (routes.ts erfassungFactsheet)
- sections.ts: drop 'analytics' + duplicate 'finances' (finanzen stays);
'timecards' + 'products' kept as live permission keys with repointed paths
- permissions.ts: remove migrateOldRole + dead aliases (finances→finanzen,
it-hilfe→it-hilfe-admin); design aliases kept and documented
- TIME_OFF_REVIEW notifications now deep-link /admin/team/approvals
CI Pipeline (red since ≥1.7. while deploys stayed green):
- 101b_reviews_table_baseline.sql: `reviews` was Drizzle-pushed, never
migrated — from-scratch replay died at 102. Baseline = exact prod DDL,
idempotent, trigger guarded; full 94-migration replay verified locally
- 108_notification_types_membership_content.sql: CHECK constraint gains
membership_payment_recorded + content_submission_status (drops orphaned
membership_approved)
- /admin/workshops/proposals: quick action, routes.ts, /admin/workshops/new
and proposal emails all deep-link an index that never existed → redirect
stub to /admin/workshops
- E2E accounts recreated on prod (lost in Neon cutover) + AUTH_TEST_*
secrets rotated; login lockout clears with this deploy's restart
Also: approvals hero singular fix ("1 Inhalt wartet").
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>