Audit table pages, model filters and change presenters for Enso UI.
Install the package:
yarn add @enso-ui/auditThis package is also available through the full enso-ui workspace bundle.
- exports the audit index page used by the system route group
- filters audit rows by event, audited model, audited model id, user and creation date
- loads audited model options from the backend
system.audit.modelssource - renders row-level create/update/delete payloads inside a closeable popover
- supports click-to-filter tags for event, model, audited id and user avatar columns
- integrates audit rows with user avatars and the backend table definition
import AuditsIndex from '@enso-ui/audit';Default export for the audit table page.
Import: @enso-ui/audit
Popover change renderer used by the audit table.
Import: @enso-ui/audit/src/bulma/pages/audit/components/Audit.vue
Props:
event: stringaudit event type.changes: objectbackend create/update/delete payload.
Plain attribute renderer used for create/delete payloads.
Import: @enso-ui/audit/src/bulma/pages/audit/components/Model.vue
Before/after renderer used for update payloads.
Import: @enso-ui/audit/src/bulma/pages/audit/components/Updated.vue
Route group:
system.audit.index
Page:
src/bulma/pages/audit/Index.vue
The model filter expects the companion backend source:
system.audit.modelsGET api/system/audit/models
The backend companion provides the audit table definition, audited model options, change payloads and route group consumed by the page.
are welcome. Pull requests are great, but issues are good too.
Thank you to all the people who already contributed to Enso!