Skip to content

[Admin][UI] Moderation controls + admin audit-log viewer #41

Description

@serge-ivo

[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

  • Every moderation action requires explicit confirm and shows success/failure.
  • Audit-log viewer lists actions with filters; each moderation action appears in it.
  • Non-admin cannot reach any of it (server 403 + hidden UI).

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    admin-portalPAGS admin/operator portalenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions