Skip to content

Audit trails ​

Audit Trails page screenshot

Overview ​

Displays audit entries with summary counts and filters.

  • Route: /audit-trails (protected)
  • Source: front/src/pages/AuditTrails.tsx
  • Layout: DashboardLayout

User actions ​

  • Search current fetched entries client-side.
  • Filter by action, user, date range, and page.
  • Export audit entries (the service supports blob export; whether the page invokes export is determined by its Download control).

APIs and data flow ​

  • On mount and when page/action/user/date filters change: GET /audit and GET /audit/summary.
  • Page requests 50 entries and transforms API objects to the page's local AuditEntry shape.
  • Search filters the received page locally.

States ​

Loading flag is shown by the page. Fetch errors are logged and the entries array is cleared; a distinct retry state is not confirmed. Exact audit schema is backend-defined.

Source: front/src/pages/AuditTrails.tsx, front/src/services/api/auditService.ts.

See Audit API.