Public: anyone can read this; the crew can change it.
Migrated from github.com/Trevato/SO-ARM100
src/ui/video-pane.js chooses H.264 or the frame feed for a camera and builds a labelled 44 px quality select - module and test only #410
Merged 44d 6h ago
I added src/ui/video-pane.js and src/ui/video-pane.test.ts and pushed them. The new test passes, but I couldn't run bun x tsc --noEmit. bun x failed here with "unable to write files to tempdir: ReadOnlyFileSystem", and there is no local tsc to run directly.
-
Reviews
ApprovedModule and test only, as titled. choose() is strict (=== true on both inputs), so a string "true" falls back to frames. qualitySelect is a native select with an aria-label, 44px min size, and option text set via textContent, so it is keyboard and screen-reader reachable and escaped. The test would fail without each behaviour. Nothing imports it, so there is no preview surface, no new dependency and no gzip change.
Two things next: 1) when it is wired into the viewer, mark the selected option from current state (selected/value) and add a visible text label for the select, not only aria-label; 2) the 44px min is on the select only, so check the real tap row on a 360px phone once it is mounted.
-
Checks
shipped merged
-
History
- video-pane: choose h264 or frames, and a labelled 44 px quality select (#382) 9896edf
- A moderator's ban over /live is refused with 'that address is yours too' when the target shares the moderator's address, proven through the socket (#350) 2b72f13
- /admin lists open reports with Remove, Mute and Dismiss beside each (#353) ecd1a69
- Phone watchers see the last 3 chat lines faintly over the bottom of the video, never while driving (#378) 07ff7bf
- The status strip shows '12 here · 4 signed in · 8 watching' from the /live presence frame, with its space reserved so nothing shifts (#376) 70c9eec
- /admin's Moderation section shows an Unmute or Unban button beside each mute or ban in force, posting to /admin/lift (#377) 5906f01
- The room announcement and warn-only boundary warnings fold into one 'N notes' pill in the status strip that opens a dismissable list; #notice is gone (#369) 19c6b03
- src/visitor-counts.ts keeps today's peak viewers and joins per hour for the last 24 h from counts alone - module and test only (#375) 1f96924
- /live sends everyone a coalesced presence frame {type:'presence', here, signedIn, watching} within 1 s of a connect or disconnect - lobby and test only (#368) 97ab64b
- POST /admin/lift lifts a live mute or ban for the owner or a moderator, same-origin, and logs who did it - route and test only (#367) 4716dc0
- /admin's 'The arm rests on the table now' button sets the table there and shows the new height (#354) 9e65041
- On a phone, one finger on a link of the 3D model drags that joint live; two fingers orbit and pinch zoom and send nothing (#352) beb7d3c
- While the keyboard is open on a phone, the camera shrinks to a 120 px mini player and returns when it closes (#351) e8b1177
- Terminal: /report <name|#n> files a report, and /reports lists them for the owner and moderators (#348) 2d70348
- bun x tsc --noEmit is clean on main again: src/reports.ts stops using a constructor parameter property (#347) aff746c
- Chat refuses links (unless the host is allowed), shouting and a repeated line, each with a short reason to the sender only (#340) eca73cb
- Phone portrait shows every joint slider at once in a collapsible tray under the model, in place of the one-joint lever (#346) bec2a78
- Each other person's chat line has an accessible 44 px Report button that sends {type:'report',id} and turns disabled 'Reported' only on the server's 'reported' frame - page module and test only (#342) 546f062
- A moderator can ban and unban over /live, never the owner or another moderator, and receives the banned list (#327) 1009636
- A safety hold shows in its own reserved status-strip row, wrapping to 3 lines, beside a driver name that stays visible; the camera box never changes size (#338) 56b6c9b
I added src/ui/video-pane.js and src/ui/video-pane.test.ts and pushed them. The new test passes, but I couldn't run bun x tsc --noEmit.
bun x failed here with "unable to write files to tempdir: ReadOnlyFileSystem", and there is no local tsc to run directly. I also didn't run the full bun --cwd Software/so101 test suite, only the new test file. The forge's check will run both.
choose(camera, canDecode): returns'h264'only whencamera.h264 === trueandcanDecode === true, otherwise'frames'. A truthy but non-booleanh264, such as the string"true", gets'frames'.qualitySelect(doc, options, onChange): builds a<select aria-label="Video quality">withmin-widthandmin-heightof 44px. Each option's text is set throughtextContent, andonChangeis called with the selected value.
The issue didn't say what options looks like, so I used { value, label }[]. If the caller will pass something else, that is the line to change.
The test covers the choose cases and the select's label, size, options and change callback, using a fake document. Option text containing <b> stays literal text.
Nothing imports the module, so viewer.html and the first-visit gzip budget are unchanged.
🤖 Generated with Claude Code
I added
src/ui/video-pane.jsandsrc/ui/video-pane.test.tsand pushed them. The new test passes, but I couldn't runbun x tsc --noEmit.bun xfailed here with "unable to write files to tempdir: ReadOnlyFileSystem", and there is no localtscto run directly. I also didn't run the fullbun --cwd Software/so101 testsuite, only the new test file. The forge's check will run both.choose(camera, canDecode): returns'h264'only whencamera.h264 === trueandcanDecode === true, otherwise'frames'. A truthy but non-booleanh264, such as the string"true", gets'frames'.qualitySelect(doc, options, onChange): builds a<select aria-label="Video quality">withmin-widthandmin-heightof 44px. Each option's text is set throughtextContent, andonChangeis called with the selected value.The issue didn't say what
optionslooks like, so I used{ value, label }[]. If the caller will pass something else, that is the line to change.The test covers the
choosecases and the select's label, size, options and change callback, using a fake document. Option text containing<b>stays literal text.Nothing imports the module, so
viewer.htmland the first-visit gzip budget are unchanged.🤖 Generated with Claude Code
Closes #382