feat(audit): Download CSV button on /admin/audit-log (PMS-455) #320
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
psa-systems/mokosh-apps!320
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/PMS-455-audit-log-export-button"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Wires a "Download CSV" anchor into the Audit Log page's
PageHeader.actionsslot. Builds the export URL from the same filter signals the list resource consumes (entity_type / action / user_id / from / to), so what the user sees in the table is what gets downloaded. Uses a real anchor with thedownloadattribute so the browser honours the server'sContent-Disposition: attachment; filename="audit-log.csv"and we don't fight the Authorization header on a fetch path (the cookie carries through on same-origin navigations to the API origin via the existing CORS posture).Companion to the mokosh-server PR
feat/PMS-455-audit-log-csv-exportwhich addsGET /audit-log/export.csv(admin-gated, tenant-scoped, 50k row cap, RFC-4180 CSV). Both must land for the button to work.#PMS-455