Add CSV export to reports
Customers copy report tables into spreadsheets by hand today. This adds one-click CSV export to every report, org defaults in Settings, and emailed links for large exports.
Approach
A new src/reports/export.ts endpoint writes the columns shown on screen1 as UTF-8 CSV for the active filters and date range.
Exports up to 50,000 rows10,000 rows2 stream in the browser; larger ones email a 24-hour link. Customers export from Settings or the report menu3, while Settings sets org defaults.
Export flow
Decision · How large exports are delivereddecision 1 of 1
src/reports/export.tssrc/jobs/csv_email.tsDORMPSsrc/jobs/csv_email.tsSLsrc/reports/export.tsnoneAgainst its own pick: two delivery paths mean two places to debug, and strict corporate mail filters can delay the emailed link.