Draft
Conversation
Add readBonuses setting to BonusRoom that reads bonus leadin and parts word by word (like tossup reading). After each part is fully read, a dead time timer starts followed by the answer period. Includes: - Reading speed slider and toggle UI in bonus settings - Pause button for bonus reading - Client-side word-by-word display with proper targeting - Settings persistence via localStorage Co-authored-by: geoffrey-wu <42471355+geoffrey-wu@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add option for bonuses to be read out like toss-ups
Add word-by-word reading option for bonuses
Mar 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In actual quizbowl matches, bonuses are read aloud word by word. This adds a toggle to read bonus leadins and parts one word at a time, with a dead time timer after each part completes before the answer period begins — matching the tossup reading UX.
Changes
quizbowl/BonusRoom.js—readBonus()method mirroringreadTossup()from TossupRoom.js. Reads leadin then each part word-by-word, auto-starts answer period after each part finishes. AddedpauseBonus(),setReadingSpeed(),toggleReadBonuses(). State variables prefixed withbonusto avoid collision with tossup state inTossupBonusRoom.client/play/BonusClient.js—updateQuestion()handler targeting either#leadinor#bonus-part-{N}based ontargetfield. Smart fallthrough: only handlesupdate-questionwhendata.targetis set, so tossup word updates pass through toTossupClientMixinin combined rooms.client/play/bonuses/index.html— "Read bonuses word by word" toggle, reading speed slider (hidden when off), Pause button.client/play/bonuses/index.jsx— Event wiring,pkeyboard shortcut for pause, localStorage persistence for new settings.client/play/bonuses/SoloBonusClient.js— Settings persistence overrides.UI
Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.