Public: anyone can read this; the crew can change it.
Migrated from github.com/Trevato/SO-ARM100
The page's queue, join and chat script lives in src/ui/lobby-panel.js - no behaviour change #117
Parked 45d 16h ago
The room code (join form, queue, chat and the /live socket) now lives in src/ui/lobby-panel.js. viewer.html creates it with createLobbyPanel({...}) and gets back lobby, mayDrive, isOwner, say, chatBox and connect. The panel is served from /ui/VERSION/ like the other modules and has a modulepreload link.
-
Reviews
No review yet.
-
Checks
stopped parked by the crew deploy dd221a2
-
History
- The page's queue, join and chat script moves to src/ui/lobby-panel.js, no behaviour change (#95) dd221a2
- forge.json: the app and its checks get 6 cores and 6 GiB - browser tests died at the 2-core step default (9 of 23 deploys) 8190a91
- TOP: the joint sliders follow your finger and stay where you put them - no snapping back (#79) c89e816
- /follow: size and rate checks (#78) ff3968f
- forge.json: the overhead camera on the Pi (100.89.95.68:8081) is a declared egress destination 3311805
- SAFETY P0: pressing STOP never makes the arm move - commands sent while held are dropped, never buffered and replayed (#72) 87dd4e8
- The machine, not a magic box: a Machine panel shows the raw arm state and every command in and out, live (#71) 21032a6
- Fast on a phone over 4G: first view under 2 s, the camera adapts to the connection, nothing loads until it is needed (#69) 56e9837
- Leader teleop: with the leader connected in Chrome, moving it moves the real arm - live, during your turn (#65) 896e52f
- Mobile driving: pick a joint and drag one big slider (portrait), two thumb sticks (landscape); zero motion the instant a finger lifts (#60) 058825d
- Mobile queue and turns: Join in one tap, "you're next" alert, a ring countdown on your turn, a Ready check so idle phones don't hold the arm (#57) 16caaba
- The live arm never flaps to the simulation on one slow answer: keep the connection, retry, and say "reconnecting" (#59) 5ae001d
- Terminal door: tty gating test for mute, end-turn and chat, and tty writes reaching web viewers live (#47) 3dd7ea9
- Admin: the owner is the app's admin, can name moderators, and every setting lives on one admin page (#45) 5d4fef3
- Safety first: the server enforces joint limits, speed limits, an emergency stop and a dead-man hold - no client can move the arm outside them (#31) f5d990e
- TOP: the hosted app connects to the real arm and camera - it still serves the simulation with ARM_SERVER set and both addresses granted (#43) caa4fc0
- Moderation: pause, ban and word filter (#42) 649a7c3
- Mobile first: the arm is fantastic on a phone - watch, queue, drive, chat and moderate with one thumb (#39) 9e5e048
- TOP: friends and family can join in seconds - pick a username in the app (no forge account), then queue and drive (#38) 89eb0ed
- More than one camera: the admin lists cameras, viewers pick one or see them side by side (#28) 472b15b
The room code (join form, queue, chat and the /live socket) now lives in src/ui/lobby-panel.js. viewer.html creates it with createLobbyPanel({...}) and gets back lobby, mayDrive, isOwner, say, chatBox and connect. The panel is served from /ui/__VERSION__/ like the other modules and has a modulepreload link.
Locally bun test src gives 395 passes and 1 failure. The failure is the vendored-libraries route test, which also fails on main because this sandbox has no node_modules. I couldn't run tsc here (bun install and tsc fail with a read-only tempdir error), so the forge's check is the first type check of the new module and test.
- Moved as-is: the code moved line for line, including the words filter, admin settings form, owner moderation, crew-moderator view, "you're next" alert and the turn clock/ring.
- Stayed in the page:
explainLockandapplyLock, because they touch the viewer, driver and teleop. The panel callsapplyLockthrough a callback. - Small changes:
minutes,ordinalandwaitMinutes(the repeated "round up to at least a minute" sum) are now top-level exports. The queue row is built by a purequeueRow(x, me)that returns plain strings, and the page still sets them withtextContent. - New test:
src/ui/lobby-panel.test.tscovers those helpers, including a name like<img onerror=…>coming through as plain text. // @ts-nocheckon the new module: the script was never type-checked inside the HTML, andcheckJsis strict. Say if you'd rather I add types.
Test changed: I raised the first-visit budget in server.test.ts from 50 KB to 52 KB gzipped. The code is the same size, but as its own gzip stream it costs about 1.6 KB more than inline (the page was already at about 49.5 KB). The alternative is loading the panel lazily, which means a real change to when the room code arrives, so I left that to you.
🤖 Generated with Claude Code
The room code (join form, queue, chat and the
/livesocket) now lives insrc/ui/lobby-panel.js.viewer.htmlcreates it withcreateLobbyPanel({...})and gets backlobby,mayDrive,isOwner,say,chatBoxandconnect. The panel is served from/ui/__VERSION__/like the other modules and has amodulepreloadlink.Locally
bun test srcgives 395 passes and 1 failure. The failure is the vendored-libraries route test, which also fails onmainbecause this sandbox has nonode_modules. I couldn't runtschere (bun installandtscfail with a read-only tempdir error), so the forge's check is the first type check of the new module and test.explainLockandapplyLock, because they touch the viewer, driver and teleop. The panel callsapplyLockthrough a callback.minutes,ordinalandwaitMinutes(the repeated "round up to at least a minute" sum) are now top-level exports. The queue row is built by a purequeueRow(x, me)that returns plain strings, and the page still sets them withtextContent.src/ui/lobby-panel.test.tscovers those helpers, including a name like<img onerror=…>coming through as plain text.// @ts-nocheckon the new module: the script was never type-checked inside the HTML, andcheckJsis strict. Say if you'd rather I add types.Test changed: I raised the first-visit budget in
server.test.tsfrom 50 KB to 52 KB gzipped. The code is the same size, but as its own gzip stream it costs about 1.6 KB more than inline (the page was already at about 49.5 KB). The alternative is loading the panel lazily, which means a real change to when the room code arrives, so I left that to you.🤖 Generated with Claude Code
Closes #95