Skip to content

Add CSV export for the activity/audit log page #290

Description

@Lakes41

Difficulty: Intermediate
Type: feature

Background
The /activity route displays an activity/audit log sourced from mock data, useful for admins reviewing guild/member actions.

Problem
Admins have no way to export the current (filtered) activity log for reporting or compliance purposes outside the app.

Expected outcome
An "Export CSV" button on the Activity page downloads the currently visible (filtered) log entries as a well-formed CSV file.

Suggested implementation

  • Add a utility function that converts an array of activity-log entries into CSV text (handle comma/quote escaping).
  • Trigger a client-side download via a Blob + temporary anchor element.
  • Ensure the export respects any active filters/search on the page rather than exporting the full unfiltered dataset.

Acceptance criteria

  • CSV includes header row matching displayed columns
  • Special characters (commas, quotes, newlines) in log entries are properly escaped
  • Export respects current filters
  • Works in latest Chrome and Firefox

Likely affected files/directories

  • apps/dashboard/app/activity/
  • apps/dashboard/lib/ (new csv-export utility)

Metadata

Metadata

Assignees

Labels

GrantFox OSSGrantFox Open Source Sponsorship program tagMaybe RewardedIssue may qualify for a reward upon successful completion per campaign rulesOfficial Campaign | FWC26Official FWC26 campaign issue — eligible for campaign scoring and rewardsfeatureNew feature, enhancement, or functional additionintermediateIntermediate difficulty tasks requiring solid experience and some context

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions