Public: anyone can read this; the crew can change it.
Migrated from github.com/Trevato/SO-ARM100
Beside a live mute or ban on /admin, an Unmute or Unban button lifts it, same-origin, and the lift is logged #320
Parked 45d 16h ago
The Moderation section on /admin now lists every mute and ban in force, each with an Unmute or Unban button. The new test and the related admin, lobby, accounts and chat suites pass.
-
Reviews
No review yet.
-
Checks
stopped parked by the crew deploy 876f712
-
History
- Unmute and Unban buttons beside each live mute or ban on /admin, same-origin, owner or moderator, and logged (#221) 876f712
- src/guest-names.ts gives each anonymous viewer a tasteful colour-and-animal name, stable per browser, never held by two at once - module and test only (#311) 30708a9
- Chat scrolls itself only when you are at the bottom, otherwise a 'new messages' pill appears; system lines are muted (#309) 7609b6c
- Each viewer reports command round trip, camera fps and frame age, and the owner sees them live under Admin -> Health (#302) 8da9f33
- src/ui/video-player.js decodes H.264 access units with WebCodecs into a canvas and reports when it cannot - module and test only (#305) 435973a
- On a phone the chat composer stays above the keyboard, and typing never zooms the page (#308) 43752af
- A moderator can mute and unmute over /live, never the owner or another moderator, and receives the muted list (#304) d48b239
- Phone portrait: the 3D model fills the space under the camera and the status strip, and both are always visible together (#303) cee0bb9
- The relay keeps the turns and the hold state under FORGE_APP_DATA, so a restart restores the queue, the driver and a held arm (#296) 5cc704e
- A removed chat message can be restored from /admin, and it reappears for everyone live (#294) b047c80
- Software/README.md gives the exact Pi commands for hardware H.264 renditions on :8082-8084 (GOP of 1 s or less, no B-frames), beside the MJPEG ustreamer (#268) befb8c7
- /metrics.prom counts camera frames in, bytes out and viewers per socket kind (#273) d217ec3
- /metrics.prom counts /follow frames received and dropped, and the relay logs summaryLine() once a minute (#272) 185e3c3
- A ban ends the banned person's turn at once and takes them out of the queue (#269) 3cccc34
- src/turns.ts can keep the queue order and the current driver's turn end in a file and restore them - module and test only (#266) ef57c50
- The relay serves /camera/<id>/video from ARM_H264_<n> sources, flags h264 in /cameras, and allows the Pi's H.264 ports in egress (#267) f8e82d4
- The relay holds one LiveMetrics, reports the Pi round trip from arm-link, and serves it at GET /metrics.prom (#261) 0f8ed54
- /admin shows the moderation actions from the admin log, newest first, with who and when - read-only (#254) 4ba6e72
- src/h264.ts and src/video-fanout.ts: split Annex-B access units and fan them out per viewer, skipping to the next keyframe - modules and tests only (#264) 819e5e7
- A chat mute can last 10 min, 1 h, 24 h or for good, and ends on its own - in src/chat.ts (#253) 81fbc14
The Moderation section on /admin now lists every mute and ban in force, each with an Unmute or Unban button. The new test and the related admin, lobby, accounts and chat suites pass. I couldn't run the type check: bun install and bun x tsc fail in this sandbox with "unable to write files to tempdir", so the forge's check is the first type check.
- No list existed to build on.
/adminonly showed the log, so I added the list of live mutes and bans as well as the buttons. - Button action. Each button posts a form with the
unmuteorunbanaction to the existing/adminhandler insrc/admin-routes.ts. The handler lifts the mute or ban and logs it asunmuted <name>orunbanned <name>, credited to whoever pressed the button. - Who can lift. The owner and verified moderators can lift mutes and bans. A moderator can't lift another moderator's mute, which matches the live mute rule. Every other action stays owner-only, so a moderator posting
pausestill gets 403. - Origin check. The same-origin check in the relay already covers every non-GET request, so a cross-origin POST gets 403 with no new code.
- Lobby changes. In
src/lobby.tsI addedliftMute,liftBanandafterBanChange. The/liveunban now uses them too, so both routes lift and log the same way and notify connected viewers. - Tests. The new test is in
src/admin-relay.test.ts. A moderator's unban and unmute work and appear in the log, and a cross-origin POST is refused with 403 and changes nothing.
Differs from the issue: a plain user's POST gets 404, not 403. /admin deliberately doesn't exist for anyone who isn't the owner or a verified moderator, and an existing test pins that, so I kept it. A moderator's disallowed POST does get 403.
forge.json is untouched.
🤖 Generated with Claude Code
The Moderation section on
/adminnow lists every mute and ban in force, each with an Unmute or Unban button. The new test and the related admin, lobby, accounts and chat suites pass. I couldn't run the type check:bun installandbun x tscfail in this sandbox with "unable to write files to tempdir", so the forge's check is the first type check./adminonly showed the log, so I added the list of live mutes and bans as well as the buttons.unmuteorunbanaction to the existing/adminhandler insrc/admin-routes.ts. The handler lifts the mute or ban and logs it asunmuted <name>orunbanned <name>, credited to whoever pressed the button.pausestill gets 403.src/lobby.tsI addedliftMute,liftBanandafterBanChange. The/liveunban now uses them too, so both routes lift and log the same way and notify connected viewers.src/admin-relay.test.ts. A moderator's unban and unmute work and appear in the log, and a cross-origin POST is refused with 403 and changes nothing.Differs from the issue: a plain user's POST gets 404, not 403.
/admindeliberately doesn't exist for anyone who isn't the owner or a verified moderator, and an existing test pins that, so I kept it. A moderator's disallowed POST does get 403.forge.jsonis untouched.🤖 Generated with Claude Code
Closes #221