feat: game history + question lang/active management #13

Merged
ayoub merged 1 commit from feature/history into dev 2026-06-11 15:16:02 +00:00
Owner

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

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>
ayoub self-assigned this 2026-06-11 15:15:52 +00:00
ayoub added 1 commit 2026-06-11 15:15:52 +00:00
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>
ayoub merged commit 4225b7b43e into dev 2026-06-11 15:16:02 +00:00
ayoub deleted branch feature/history 2026-06-11 15:16:02 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: ayoub/nerdware#13
No description provided.