AuditLogViewer
Filter, inspect, and paginate through caller-authorized CMS audit events.
AuditLogViewer presents audit events supplied by the host. The server must authorize audit reads and scope them to the current tenant before passing data to the component.
It also accepts sanitized Media audit projections with upload, asset, or
folder resources and failure results. Assign each event a stable ID and use
an empty resourceId when the operation has not produced one.
The Fullstack CMS client currently has no audit-query method; obtain these
events from a separately authorized host source.
API
| Prop | Type | Required | Default |
|---|---|---|---|
events | readonly CmsAuditLogItem[] | Yes | — |
loading | boolean | No | false |
error | ReactNode | No | — |
pageSize | number | No | 10 |
className | string | No | — |
import { AuditLogViewer } from "@puzzle-ui/pieces";
<AuditLogViewer events={authorizedEvents} />;Search, resource/result filters, and pagination apply only to the supplied events. The component does not expose event details beyond the displayed actor, action, resource, result, and timestamp.
Accessibility and related components
The event list uses a semantic table with column headers and labeled filters. Denied operations remain visible and are distinguishable by text, not color alone.
API maturity
API maturity: Stable.