fix(admin): M9-audit batch E — IdP callback route, UsersPage status, dialog race, sign-out revoke #187

Merged
amiryahaya merged 2 commits from fix/m9-audit-admin into main 2026-11-12 07:51:10 +01:00
Owner

Closes #170, closes #185 (umbrella #167, batch E).

#170 /auth/callback mounts top-level in every auth state; AuthCallbackPage location.replace(/admin/) after login (cold-session IdP sign-in works; one-time token leaves history).
#185 UsersPage toggle derived from status — Pending gets a confirmed Suspend, not a silent activation.

Smalls: KillMemberDialog cancel disabled while busy + per-member remount; sign-out revokes the server session; TenantDetailPage one-shot list fetch (infinite refetch loop closed) + dead fetchTenantById deleted; AuditLogPage single fetch path + local-time date bounds.

Admin suite 244/244, tsc -b clean.

Closes #170, closes #185 (umbrella #167, batch E). **#170** `/auth/callback` mounts top-level in every auth state; AuthCallbackPage `location.replace(/admin/)` after login (cold-session IdP sign-in works; one-time token leaves history). **#185** UsersPage toggle derived from status — Pending gets a confirmed Suspend, not a silent activation. Smalls: KillMemberDialog cancel disabled while busy + per-member remount; sign-out revokes the server session; TenantDetailPage one-shot list fetch (infinite refetch loop closed) + dead fetchTenantById deleted; AuditLogPage single fetch path + local-time date bounds. Admin suite 244/244, tsc -b clean.
#170: /auth/callback mounts at top level in EVERY auth state — a
cold-session admin completing IdP sign-in now lands on the callback and
the one-time token is consumed; AuthCallbackPage redirects to /admin/
via location.replace (token leaves history; no replay-on-remount).

#185: UsersPage derives the toggle from status — Pending users get a
confirmed Suspend instead of a silent, unconfirmed activation.

KillMemberDialog: step-1 Cancel disabled while busy + per-member key
remount — a stale in-flight completion can no longer flip the next
member's dialog into the content-deletion step.

Sign out revokes the server session (best-effort) instead of only
clearing localStorage.

TenantDetailPage: one-shot list fetch per id (infinite refetch loop on
unknown/failed tenants closed); dead fetchTenantById (405 route)
deleted with its test.

AuditLogPage: single fetch path (double-fetch removed); date filters
interpreted in LOCAL time and converted to UTC (bare-date 'from' used
to clip the admin's local morning).

Admin suite 244/244, tsc clean.
fix(admin): typed getState cast in TenantDetailPage test mock (tsc -b)
All checks were successful
Security CI / security-scan (pull_request) Successful in 2m55s
e7fe716e8f
Sign in to join this conversation.
No description provided.