Skip to content

Add CSV export for tax & accounting transaction history - #677

Open
ogbemercyada-sketch wants to merge 1 commit into
StellarFlow-Network:mainfrom
ogbemercyada-sketch:feat/607-csv-export-history
Open

Add CSV export for tax & accounting transaction history#677
ogbemercyada-sketch wants to merge 1 commit into
StellarFlow-Network:mainfrom
ogbemercyada-sketch:feat/607-csv-export-history

Conversation

@ogbemercyada-sketch

Copy link
Copy Markdown

Summary

  • Adds a streaming CSV exporter (src/utils/csvExport.ts) formatted to match standard crypto tax software columns: Date, Type, Sent Amount, Sent Currency, Received Amount, Received Currency, Fee, TxHash.
  • Adds a TransactionHistoryTable component for swap/liquidity/remittance settlement history with a one-click "Export CSV" button, wired up on a new /dashboard/transactions page.
  • Adds a useTransactionHistory react-query hook (with mock-data fallback, following the existing useCorridorMetrics pattern) since there was no transaction-history data source in the app yet.
  • CSV rows are generated via a ReadableStream that yields between chunks, so exporting a large account history doesn't block the main thread.

Test plan

  • npx tsc --noEmit — no new type errors
  • npx eslint on all changed files — clean
  • Verified /dashboard/transactions renders the table, filters, and export button in a local dev server
  • Verified the streaming CSV generation produces correct chunked output with a standalone script

Closes #607

Adds a streaming CSV exporter formatted for standard crypto tax
software (Date, Type, Sent/Received amount & currency, Fee, TxHash),
a transaction history table for swaps/liquidity/remittance
settlements with a one-click export button, and a mock-backed
useTransactionHistory hook following the existing corridor-metrics
fallback pattern. Export rows are generated via a ReadableStream that
yields between chunks so large histories don't block the UI thread.

Closes StellarFlow-Network#607
@drips-wave

drips-wave Bot commented Aug 1, 2026

Copy link
Copy Markdown

@ogbemercyada-sketch Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

📥 CSV-Export | Tax & Accounting Historical Transaction Exporter

1 participant