Skip to content

feat: add CSV/PDF export feature#165

Open
yokuisiti wants to merge 1 commit into
sorosave-protocol:mainfrom
yokuisiti:feat/csv-pdf-export
Open

feat: add CSV/PDF export feature#165
yokuisiti wants to merge 1 commit into
sorosave-protocol:mainfrom
yokuisiti:feat/csv-pdf-export

Conversation

@yokuisiti
Copy link
Copy Markdown

Summary

Closes #60

Implements the data export feature requested in issue #60.

Changes

New file: src/lib/export.ts

  • exportToCSV(data) — generates and downloads a .csv file with full contribution history (round, member, amount, date, status)
  • exportToPDF(data) — opens a print-ready HTML report in a new tab using the browser native print-to-PDF (zero extra dependencies)

Modified: src/app/groups/[id]/page.tsx

  • Added ⬇ Export CSV and 📄 Export PDF buttons in the group Actions panel
  • Buttons disabled while export is in progress with loading state feedback

Acceptance Criteria

  • Export button on group detail page
  • CSV export for contribution history
  • PDF export for group summary report
  • Includes: dates, amounts, members, round status
  • New file src/lib/export.ts created
  • src/app/groups/[id]/page.tsx updated

- Add src/lib/export.ts with exportToCSV() and exportToPDF() utilities
- CSV export: contribution history with round, member, amount, date, status
- PDF export: full group summary report via browser print-to-PDF
- Add Export CSV and Export PDF buttons in group detail Actions panel
- Includes dates, amounts, members, round status per acceptance criteria

Closes sorosave-protocol#60
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add data export feature (CSV/PDF)

1 participant