Repository navigation
Worksheet variants A–D on prepared rounds; Send worksheet remembers what was sent - #65
Merged
Merged
Conversation
…rs what was sent - Prepared-round form (individual rounds): add worksheets B-D, pick who gets which (everyone A / deal out alphabetically / by name-stamp corner on Main) and the late-joiner rule. The server deals them out at launch and to late joiners. - Stored per round as teacher-only roundVariants: survives restarts, room saves and lesson packs (student picks only when the teacher opts in). - Send worksheet... reopens with the round's files, rule and picks, keeps each board's letter until the rule changes, and sends only boards that change. - New teacher:set-round-variants event; tests for the pure module, the server paths and two browser flows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Before: different worksheets (A–D) could only be sent from Live Grid → Send worksheet… after a round was live and every student already had a board. Late joiners always got A, and reopening Send worksheet… started empty, so changing one student's card meant uploading every file again.
After: a prepared individual round can hold worksheets B–D plus the rule for who gets which: everyone A, dealt out in turn (alphabetical by student), or by where each student stamped their name on Main. Launch hands them out, and late joiners get theirs by the same rule (or A, if the teacher picks that). Send worksheet… reopens with the round's files, rule and picks. Each board keeps its letter until the rule changes, and only boards whose worksheet actually changes are sent.
How: a new teacher-only
roundVariantsrecord per round (src/lib/roundVariants.ts). Worksheet A stays the round's ownroundTemplatesentry, and the record holds B–D, the rule, the corner map, the late-joiner rule, picks by student name and who got which. The server uses it inprovisionIndividualBoard, keeps it in room saves and restarts, and puts it in lesson packs. Student-name picks go into a pack only when the teacher ticks a box, and who-got-which never does. A new ack event,teacher:set-round-variants, saves what Send worksheet… sent. Images are uploaded one at a time throughteacher:upload-assetfirst, so payloads stay small. Group rounds have no variants yet.Tests:
tests/roundVariants.test.tscovers the pure module.tests/roundVariantsServer.test.tscovers launch, corner mode, late joiners, picks, restart, room save and the lesson pack round trip.e2e/preparedRounds.spec.tsande2e/sendWorksheet.spec.ts. The e2e tests couldn't run in my environment because no browser was available, so CI is their first run.Closes the TODO.md items "A prepared breakout round", "Set up worksheet variants (A–D) before class, on a prepared round" and "Make a sent distribution editable".
Generated by Claude Code