CnAuditTrailCard
Compact audit-trail widget for the pluggable integration registry. Fetches the most recent audit-trail entries for an OpenRegister object (query-time storage strategy) and renders them inside a CnDetailCard. Surface-aware shell around the audit-trail integration: handles user-dashboard, app-dashboard, detail-page, and single-entity from a single component.
Wraps: CnDetailCard
Try it
Loading CnAuditTrailCard playground…
Usage
<CnAuditTrailCard
:register="registerId"
:schema="schemaId"
:object-id="objectId"
surface="detail-page"
@show-all="openAuditTrailTab" />
Pass pre-translated labels when your app handles i18n:
<CnAuditTrailCard
:register="reg"
:schema="schema"
:object-id="id"
:no-entries-label="t('myapp', 'No audit entries yet')"
:show-all-label="t('myapp', 'Show all')" />
Display props
| Prop | Type | Default | Notes |
|---|---|---|---|
title | String | '' | Override the card title (defaults to the translated label). |
maxDisplay (max-display) | Number | 5 | Maximum rows to render. |
collapsible | Boolean | false | Whether the card collapses. |
actionLabel (action-label) | String | t('nextcloud-vue', 'Change') | Pre-translated fallback action label. |
apiBase (api-base) | String | '/apps/openregister/api' | Base API URL. |
Reference
Props
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
register | string | ✓ | — | OpenRegister register id (slug or uuid). |
schema | string | ✓ | — | OpenRegister schema id (slug or uuid). |
objectId | string | ✓ | — | Parent object id. |
surface | string | 'detail-page' | Rendering surface — passed for AD-19 surface fallback consumers. | |
apiBase | string | '/apps/openregister/api' | Base API URL. | |
maxDisplay | number | 5 | Maximum rows to render. | |
collapsible | boolean | false | Whether the card collapses. | |
title | string | '' | Override the card title (defaults to the translated label). | |
noEntriesLabel | string | () => t('nextcloud-vue', 'No audit entries yet') | Pre-translated empty label. | |
showAllLabel | string | () => t('nextcloud-vue', 'Show all') | Pre-translated overflow label. | |
actionLabel | string | () => t('nextcloud-vue', 'Change') | Pre-translated fallback action label. |
Events
| Name | Payload | Description |
|---|---|---|
show-all | — |