feat: add CSV and PDF export functionality#448
Open
pharwasz wants to merge 5 commits into
Open
Conversation
- Add export button with dropdown (CSV/PDF) on /transactions page - Add export functionality to /admin/analytics and /admin/escrows - CSV export: includes Escrow ID, Status, Amount, Asset, Counterparty, dates - Proper escaping of commas, quotes, and newlines - Respects active filters (event type, date range) - Auto-named: vaultix-transactions-YYYY-MM-DD.csv - PDF export: Vaultix branding, summary stats, tabular data - Auto-named: vaultix-transactions-YYYY-MM-DD.pdf - Date range picker modal before export - Progress indicator and toast notifications - Handles large datasets (>1000 rows) without UI freeze - Unit tests: 15 tests passing (CSV generation, escaping, edge cases)
|
@pharwasz 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! 🚀 |
Author
|
Hello there, waiting for your approval |
Author
|
kindly recheck now |
Author
|
pls check now |
Author
|
Hi there, pls kindly approve workflow |
Author
|
Are you there? |
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.
Closes #408
Summary
Implements export functionality across the transactions and admin pages, allowing users to download transaction data as CSV or PDF files with Vaultix branding.
Changes
New Components
ExportDropdown.tsx— dropdown button with CSV/PDF options and loading stateExportModal.tsx— date range picker modal shown before export beginsNew Libraries
pdf-export.ts— PDF generation with Vaultix branding, summary stats, and tabular datacsv-export.test.ts— 15 unit tests covering CSV generation, escaping, and edge casesPages Updated
/transactions— export button added to page header/admin/analytics— export functionality added/admin/escrows— export functionality addedFeature Details
CSV Export
vaultix-transactions-YYYY-MM-DD.csvPDF Export
vaultix-transactions-YYYY-MM-DD.pdfUX
setTimeoutTesting
Screenshots
Tested locally — export dropdown visible on /transactions, /admin/analytics, and /admin/escrows pages. CSV and PDF downloads verified.
That's the full description, ready to paste into your PR.