nerdware/apps/web/src
AyoubBenziza b3efa27287 feat: game history + question lang/active management
DB:
- quiz_question gains `lang` ('fr' default) and `active` (true default); migration 0002
- only active questions are served to games (pool filter)

History:
- engine writes a game_history row at game end (modes + ranked results), fire-and-forget
- public GET /api/history/:code lists a room's recent games
- lobby shows a "Parties précédentes" collapsible (date, modes, winner/scores)

Back-office:
- create form has a FR/EN language select; lang stored
- per-question active toggle (PATCH /questions/:id) — disable without deleting;
  inactive rows dimmed and labelled
- seeds set lang (opentdb=en, manual/pokemon=fr)

Verified e2e: migration applied; game played → /api/history returns it.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-11 17:12:07 +02:00
..
assets feat(web): dedicated transition for the image mode 2026-06-11 00:35:32 +02:00
components feat: game history + question lang/active management 2026-06-11 17:12:07 +02:00
lib feat: game history + question lang/active management 2026-06-11 17:12:07 +02:00
pages feat: game history + question lang/active management 2026-06-11 17:12:07 +02:00
store feat: category filter in lobby settings 2026-06-11 15:37:33 +02:00
types feat(blindtest): YouTube blindtest mode with neutral DJ + synced playback 2026-06-10 13:02:28 +02:00
App.tsx feat(admin): manual quiz back-office + rewrite README 2026-06-10 16:43:19 +02:00
main.tsx feat(admin): manual quiz back-office + rewrite README 2026-06-10 16:43:19 +02:00