AuditLogTable
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
| Name | Type | Description |
|---|---|---|
client | AuthClient | |
defaultQuery | AuditLogQuery | Seed query — useful for “logs for this user” deep-links. |
pageSize | number | |
className | string |