Draft saved · in this sample
Add CSV export to reports
The askPlain words. Sample scope for review.
Acceptance criteriaReview checks each one · 5
- An Export CSV button on /reports downloads reports-2026-09.csv
- Same columns as the table on screen, in the same order
- Dates as 2026-09-27, amounts with 2 decimals, no currency sign
- The button is visible at 390 and 1440, not under the footerchecked by click-through
- A month with no invoices gives a file with headers only
In scopeacme/web
- ✓src/pages/reports/**
- ✓src/components/ExportButton.tsxnew
- ✓src/lib/csv.tsnew
Out of scopeOutside this sample scope
- ×PDF or Excel export
- ×Emailing reports on a schedule
- ×The reports API (backend)
The askSample scope for review
Acceptance criteria5 · Review checks each
Export CSV on /reports downloads the month
Same columns and order as the table
ISO dates, 2 decimals, no currency sign
Visible at 390 and 1440, not under the footer
Empty month gives headers only
Scopeacme/web
In:
src/pages/reports/** ExportButton.tsx csv.ts Out: PDF or Excel, scheduled emails, the reports API
Ask these first2
1Include archived invoices? Default: no
2Comma or semicolon? Default: comma
Nothing runs here. Save and Send change only this sample; nothing reaches a computer or GitHub.