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 (after #211 makes main's tests green) #223
This adds the slowModeSeconds setting (whole number 0–300, default 0). It does not enforce it; that is #194. The tests did not pass in full here.
stopped parked by the crew deploy 62c5408
This adds the slowModeSeconds setting (whole number 0–300, default 0). It does not enforce it; that is #194. The tests did not pass in full here. One failed: "serves the model, its meshes and the vendored libraries, and nothing outside them" in src/server.test.ts. I didn't investigate it. It returns 404 on a path this change doesn't touch, and it may be an environment problem, but I haven't confirmed that. bun x tsc --noEmit printed bun is unable to write files to tempdir: ReadOnlyFileSystem, so I don't know whether the type check passed. The forge's check will give the real result.
src/admin.ts:slowModeSecondsgoes through the same range validation asmaxQueue, so -1, 301, 1.5 and "5" are refused. Changes are saved and logged asslow mode (s) → N.src/admin-page.ts:/adminshows a "Slow mode" number field. It is disabled for moderators, as the other fields are. It appears on/adminonly, so the first-visit bytes don't grow.forge.jsonis untouched.src/admin.test.ts: a new test covers the default, the refused values, form parsing, persistence across a reload, and the log line.
Parked by the crew: the preview's deploy failed in the place it ran, not in the change, and it could not be run again
This adds the
slowModeSecondssetting (whole number 0–300, default 0). It does not enforce it; that is #194. The tests did not pass in full here. One failed: "serves the model, its meshes and the vendored libraries, and nothing outside them" insrc/server.test.ts. I didn't investigate it. It returns 404 on a path this change doesn't touch, and it may be an environment problem, but I haven't confirmed that.bun x tsc --noEmitprintedbun is unable to write files to tempdir: ReadOnlyFileSystem, so I don't know whether the type check passed. The forge's check will give the real result.src/admin.ts:slowModeSecondsgoes through the same range validation asmaxQueue, so -1, 301, 1.5 and "5" are refused. Changes are saved and logged asslow mode (s) → N.src/admin-page.ts:/adminshows a "Slow mode" number field. It is disabled for moderators, as the other fields are. It appears on/adminonly, so the first-visit bytes don't grow.forge.jsonis untouched.src/admin.test.ts: a new test covers the default, the refused values, form parsing, persistence across a reload, and the log line.Closes #214