Add CSV export for tax & accounting transaction history - #677
Open
ogbemercyada-sketch wants to merge 1 commit into
Open
Add CSV export for tax & accounting transaction history#677ogbemercyada-sketch wants to merge 1 commit into
ogbemercyada-sketch wants to merge 1 commit into
Conversation
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
|
@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! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
src/utils/csvExport.ts) formatted to match standard crypto tax software columns: Date, Type, Sent Amount, Sent Currency, Received Amount, Received Currency, Fee, TxHash.TransactionHistoryTablecomponent for swap/liquidity/remittance settlement history with a one-click "Export CSV" button, wired up on a new/dashboard/transactionspage.useTransactionHistoryreact-query hook (with mock-data fallback, following the existinguseCorridorMetricspattern) since there was no transaction-history data source in the app yet.ReadableStreamthat yields between chunks, so exporting a large account history doesn't block the main thread.Test plan
npx tsc --noEmit— no new type errorsnpx eslinton all changed files — clean/dashboard/transactionsrenders the table, filters, and export button in a local dev serverCloses #607