veza/apps/web/scripts
senke a66aeade45 chore(web): drop legacy openapi-generator-cli — orval is the single source (v1.0.8 B9)
Closes Phase 3 of the v1.0.8 OpenAPI typegen migration. With the four
feature-service migrations (B2 dashboard, B3 profile, B4 playlist,
B5 track, B6 partial auth) landed, the four remaining importers of
the legacy typescript-axios output were all consuming pure model
types — easily portable to the equivalent orval-generated models
under src/services/generated/model/.

Type imports re-pointed (4 sites):
- src/types/index.ts            — VezaBackendApiInternalModelsUser /
                                  Track / TrackStatus / Playlist
- src/types/api.ts              — same trio (Track / TrackStatus / User)
- src/features/auth/types/index.ts — TokenResponse +
                                  ResendVerificationRequest
- src/features/tracks/types/track.ts — Track / TrackStatus

Same shapes, sourced from openapi.yaml — orval and the legacy
generator were emitting structurally-identical interfaces because
swaggo's spec is the common source. Verified by `npm run typecheck`
clean and 1187/1188 tests green (1 skipped is the long-standing
ResetPasswordPage flake).

Cleanup performed:
1. `git rm -rf apps/web/src/types/generated/` — 198 files / ~23k LOC
   of auto-generated typescript-axios output gone.
2. `npm uninstall @openapitools/openapi-generator-cli` — drops the
   ~150 MB Java-bundled dependency tree from node_modules.
3. `apps/web/scripts/generate-types.sh` — collapsed from a two-step
   "[1/2] legacy / [2/2] orval" pipeline to a single orval call.
4. `apps/web/scripts/check-types-sync.sh` — now diffs only
   `src/services/generated/`. The "regenerate two trees" complexity
   is gone.
5. `.husky/pre-commit` — message updated to point at the new tree.

Knock-on: the pre-commit hook should run noticeably faster (no Java
JVM spin-up to invoke openapi-generator-cli on every commit), and a
fresh `npm install` is leaner.

Not yet removed (still active under hand-written services):
- services/api/{auth,users,tracks,playlists,queue,search,social}.ts
  — these wrap features/<feature>/api/* services and remain in use
  by 2-15 callers each. They live in the orval-driven world (their
  underlying calls go through orval mutator) and don't import the
  legacy types, so they're safe parallel surfaces. Consolidation
  punted to v1.0.9 once all auth/queue endpoints are annotated and
  the remaining authService 5/9 functions ship.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-26 00:02:58 +02:00
..
analyze-errors.js chore(dx): add .cursorrules and design system audit documentation 2026-02-05 14:20:06 +01:00
audit-storybook.js chore(v0.102): consolidate remaining changes — docs, frontend, backend 2026-02-20 13:02:12 +01:00
capture-visual-baseline.mjs ui(storybook): add allowedHosts config and update DESIGN_TOKENS docs 2026-02-08 22:49:24 +01:00
check-bundle-size.mjs stabilisation commit: while implementing v0.10.5 2026-03-09 19:36:33 +01:00
check-types-sync.sh chore(web): drop legacy openapi-generator-cli — orval is the single source (v1.0.8 B9) 2026-04-26 00:02:58 +02:00
check_backend.sh fix(MVP-006): Standardize environment variable names (VITE_API_BASE_URL → VITE_API_URL) 2025-12-22 22:56:37 +01:00
codemod-typography-arbitrary.mjs docs: add UI/UX audit reports and design system documentation 2026-02-08 22:49:40 +01:00
compare-visual.mjs feat(web): UI premium Discord/Spotify-like — tokens, shadows, focus, layout 2026-02-08 17:15:58 +01:00
debug-story.js chore(dx): add .cursorrules and design system audit documentation 2026-02-05 14:20:06 +01:00
fix-failing-tests.sh chore: resolve property mismatches and type conflicts for snake_case alignment 2026-01-07 11:15:48 +01:00
fix-ui-imports.sh chore: resolve property mismatches and type conflicts for snake_case alignment 2026-01-07 11:15:48 +01:00
fix-unused-vars.sh chore: resolve property mismatches and type conflicts for snake_case alignment 2026-01-07 11:15:48 +01:00
generate-types.sh chore(web): drop legacy openapi-generator-cli — orval is the single source (v1.0.8 B9) 2026-04-26 00:02:58 +02:00
generate-visual-report.mjs feat(web): UI premium Discord/Spotify-like — tokens, shadows, focus, layout 2026-02-08 17:15:58 +01:00
replace-console-logs.sh [LOGGING] Fix #10: Erreurs silencieuses - Ajout de logs avec contexte pour toutes les erreurs dans core/auth et core/track 2026-01-04 01:44:15 +01:00
report-arbitrary-values.mjs feat(web): UI premium Discord/Spotify-like — tokens, shadows, focus, layout 2026-02-08 17:15:58 +01:00
serve-storybook-static.cjs test(storybook): Playwright suite for full Storybook + Spotify/Discord polish 2026-02-07 20:30:49 +01:00
start-backend-and-dev.sh chore: playwright workflow, docs, rapports audit, visual-tests, tmt unit 2026-02-11 22:19:34 +01:00
start_lab.sh fix(MVP-006): Standardize environment variable names (VITE_API_BASE_URL → VITE_API_URL) 2025-12-22 22:56:37 +01:00
storybook-coverage.sh stabilisation: fix commit 2026-02-03 09:56:11 +01:00
validate-storybook.cjs feat(web): add validate:storybook script (build, serve 6007, audit) 2026-02-14 14:02:57 +01:00
visual-diff.js feat(e2e): Playwright + pixelmatch stack for pixel-perfect visual regression 2026-02-07 20:01:30 +01:00
wrap_msw_handlers.py chore(dx): add .cursorrules and design system audit documentation 2026-02-05 14:20:06 +01:00