Repository navigation
Closed
Labels
2026-10Issues created in 2026-10good first issueGood for newcomersproject: learnIssues for the learn/ folder
Description
Overview
This proposal improves the virtual classroom seating experience in public/classroom_poc.html.
Currently, users can sit at a desk but cannot easily move to another desk while seated. This change adds arrow-key navigation between adjacent available desks, fixes movement state after standing up, improves row spacing, and removes intrusive toast notifications.
Proposed improvements
- Allow seated users to move between adjacent available desks using
↑,↓,←, and→. - Prevent movement keys from becoming stuck after a user stands up by resetting
keysPressed. - Increase vertical spacing between desk rows so username labels do not overlap desks or chairs above them.
- Remove toast notifications for a cleaner classroom UI.
- Prevent arrow keys from scrolling the page or interfering with chat input while navigating seats.
Expected behavior
When seated:
- Pressing an arrow key attempts to move the user to the adjacent desk in that direction.
- Movement is blocked if the target seat is occupied or out of bounds.
- The client sends an
update_seatevent for valid seat changes. - Pressing
Ewhile seated lets the user stand up. - After standing up, normal character movement works immediately.
Implementation notes
Changes are limited to public/classroom_poc.html:
- Add an arrow-key handler when
isSeated === true. - Calculate the target desk row/column and validate it before sending
update_seat. - Show a non-intrusive message when the target seat is already taken.
- Reset
keysPressed = {}onleave_seatandseat_left. - Update
renderDesks()spacing usingstartTop = 20androwStep = 28. - Replace
showToastwith a no-op and remove the toast container. - Call
preventDefault()for arrow keys andEwhen the user is not typing in an input field.
Testing steps
- Open
/classroom_poc?autojoin=1&room=lobbywhile signed in. - Walk to an available desk and press
Eto sit. - Press
↑,↓,←, and→to move between adjacent available desks. - Try moving into an occupied seat and confirm the move is blocked.
- Press
Eto stand up. - Confirm that walking movement works immediately after standing.
- Confirm username labels no longer overlap desks in the row above.
- Confirm arrow keys do not scroll the page while seat navigation is active.
Screen recording
Video.Project.7.1.mp4
- Sitting at a desk with
E - Moving between available desks with arrow keys
- Attempting to move into an occupied seat
- Standing up and immediately walking again
- Improved spacing between desk rows
Acceptance criteria
- Seated users can navigate to adjacent available desks with arrow keys.
- Occupied and out-of-bounds seats cannot be selected.
-
keysPressedresets after standing up. - Arrow keys do not scroll the page or interfere with chat input.
- Desk-row spacing prevents username-label overlap.
- Toast notifications no longer appear.
Metadata
Metadata
Assignees
Labels
2026-10Issues created in 2026-10good first issueGood for newcomersproject: learnIssues for the learn/ folder
Activity
[-]feat(classroom): add seated arrow-key desk navigation and improve seating user experience[/-][+][Feature] Add seated arrow-key desk navigation and improve seating user experience[/+]