Skip to content

Worksheet variants A–D on prepared rounds; Send worksheet remembers what was sent - #65

Merged
BPMData merged 1 commit into
mainfrom
claude/project-thread-380vka
Nov 24, 2026
Merged

BPMData merged 1 commit into
mainfrom
claude/project-thread-380vka

Conversation

@BPMData

@BPMData BPMData commented Nov 24, 2026

Copy link
Copy Markdown
Owner

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 roundVariants record per round (src/lib/roundVariants.ts). Worksheet A stays the round's own roundTemplates entry, 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 in provisionIndividualBoard, 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 through teacher:upload-asset first, so payloads stay small. Group rounds have no variants yet.

Tests:

  • tests/roundVariants.test.ts covers the pure module.
  • tests/roundVariantsServer.test.ts covers launch, corner mode, late joiners, picks, restart, room save and the lesson pack round trip.
  • New Playwright flows in e2e/preparedRounds.spec.ts and e2e/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

…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>
@BPMData
BPMData merged commit e3bf33c into main Nov 24, 2026
2 checks passed
@BPMData
BPMData deleted the claude/project-thread-380vka branch November 24, 2026 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants