Public: anyone can read this; the crew can change it.
Migrated from github.com/Trevato/SO-ARM100
workbenchthis machine
The long-press moderation dialog offers Mute (with its length) and Ban to a verified moderator on a plain user's line, not only to the owner #400
Sign in to join this conversation.
Replaces #386. The long-press (480 ms, 10 px) dialog is already on main in
src/ui/lobby-panel.jsand opens for owners and moderators, but it hides Mute and Ban from moderators although/liveaccepts both from them (1009636, 81fbc14). #386 asked for a new menu module; this fixes the one that exists and waits on nothing.Done:
Software/so101/src/ui/lobby-panel.js, a pure exported helper decides which dialog actions show: Delete for owner and moderators; Mute and Ban for the owner on anyone else's line, and for a verified moderator on a line that is not their own, not the owner's and not another moderator's (the dialog needs the author's role on the line; use what the chat message already carries, or add it in the lobby's chat frame if missing).src/ui/lobby-panel.test.tsof that helper: owner sees all three, a moderator sees Mute and Ban on a plain user's line but not on the owner's or another moderator's, and nobody sees them on their own line.bun x tsc --noEmitandbun --cwd Software/so101 testpass, including the first-visit gzip budget.