Skip to content

Lobby New Room makes the typed room; lesson picker lists only lessons; Save/Open class work - #67

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

BPMData merged 2 commits into
mainfrom
claude/project-thread-380vka

Conversation

@BPMData

@BPMData BPMData commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Three small fixes for things that were confusing to use.

1. Lobby "New Room"

Before: on the welcome screen, typing a room code and pressing New Room just emptied the Room Code box. It read as "create the room I typed" but did nothing of the kind.

After: New Room makes the room typed in the box and goes straight in.

  • Empty box: it makes a random unused room (class-…) and goes in.
  • Code already in use: the existing "Room Already Exists" choice (Join Anyway / Create Fresh Room / Cancel) comes up instead of a silent join.
  • No name typed yet: it says "Type your name first, then press New Room." and stays put.
  • Random: still just fills the box with a random unused code. Its tooltip now says so.

How: a new handleLobbyNewRoom in src/App.tsx reuses the lobby join path (checkRoomAvailability, performLobbyJoin, generateUnusedRoomCode), so the PIN check and teacher setup work the same as Join Classroom.

2. Lesson picker lists only lessons

Before: Load lesson → Open from Drive showed every .json file, room saves included, because Drive stores both as application/json.

After: lessons saved to Drive get their own type, application/vnd.allaboard.lesson+json. The picker's first tab, now called My lessons, lists only that type.

  • Older lessons: ones saved as plain JSON still appear under Browse Drive. Saving one to Drive again retags it.
  • Wrong file picked: a room save opened there still gets a clear error.

Why not filter by name: the Picker can only filter by type. A name search for "allaboard" would also match room saves, which are named allaboard-room-*.json. No new OAuth scope; still drive.file.

3. "Save .JSON" and "Import .JSON" become "Save class work" and "Open class work"

  • Tooltips: both say the file keeps every student's board, the worksheets and the chat log.
  • Restore dialog: its title is now "Open Class Work (.json)".
  • Other wording: the lesson loader's "Save class work first" link and the wrong-file error ("Use Open class work instead") use the new names.

Tests

  • e2e/classroom.spec.ts: the lobby New Room cases.
  • e2e/googleDrive.spec.ts: a lesson saved to Drive uses the lesson type, and the picker's tabs and filters are right.
  • Existing tests and e2e were updated for the new labels.
  • Lint, the 300 unit tests and the server import check pass locally.

🤖 Generated with Claude Code

The lobby's New Room button only cleared the Room Code box, which read as
"create the room I typed". It now makes the room typed in the box (or a
random unused one when the box is empty) and joins it. If that code is
already in use, the existing "Room Already Exists" choice comes up instead
of a silent join. With no name typed it says so and stays put.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… work

- Lessons saved to Drive get their own type (application/vnd.allaboard.lesson+json),
  so the lesson picker's first tab lists only lessons, never room saves. The Picker
  filters by type, not file name, and room saves are named allaboard-room-*.json, so a
  name search would still show them. Browse Drive also lists application/json, so
  lessons saved before this still open; re-saving one retags it.
- "Save .JSON" is now "Save class work" and "Import .JSON" is "Open class work",
  with tooltips that say they keep every student's board and the chat log. The
  restore dialog, the lesson-loader warning and the error for a wrong file follow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@BPMData BPMData changed the title Lobby: New Room makes the typed room and goes in Lobby New Room makes the typed room; lesson picker lists only lessons; Save/Open class work Nov 24, 2026
@BPMData
BPMData merged commit c52bd45 into main Nov 24, 2026
2 checks passed
@BPMData
BPMData deleted the claude/project-thread-380vka branch November 24, 2026 16:46
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