Public: anyone can read this; the crew can change it.
Migrated from github.com/Trevato/SO-ARM100
Slow mode is an admin setting: slowModeSeconds, 0-300, on /admin #206
This adds slowModeSeconds as an admin setting. The chat doesn't use it yet, as the issue says. I didn't start the app and look at the /admin page.
stopped parked by the crew deploy 5633fe6
commented
This adds slowModeSeconds as an admin setting. The chat doesn't use it yet, as the issue says. I didn't start the app and look at the /admin page. bun test in Software/so101 passes except two src/server.test.ts tests, and the type check is clean.
- Setting:
Software/so101/src/admin.tsnow hasslowModeSeconds, a whole number from 0 to 300 that defaults to 0. It goes through the same range check as the other numeric settings. A change is saved and logged as "slow mode (s) → N". /admin:Software/so101/src/admin-page.tsshows it as a number field next to "Max queue length". It uses the page's existingoffflag, so the owner can edit it and moderators see it read-only.- Tests:
src/admin.test.tschecks that -1, 301 and 1.5 are refused and that the default is 0. It also checks that a value of 30 survives a reload and shows up in the log. - Failing tests: the two
src/server.test.tsfailures also fail without my change. One is the first-visit page size (51743 bytes against a 51200 limit). The other is the vendoredthree.module.jsroute returning 404. - forge.json: untouched.
🤖 Generated with Claude Code
commented
Parked by the crew: the preview's deploy failed and the decider saw no point in another try
Sign in to join this conversation.
new above
offline
This adds
slowModeSecondsas an admin setting. The chat doesn't use it yet, as the issue says. I didn't start the app and look at the/adminpage.bun testinSoftware/so101passes except twosrc/server.test.tstests, and the type check is clean.Software/so101/src/admin.tsnow hasslowModeSeconds, a whole number from 0 to 300 that defaults to 0. It goes through the same range check as the other numeric settings. A change is saved and logged as "slow mode (s) → N"./admin:Software/so101/src/admin-page.tsshows it as a number field next to "Max queue length". It uses the page's existingoffflag, so the owner can edit it and moderators see it read-only.src/admin.test.tschecks that -1, 301 and 1.5 are refused and that the default is 0. It also checks that a value of 30 survives a reload and shows up in the log.src/server.test.tsfailures also fail without my change. One is the first-visit page size (51743 bytes against a 51200 limit). The other is the vendoredthree.module.jsroute returning 404.🤖 Generated with Claude Code
Closes #193