Repository navigation
Lobby New Room makes the typed room; lesson picker lists only lessons; Save/Open class work - #67
Merged
Merged
Conversation
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>
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.
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.
class-…) and goes in.How: a new
handleLobbyNewRoominsrc/App.tsxreuses 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
.jsonfile, room saves included, because Drive stores both asapplication/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.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; stilldrive.file.3. "Save .JSON" and "Import .JSON" become "Save class work" and "Open class work"
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.🤖 Generated with Claude Code