Single-word rule indicators + auto-match select redesign #47

Merged
developer merged 2 commits from feature/rule-indicators-newgame into development 2026-06-12 08:45:00 +00:00
Owner

Follow-up to the "multiple words per turn" rule (PR #46): show the rule in the UI and refine the random-opponent New Game screen.

Indicators (single-word games only):

  • In game: a small 1️⃣ in the status bar's score-preview slot (it yields to the live word/score preview while tiles are pending), and a centred "One word per turn" label in the history-drawer header.
  • Invitation card: a "One word per turn" line.
  • Standard games (English, or Russian with the rule on) show no indicator.

Auto-match (random opponent) redesign: the variant plaques are now mutually-exclusive selects — a tap highlights one (accent inset border) instead of immediately enqueuing; a lone offered variant is pre-selected; a bottom Start game button (disabled until a variant is chosen) confirms. The rule toggle appears once a Russian variant is selected.

Wire: multiple_words_per_turn threaded into the GameView and Invitation FlatBuffers tables (Go + TS regenerated), through pkg/wire and both the backend push-event and gateway REST paths. No DB/migration change (the column already exists from #46), so the contour needs no wipe.

Tests: UI check/unit/build green; e2e (Chromium + WebKit) for the new auto flow and the in-game indicator (mock g3 is a single-word game); backend/gateway unit + integration green. Docs: UI_DESIGN.md.

Follow-up to the "multiple words per turn" rule (PR #46): show the rule in the UI and refine the random-opponent New Game screen. **Indicators (single-word games only):** - In game: a small **1️⃣** in the status bar's score-preview slot (it yields to the live word/score preview while tiles are pending), and a centred **"One word per turn"** label in the history-drawer header. - Invitation card: a **"One word per turn"** line. - Standard games (English, or Russian with the rule on) show no indicator. **Auto-match (random opponent) redesign:** the variant plaques are now **mutually-exclusive selects** — a tap highlights one (accent inset border) instead of immediately enqueuing; a lone offered variant is pre-selected; a bottom **Start game** button (disabled until a variant is chosen) confirms. The rule toggle appears once a Russian variant is selected. **Wire:** `multiple_words_per_turn` threaded into the `GameView` and `Invitation` FlatBuffers tables (Go + TS regenerated), through `pkg/wire` and both the backend push-event and gateway REST paths. **No DB/migration change** (the column already exists from #46), so the contour needs no wipe. **Tests:** UI check/unit/build green; e2e (Chromium + WebKit) for the new auto flow and the in-game indicator (mock g3 is a single-word game); backend/gateway unit + integration green. Docs: `UI_DESIGN.md`.
developer added 1 commit 2026-06-12 08:28:44 +00:00
feat(ui): single-word rule indicators + auto-match select redesign
CI / changes (pull_request) Successful in 1s
CI / unit (pull_request) Successful in 9s
CI / integration (pull_request) Successful in 13s
CI / ui (pull_request) Successful in 46s
CI / gate (pull_request) Successful in 0s
CI / deploy (pull_request) Successful in 1m9s
0b57400c6f
Surface the per-game "single word" rule to the client and refine the
random-opponent New Game screen.

- Wire: thread multiple_words_per_turn into the GameView and Invitation
  FlatBuffers tables (Go + TS regenerated), through pkg/wire builders and both
  the backend push-event and gateway REST paths.
- In-game indicators (single-word games only): a small 1 in the status bar's
  score-preview slot (yields to the live preview) and a centred "One word per
  turn" label in the history-drawer header. Standard games show neither.
- Invitation card gains a "One word per turn" line for single-word invitations.
- Auto-match redesign: variant plaques are mutually-exclusive selects (highlight
  on tap, no longer enqueue); a lone offered variant is pre-selected; a bottom
  "Start game" button (disabled until a variant is chosen) confirms. The rule
  toggle appears once a Russian variant is selected.
- Tests: e2e for the new auto flow and the in-game indicator (mock g3 is a
  single-word game); mock/data + fixtures carry the new field. Docs: UI_DESIGN.
developer added 1 commit 2026-06-12 08:36:15 +00:00
test(ui): cover the invitation-card single-word indicator
CI / changes (pull_request) Successful in 1s
CI / unit (pull_request) Successful in 8s
CI / integration (pull_request) Successful in 14s
CI / ui (pull_request) Successful in 46s
CI / gate (pull_request) Successful in 0s
CI / deploy (pull_request) Successful in 58s
f73f76220d
Make the mock invitation a Russian single-word game so the card's
"One word per turn" line renders, and assert it in the lobby e2e.
owner approved these changes 2026-06-12 08:44:33 +00:00
developer merged commit f1e77b5826 into development 2026-06-12 08:45:00 +00:00
developer deleted branch feature/rule-indicators-newgame 2026-06-12 08:45:00 +00:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: developer/scrabble-game#47