Skip to content

feat(event-web): the map shows hint hunt hints and results (FRO-190) - #377

Merged
hycursion merged 1 commit into
mainfrom
adam/fro-190-stretch-the-screens-offer-the-hint-hunt-show
Nov 16, 2026
Merged

hycursion merged 1 commit into
mainfrom
adam/fro-190-stretch-the-screens-offer-the-hint-hunt-show

Conversation

@hycursion

Copy link
Copy Markdown
Collaborator

Closes FRO-190.

Summary

The screens' side of the hint hunt (BAC-203). Organisers can pick it on the station board, the map shows each round to the players at the booth, and the answers step tells participants their answers may become hints.

 <MapScreen>
+  <MapHintHunt>                    # one band per enabled hint hunt station, above the grid
+    useMapHintHunt()               # GET /api/v1/map/hint-hunt (9.22) every second, only while such a station exists
+    <MapHintHuntCard>              # state + tries | hints, oldest first | countdown by the heading
   <grid>
     <MapConnections>
     relay card, <MapPlan>, station list   # the plan keeps at least 12rem while a band shows

The card's states, all from section 13's new bullets:

no round, or 60 s after it ended   "Tap the station to start a round."
tapping in                         "{players} in", "{s}s left to tap in"
running                            each hint's question and choice, "{n} tries left" / "1 try left",
                                   "Next hint in {s}s" or "Last hint. {s}s left to find them."
ended                              one sentence per ended_how, hints kept under it

Other changes:

  • GAMES has hint_hunt, and the mock event has a station running it. The live board already lists 9.2's games.
  • The setup step's answers card says the notice under "Answer all {total} to get your match when you connect."
  • The mock round alternates a win and a lost_time loss, so the demo shows both endings.
  • docs/screens.md, docs/directory-layout.md and the changelog cover the new card.

Agreement additions for the next version

BAC-203 wrote 9.22 but no screen wording, so this branch drafts it in section 13. Please check this list rather than raising it again:

  • Section 13's table: the map row adds GET /api/v1/map/hint-hunt, every second while a station runs the hint hunt.
  • Section 13's bullets: the setup step's notice, "Your answers may be used as hints in the hint hunt, a station game, but only if you tap in to play it."
  • Section 13's bullets: the map's Hint hunt card, with its sentences for no round, tapping in, a running round and each ended_how, and that it never names the target, their group or their avatar.

Evidence

  • Before: the map had no hint hunt, and the station board's mock had no Hint hunt game.
    After: mock screenshots at 1920 by 1080, 1280 by 800 and 360 wide, light and dark, for running, last hint, found, not found and tapping in, plus the station board's game list and the answers step. All checked by eye. A Sol 6.1 and a Fable 5.2 UI review found that the first version's card clipped hints and squeezed out the relay and the booth plan. The card is now a band above the map, and the result line and player count are larger. A standards and spec review ran after that, and its fixes are in.
  • New tests, all passing:
    • the schema accepts 9.22's example and drops any identity field
    • the map shows a round running, won, lost on tries, lost on time, too few players and no target, each with section 13's sentence and no target's name
    • countdowns tick each second outside the live region and stop at 0, with "1 try left" for one try
    • a result shows for 60 s, then the card goes back to idle
    • no poll and no card when no enabled station runs the hint hunt, including a disabled one
    • rate_limited keeps the last round, and other failures hide the card
    • an organiser switches a station to Hint hunt and back, with "Game saved."
    • the notice shows under the answer-all sentence before a participant answers
  • pnpm typecheck, pnpm lint and the full Event suite pass: 1310 tests in 124 files. The updates site builds.

Merge Danger

Door: two-way

Nothing is stored. A revert removes the card, the game in the mock and the notice.

Blast Radius: map

The map's layout changes only while an enabled station runs the hint hunt; otherwise it is the FRO-147 map. The station board and the answers step each gain one line.

For reviewers

  • Checked on the mock only. No real station round ran against this build; HAR-55 does that.
  • At 1280 by 800 with a round showing, the page scrolls a little. At 1920 by 1080 it fits.
  • The countdowns and the 60 s result use the map machine's clock, so its time should be right.
  • The new poll hook copies the relay's rather than sharing one.

🤖 Generated with Claude Code

…n the map (FRO-190)

The station board lists Hint hunt as a game, and the mock event has a station
running it. The map polls GET /api/v1/map/hint-hunt (9.22) every second while
an enabled station runs the hint hunt, and shows each station's round as a
band across the top of the map: tapping in, each hint's question and choice,
the tries left, a countdown, and the result for 60 seconds, never the target.
The band sits above the grid so four hints fit without pushing the relay or
the booth plan out of view, and the plan keeps at least 12rem. The answers
step says answers may be used as hints, only for someone who taps in.

BAC-203 gave no screen wording, so section 13 gets draft bullets for the
notice and every map state, and the map row adds the hint hunt poll, both
for the next version after 0.14.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@hycursion
hycursion merged commit d21c21d into main Nov 16, 2026
8 checks passed
@hycursion
hycursion deleted the adam/fro-190-stretch-the-screens-offer-the-hint-hunt-show branch November 16, 2026 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant