Skip to content

feat: add CSV export action for withdrawal history (Closes #1283) - #1369

Open
waterWang wants to merge 1 commit into
Fluxora-Org:mainfrom
waterWang:feat/recipient-csv-export-1283
Open

feat: add CSV export action for withdrawal history (Closes #1283)#1369
waterWang wants to merge 1 commit into
Fluxora-Org:mainfrom
waterWang:feat/recipient-csv-export-1283

Conversation

@waterWang

Copy link
Copy Markdown

Summary

Adds a client-side CSV export button on the Recipient page that downloads the connected wallet's withdrawal history as a CSV file.

Changes

  • New: withdrawalHistory state (ReceiptData[]) that accumulates after each successful on-chain withdrawal
  • New: handleExportCSV function generates CSV with columns: Date, Stream ID, Amount, Transaction Hash, Status
  • New: Export CSV section with a card layout, description text, and download button
  • Accessible: Button has aria-label that changes based on whether history is available; disabled state has title explanation
  • Responsive: CSS with mobile breakpoint — stacks vertically on small screens
  • No breaking changes: All existing state and behavior preserved

CSV Format

Date,Stream ID,Amount,Transaction Hash,Status
8/2/2026,1,22600 USDC,abc123...,confirmed

Testing

TypeScript compiles without new errors. All existing Recipient tests pass.

Closes #1283

…g#1283)

Add a client-side CSV export button in the Recipient page that downloads
the connected wallet's withdrawal history as a CSV file.

Changes:
- Track withdrawal history state (ReceiptData[]) that accumulates after
  each successful on-chain withdrawal
- Add handleExportCSV function that generates CSV with columns:
  Date, Stream ID, Amount, Transaction Hash, Status
- Add Export CSV section with a card layout and download button
- Button is disabled with visual feedback when there is no history yet
- Add responsive CSS for the export section
- Reuses streams-primary-button classes for consistent styling

All existing tests pass; no breaking changes.
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 a CSV export action for the recipient's withdrawal history on src/pages/Recipient.tsx

1 participant