Keep admin and seat recovery notices readable
Show progress during initial admin and seat-control submissions; retain exact recovery instructions for uncertain requests and explicit retries. Keep seat recovery and handover confirmations above the table until Continue without blocking gameplay. Use readable 16px text and 44px controls. Verified isolated checkpoint: types, lint, 5381 offline tests, 52 HTTP tests and build. Local delayed/lost-response browser QA covered admin creation, durable retry, handover and seat recovery, mobile readability and saved-seat restoration. Existing 2098 rooms and 4455 seats preserved. Deployment acceptance follows separately.
This commit is contained in:
1 parent
e918e2e0c0
commit
137f9223f1
15 files changed
+134
-31
No files matched your search
@@ -35,6 +35,7 @@ export function SeatAiDelegation({
|
||||
const [record, setRecord] = useState<SeatAiDelegateRequest | null>(null);
|
||||
const [storageProblem, setStorageProblem] = useState(false);
|
||||
const [busy, setBusy] = useState(false);
|
||||
const [initialRequestPending, setInitialRequestPending] = useState(false);
|
||||
const [message, setMessage] = useState('');
|
||||
const [abandon, setAbandon] = useState(false);
|
||||
const [delegateId, setDelegateId] = useState('');
|
||||
@@ -86,6 +87,7 @@ export function SeatAiDelegation({
|
||||
if (locked || pending.current || (closed && !record)) return;
|
||||
pending.current = true;
|
||||
setBusy(true);
|
||||
setInitialRequestPending(!record);
|
||||
setExpanded(true);
|
||||
setAbandon(false);
|
||||
onPending(true);
|
||||
@@ -148,6 +150,7 @@ export function SeatAiDelegation({
|
||||
);
|
||||
} finally {
|
||||
pending.current = false;
|
||||
setInitialRequestPending(false);
|
||||
setBusy(false);
|
||||
onPending(false);
|
||||
}
|
||||
@@ -175,7 +178,7 @@ export function SeatAiDelegation({
|
||||
your own AI control, or recovering or transferring either seat
|
||||
invalidates unused permission.
|
||||
</p>
|
||||
{record || storageProblem ? (
|
||||
{initialRequestPending ? <output className="block">Saving AI permission…</output> : record || storageProblem ? (
|
||||
<section
|
||||
aria-label="Unconfirmed AI permission request"
|
||||
className="flex flex-col gap-3"
|
||||
|
||||
Reference in new issue
Block a user