Skip to main content

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

PropTypeDefaultNotes
titleString''Override the card title (defaults to the translated label).
maxDisplay (max-display)Number5Maximum rows to render.
collapsibleBooleanfalseWhether the card collapses.
actionLabel (action-label)Stringt('nextcloud-vue', 'Change')Pre-translated fallback action label.
apiBase (api-base)String'/apps/openregister/api'Base API URL.

Reference

Props

NameTypeRequiredDefaultDescription
registerstringOpenRegister register id (slug or uuid).
schemastringOpenRegister schema id (slug or uuid).
objectIdstringParent object id.
surfacestring'detail-page'Rendering surface — passed for AD-19 surface fallback consumers.
apiBasestring'/apps/openregister/api'Base API URL.
maxDisplaynumber5Maximum rows to render.
collapsiblebooleanfalseWhether the card collapses.
titlestring''Override the card title (defaults to the translated label).
noEntriesLabelstring() =&gt; t('nextcloud-vue', 'No audit entries yet')Pre-translated empty label.
showAllLabelstring() =&gt; t('nextcloud-vue', 'Show all')Pre-translated overflow label.
actionLabelstring() =&gt; t('nextcloud-vue', 'Change')Pre-translated fallback action label.

Events

NamePayloadDescription
show-all