Skip to content
rw3iss Auth

AuditLogTable

form @rw3iss/auth-client/preact/forms/AuditLogTable framework-adapters/preact/components/forms/AuditLogTable.tsx ↗

Paginated audit-log table. Admin-only — server gates the underlying /admin/audit-log endpoint, so render this inside a <RoleGate anyOf=['system_admin','super_admin']> wrapper.

Filters surface as inline inputs above the table:

  • Action — exact or glob prefix (e.g. login.*)
  • User id — UUID, no validation here (server rejects malformed)

Date filtering and org-id filtering are supported by the underlying flow but kept off the default UI surface — most operators want recent activity, and adding date pickers would balloon the component. Pass a custom defaultQuery to set them.

Usage

import { AuditLogTable } from '@rw3iss/auth-client/preact/forms';
<AuditLogTable />

Props

NameTypeDescription
clientAuthClient
defaultQueryAuditLogQuerySeed query — useful for “logs for this user” deep-links.
pageSizenumber
classNamestring