feat: implement patch 17#24
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis PR introduces public analytics displays for packs, topics, and questions; enables hosts to select topic subsets when starting games with minimum constraints; adds PDR/TDR/QDR metrics to admin dashboards with filtering and sorting; and updates game progress displays to reflect session-specific topic ordering rather than pack-wide ordering. Changes
Sequence DiagramsequenceDiagram
actor Host
participant StartGameCard as Frontend: StartGameCard
participant TopicQuery as Frontend: useQuery Topics
participant GameService as Backend: game.startGame
participant GameDB as Database: Game Record
Host->>StartGameCard: Click "Start Game"
activate StartGameCard
StartGameCard->>TopicQuery: Fetch topics for pack
activate TopicQuery
TopicQuery-->>StartGameCard: Return topic list
deactivate TopicQuery
Host->>StartGameCard: Select topic subset (≥5 topics)
StartGameCard->>GameService: startGame({topicPackOrders: [1,3,5,7,9...]})
activate GameService
GameService->>GameService: Validate orders exist in pack
GameService->>GameService: Enforce MIN_TOPICS_PER_GAME_SUBSET
GameService->>GameDB: Create game with includedTopicPackOrders
activate GameDB
GameDB-->>GameService: Game created, currentTopicOrder = first order
deactivate GameDB
GameService-->>StartGameCard: Return game with sessionTopicPackOrders
deactivate GameService
StartGameCard->>Host: Close picker, start live game
deactivate StartGameCard
Note over Host,GameDB: Game now progresses through<br/>selected topics in session order
Estimated Code Review Effort🎯 4 (Complex) | ⏱️ ~50 minutes Possibly Related PRs
Suggested Labels
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Review rate limit: 0/1 reviews remaining, refill in 60 minutes.Comment |
Summary by CodeRabbit
Release Notes