Phase 11: mark buzzer answers, +1 for a correct one

The host marks the answering team "Got it" or "Wrong" (G / W). Wrong
passes the turn to the next team in the buzz order; Got it closes the
buzzers until "Next question" (B). Undo reverses either mark.

In a direct game a correct answer adds 1 to the team's score in the
game's first criterion, as an ordinary admin score row, so it flows
through the scoring engine (multiplier, placement) and the existing
range/step trigger. The point is written before the mark, so a refused
point never leaves a "correct" with nothing behind it. Judged games
only get the mark: the judges' scores stand.

Needs supabase/migrations/0004_buzz_result.sql applied before deploying.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-05 09:55:50 +02:00
co-authored by Claude Opus 5.5
parent bbcf84bbc3
commit 186a112b95
19 changed files with 562 additions and 133 deletions
+8
View File
@@ -73,5 +73,13 @@ human a short "how to test this manually" checklist. Don't start the next phase
**Done when:** two phones on different teams buzz in a buzzer game; the control room and scoreboard
show who was first within a second, and "Clear buzzers" resets both phones.
## Phase 11 — Buzzer answers
- Apply `supabase/migrations/0004_buzz_result.sql`, then `npm run gen:types`.
- `checkMark` / `bumpScore` / `answeringTeamId` in `src/lib/buzzer.ts` (tested); `markBuzz` server action.
- Control room: "Got it" (`G`), "Wrong" (`W`), "Undo", "Next question" (`B`).
- Phone and scoreboard follow whose turn it is; "correct" and "wrong" sounds.
**Done when:** team A buzzes then team B; "Wrong" hands the turn to B; "Got it" gives B one point
in the scoring grid and on the scoreboard; "Undo" takes it back; "Next question" resets the phones.
## Stretch (only if asked)
Participants within teams · co-host admins · CSV export of results.