Add administrator pause and joining-lock controls
Provide authenticated owner/operator room controls with live account binding, durable audit and exact saved retries. Pause gates human, bot and automatic writes while preserving recovery, discussion and taking back control. Resume keeps decisions and restores AI pacing. Add directory availability filters and player notices. Verified types, lint, 5223 offline tests, 52 HTTP tests and build. Independent persistence/privacy review and authenticated HTTP acceptance passed. Desktop/mobile browser QA confirmed lost-response refresh/retry makes one audit row and resume restores controls. Existing games preserved. Authenticated deployed admin acceptance remains pending explicit QA access confirmation.
This commit is contained in:
1 parent
f29d05620c
commit
8c922b446b
39 files changed
+3196
-104
No files matched your search
@@ -36,10 +36,10 @@ export function SeatAutopilot({ game, act, busy }: SeatAutopilotProps) {
|
||||
AI autopilot · {own.autopilot}
|
||||
</output>
|
||||
<p className="m-0 text-sm leading-6 text-[#e0e4d8]">
|
||||
AI is making this seat’s decisions using only its available
|
||||
{game.roomControl?.paused ? 'AI decisions are paused with the room. On resume, AI uses only this seat’s available information, with about 1.5 seconds between decisions. You can take back control now.' : <>AI is making this seat’s decisions using only its available
|
||||
information, with about 1.5 seconds between decisions. You keep the
|
||||
seat and its recovery setup. Taking back control stops future AI
|
||||
decisions; completed decisions remain in the game.
|
||||
decisions; completed decisions remain in the game.</>}
|
||||
</p>
|
||||
</div>
|
||||
<Button
|
||||
@@ -56,6 +56,9 @@ export function SeatAutopilot({ game, act, busy }: SeatAutopilotProps) {
|
||||
</section>
|
||||
);
|
||||
|
||||
if (game.roomControl?.paused)
|
||||
return <p className="notice">The room is paused. AI can be enabled after an administrator resumes play.</p>;
|
||||
|
||||
return (
|
||||
<details className="notice min-w-0">
|
||||
<summary className="min-h-11 cursor-pointer py-3 text-base font-semibold text-[#efd9a8] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#ddbc77]">
|
||||
|
||||
Reference in new issue
Block a user