Commit Graph

101 Commits

Author SHA1 Message Date
998ac07867 add shared tab components: GameTab, BingoTab, BoardTab, HostTab, BingoClaims
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-13 11:50:57 +01:00
971f4110c1 add RoomLayout, BottomNav components; update BingoCard (readonly + redraw), Leaderboard (lobbyMode)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-13 11:48:09 +01:00
f3d407ee21 update tap_bingo_square for completion flow, add request_new_bingo_card handler, generate cards on join
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-13 11:46:21 +01:00
9e88e99827 remove unused originalTropes variable in bingo test
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 11:44:38 +01:00
af0499d354 add bingo completion tests: tap-only, detection, scoring, redraw, announcements
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-13 11:44:20 +01:00
0784b4b077 fix TS errors: remove unused announcedBingo set, prefix unused playerId param
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 11:42:52 +01:00
dda8c4a2ef add bingo completion logic: tap-only, card storage, scoring across cards, redraw
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-13 11:25:30 +01:00
25f61d456c add completedBingoCard schema, request_new_bingo_card WS message 2026-03-13 11:23:10 +01:00
b095ce0d69 fix plan review issues: WebSocket sharing, test signatures, host-tab leaderboard, bingo flow
- add Task 10: store WebSocket send in Zustand, child routes use store
- fix all tapBingoSquare test calls to 2-arg signature (no displayName)
- fix requestNewBingoCard test calls to include displayName
- remove duplicate Leaderboard from host-tab.tsx
- fix bingo completion tests: cards move on redraw, not on detection
- fix addBingoAnnouncement to track announcements via count comparison
- remove use-websocket.ts and room-store.ts from Unchanged Files
- renumber tasks 10-13

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 10:56:23 +01:00
f9e493cd9d fix second spec review: tap-only bingo, announcement schema, broadcast pattern
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 08:51:23 +01:00
cdf878fe9b fix spec review issues: bingo scoring, data model, edge cases
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 08:49:43 +01:00
142455cdb8 add menu rework design spec
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 08:47:12 +01:00
d3a5d08d6b add quiz components to leaderboard, route views
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 07:21:21 +01:00
43268d8d86 add QuizBuzzer, QuizHost, QuizDisplay components
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-13 07:18:18 +01:00
d11c7780e9 fix quiz questions type assertion for JSON import 2026-03-13 07:17:15 +01:00
634b953911 add quiz logic to GameManager, WS handler, quiz tests
- implement startQuizQuestion, buzz, judgeQuizAnswer, skipQuizQuestion
- add per-view quiz state builders (player, display, host)
- include quizPoints in leaderboard
- dispatch start_quiz_question, skip_quiz_question, buzz, judge_quiz_answer in WS handler
- override quiz question with full host view (text + answer) for host connections

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-13 07:16:34 +01:00
4ada13ca9f add quiz schemas to shared types: QuizQuestion, GameState fields, WS messages
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-13 06:48:21 +01:00
8caf9ab2f3 add quiz questions data file (20 Eurovision questions)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-13 06:48:18 +01:00
48986137db show actual results summary on display in scoring/ended
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 22:18:57 +01:00
6cc164dfe5 show scored predictions in player route during scoring/ended
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 22:18:28 +01:00
ec7e6fd869 wire ActualResultsForm and prediction results in host route
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 22:18:15 +01:00
01f78e920e add prediction points to leaderboard display and explanation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 22:17:54 +01:00
3b470787b5 show correct/incorrect markers on locked predictions when results are in
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 22:17:20 +01:00
ef0f88551d add ActualResultsForm component
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 22:16:58 +01:00
f390c21903 add submit_actual_results WS handler with validation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 22:14:43 +01:00
c7a11e80d3 add prediction scoring to GameManager with tests
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 22:14:28 +01:00
44ea815f95 add submit_actual_results WS message type
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 22:12:52 +01:00
00e17d1f28 add actual results schema, prediction points to leaderboard and game state
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 22:12:41 +01:00
8372769c9b add prediction scoring implementation plan
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 21:45:17 +01:00
f0dc35610e add prediction scoring design spec
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 21:40:25 +01:00
4e06930796 remove Dish of the Nation from design spec, scoring config
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 21:37:26 +01:00
38a0c9f55a fix host UX: revert act, inline open/close voting, larger bingo text, scoring explanation, simplify player list
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 21:22:35 +01:00
4cfff0eaa5 switch deploy from drizzle-kit migrate to push --force
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 21:12:00 +01:00
f22dba6134 add jury rounds, jury votes, bingo cards DB tables
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 21:02:02 +01:00
60a5962519 integrate jury display, bingo announcements, leaderboard in display route
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 21:02:01 +01:00
a71308f6f0 integrate jury controls, bingo, leaderboard in host route
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 21:02:00 +01:00
611a1bf732 integrate jury voting, bingo tabs in player route
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 21:01:55 +01:00
c768d7340a add leaderboard component
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 20:50:33 +01:00
f6223ae9fa add bingo display component
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 20:50:33 +01:00
7f5dba6e03 add bingo card player component
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 20:50:31 +01:00
8ee9295b4e add jury display component
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 20:28:35 +01:00
094fd1feeb add jury host controls component
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 20:28:34 +01:00
d247c2519e add jury voting player component
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 20:28:33 +01:00
302f2e14c0 handle new jury, bingo WS message types in client
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 20:28:25 +01:00
ceba5521dc add jury voting, bingo WS message handlers
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 19:51:32 +01:00
7cb52291f3 add getPlayerDisplayNames to RoomManager
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 19:50:51 +01:00
aedd3c032a extend GameManager game state with jury, bingo, leaderboard
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 19:50:43 +01:00
b79ddb9679 add bingo logic to GameManager with tests
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 19:50:07 +01:00
0703364945 add jury voting logic to GameManager with tests
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 19:49:17 +01:00
e48ee2ca35 add jury voting, bingo WS message types
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 19:45:35 +01:00