Phase 13: questions, sounds and videos on the scoreboard

A game can now carry a list of items the host puts on the scoreboard one at
a time: a question (shown above the standings, with an optional picture and
an answer to reveal), a sound (played through the scoreboard's speakers) or
a video such as a karaoke track (takes over the screen).

- Media is a YouTube link, an https link to a file, or an upload to the
  private game-media bucket. The scoreboard API signs a URL only for the
  item that is on screen.
- What is on screen is state on the event, like the timer, so the ping
  still carries no data. An unrevealed answer and a sound's or video's name
  never reach the scoreboard payload.
- Control room: click an item to show it, or "Random" to have one picked
  (prefers items not played yet). Show/hide answer, pause, take off screen;
  shortcuts Q / A / X.
- Duplicating a game or event copies its items and files; deleting removes
  the files.

Needs supabase/migrations/0006_screen_items.sql applied before deploying.
database.types.ts was edited by hand to match; re-run gen:types after.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-05 10:54:08 +02:00
co-authored by Claude Opus 5.5
parent c27a3890f8
commit 825eb14f2e
30 changed files with 1967 additions and 60 deletions
+22
View File
@@ -102,6 +102,28 @@ On the scoreboard the buzzer is a banner in the answering team's colour above th
In the control room the answering team's row is highlighted (Floodlight) and carries the two
buttons "Got it +1" and "Wrong"; marked rows show ✓ / ✗ and an "Undo".
### On screen: questions, sounds, videos
```
┌──────────────────────────────────────────────────────────────┐
│ Worship Game Night Game 5 of 8: Bible quiz │
│ ┌──────────────────────────────────────────────────────────┐ │
│ │ Who built the ark? │ │
│ │ ▓ Noah ▓ │ │
│ └──────────────────────────────────────────────────────────┘ │
│ 1 ████ Lions 142 │
│ 2 ████ Eagles 128 │
└──────────────────────────────────────────────────────────────┘
```
- Question: a bordered panel above the standings, text in Big Shoulders, sized down as it gets
longer; an optional picture above the text. The revealed answer is a Floodlight block that
pops in. The standings rows shrink to make room.
- Sound: a slim panel "♪ Listen…" ("Paused" while paused), with the answer under it once revealed.
- Video: fills the screen. The header and standings make way and the page padding shrinks; the
timer, the buzzer banner and the footer stay.
- While the browser still blocks sound, a Floodlight note says "Sound is off — click “Turn sound on”".
- Control room: a list like the buzzer panel — the item on screen is highlighted (Floodlight),
shown items carry a ✓, answers are visible to the host in small text.
## Copy
Plain verbs: "Next game", "Hide scores", "Freeze scores", "Show scores", "Add bonus", "Copy judge link".
Errors say what happened + what to do: "This link has been turned off. Ask the host for a new one."