feat: game history + question lang/active management #13
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feature/history"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
DB:
lang('fr' default) andactive(true default); migration 0002History:
Back-office:
inactive rows dimmed and labelled
Verified e2e: migration applied; game played → /api/history returns it.
Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com
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>