Feature: Export events to CSV
Summary
Client-side CSV export of event listings.
User story
As a user, I want to export visible events to CSV so I can share or analyze them.
Scope
- Frontend utility
downloadEventsCSV(filename, events, fields?)
. - Include attendee count, dates as ISO.
Tasks
-
Implement util (Blob + BOM + link download). -
Add button to list view; pass filtered events. -
Vitest unit test for CSV output.
Acceptance criteria
-
Clicking “Export CSV” downloads a valid CSV with headers and data. -
Works with filters; handles commas/quotes correctly.
Test notes
- Verify escaped quotes and line breaks; optional fields blank.
Dependencies
- Depends on: “Filter events by category and date range”.