Public: anyone can read this; the crew can change it.
Migrated from github.com/Trevato/SO-ARM100
A moderator can delete a chat line over /live - the first moderator action, server-checked and logged #239
Parked 45d 18h ago
A signed-in moderator can now send delete over /live. Every other owner action is still owner-only. src/lobby.test.ts passes (30 tests).
-
Reviews
No review yet.
-
Checks
stopped parked by the crew deploy 29ad05c
-
History
- Retrigger the preview: the install hit a 429 from the npm registry, no dependency changed 29ad05c
- A verified moderator can delete a chat line over /live; the deletion is logged with who did it (#225) e5aed0a
- src/live-metrics.ts: rolling timings with p50/p95, counters and gauges, rendered as Prometheus text - one new module and its test (#205) 240fb37
- Phone portrait: the video is pinned on top with its 16:9 box reserved, and one status strip sits under it (from main at 1142ee6 or later, forge.json untouched) (#187) a304be7
- Page control for tableOffsetMm and a table-here button in the settings panel (#181) 48b63e8
- Phone portrait: a bottom tab bar Drive / Queue / Chat (/ Mod for admins) shows one panel at a time (from main at 1142ee6, forge.json untouched) (#177) df67db9
- /live closes any text frame over 4096 bytes with 1009 - the three-line cap plus its boundary tests (#199) 1e81d4c
- The page draws the camera from /camera/<id>/ws when relayed and reconnects after 2 s without a frame (#182) 8671eed
- The 3D viewer draws the table at the model floor, not at the enforced plane (#183) 45b7233
- A test proves a driver's slider move reaches the fake Pi within one frame through the relay (#186) 9e38b4b
- A refused move shows its reason on the page and in the Machine panel - never silent (#180) 90b0d9b
- Anyone who is not the owner or a moderator gets 404 on GET and POST /admin, not 401/403 (#175) 3854e9a
- The table plane can be set: a tableOffsetMm setting and POST /settings/table-here from the arm's lowest point now (#173) 0ebf3bb
- /status names who is driving, including the owner after a take-over (#174) 4eb94fb
- The relay serves WS /camera/<id>/ws from the shared camera feed, and the offline picture when the Pi camera is down (#172) 46c4128
- The page's queue, join and chat script lives in src/ui/lobby-panel.js - no behaviour change (from main at 1142ee6, forge.json untouched) (#170) 0d6d76d
- bun x tsc --noEmit passes on main again: src/ui/metrics-panel.js esc() never returns undefined (#171) f728f93
- Relay's POST /admin actions (save, mod-add, mod-remove, pause, resume, end, take) are handled in src/admin-routes.ts - no behaviour change (#169) 4dbea7b
- The safe zone never refuses a move that goes no deeper than the pose the arm starts in (#167) 8d89036
- src/camera-socket.ts fans one JPEG source out to many sockets, latest frame wins - a pure module with tests, no route (#142) 8ca26ab
A signed-in moderator can now send delete over /live. Every other owner action is still owner-only. src/lobby.test.ts passes (30 tests). I couldn't type-check: bun x tsc and bun install both fail in this sandbox with a read-only temp dir error. The forge's check will be the first type check.
- Who counts: a seat is a moderator only if the forge signed its identity (a new
verifiedflag on the seat) andadmin.isModerator(name)is true. A guest who picks a moderator's name is refused. - Refusals: a plain user and a moderator's
settingsorpausestill get "only the owner can do that". - Delete path: the owner and the moderator now share one
deleteLinehelper insrc/lobby.ts. It validates the id and removes the line. It then recordsdeleted chat line Nin the admin log under the actor's name, broadcastsunsaid, and refreshes the owners' admin view. The owner's deletes are now logged too, which they weren't before. - Tests:
- A moderator deletes a line, everyone receives
unsaid, and the log entry names the moderator. - A plain user is refused.
- A moderator's
settingsandpauseare refused, andpausedstays false. - A guest with a moderator's name is refused and nothing is logged.
- A moderator deletes a line, everyone receives
- forge.json is untouched.
🤖 Generated with Claude Code
Sign in to join this conversation.
new above
offline
A signed-in moderator can now send
deleteover/live. Every other owner action is still owner-only.src/lobby.test.tspasses (30 tests). I couldn't type-check:bun x tscandbun installboth fail in this sandbox with a read-only temp dir error. The forge's check will be the first type check.verifiedflag on the seat) andadmin.isModerator(name)is true. A guest who picks a moderator's name is refused.settingsorpausestill get "only the owner can do that".deleteLinehelper insrc/lobby.ts. It validates the id and removes the line. It then recordsdeleted chat line Nin the admin log under the actor's name, broadcastsunsaid, and refreshes the owners' admin view. The owner's deletes are now logged too, which they weren't before.unsaid, and the log entry names the moderator.settingsandpauseare refused, andpausedstays false.🤖 Generated with Claude Code
Closes #225