[Admin][UI] Moderation controls + admin audit-log viewer
Why
Surface the moderation actions and make the admin-action audit log reviewable (self-oversight; a gap PAS still has).
Scope
- Reusable confirm-dialog moderation controls (suspend/unsuspend user, grant/revoke role, unpublish/delete agent, cancel instance, revoke key) — embedded in the User/Agent/Instance detail pages, all calling the Moderation API.
- Audit-log viewer page: read
admin_audit_log (needs a GET /v1/admin/audit endpoint — add here if not already) — actor, action, target, detail, time; filter by actor/action/target.
Acceptance criteria
Relevant code
store/admin/ Moderation components + Audit page; consumes Moderation API + admin_audit_log.
References
- FGS grant/revoke + delist; FAS deprovision.
Part of the PAGS Admin Portal epic. Depends on UI scaffold + Moderation API + Foundation (audit log).
[Admin][UI] Moderation controls + admin audit-log viewer
Why
Surface the moderation actions and make the admin-action audit log reviewable (self-oversight; a gap PAS still has).
Scope
admin_audit_log(needs aGET /v1/admin/auditendpoint — add here if not already) — actor, action, target, detail, time; filter by actor/action/target.Acceptance criteria
Relevant code
store/admin/Moderation components + Audit page; consumes Moderation API +admin_audit_log.References
Part of the PAGS Admin Portal epic. Depends on UI scaffold + Moderation API + Foundation (audit log).