Repository navigation
feat(payee): add CSV export for payee lock history (closes #76) - #89
Open
phatloi0010 wants to merge 1 commit into
Open
phatloi0010 wants to merge 1 commit into
phatloi0010 wants to merge 1 commit into
Conversation
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
Fulfills roadmap row
X-05(PAY-6) by implementing a client-side CSV export button on the/payeedashboard, enabling schools and landlords to export their received locks and release history for internal accounting and reconciliation.Closes #76
Changes
lib/csv.ts:formatLocksToCSVhelper formatting locks to RFC-4180 compliant CSV.lock_id,sender_address,total_usdc,released_usdc,unlock_date,status,created_at.fromBaseUnitsfromBigIntbase units.escapeCSVCellfor commas, double quotes, and newlines.downloadCSVusing client-sideBlobURL.components/payee/ExportCSVButton.tsx:app/payee/PayeeView.tsx:ExportCSVButtonin/payeedashboard action bar, passing filtered locks list.messages/en.json:exportCsvmessage key.ROADMAP.md:X-05status fromTODOtoDONE.Last updatedheader and added Changelog entry forfeat/payee-csv-export-76.lib/csv.test.ts: 20 unit tests covering CSV formatting, headers, numeric conversions, escaping, dates, and empty state.components/payee/ExportCSVButton.test.ts: 4 unit tests verifying rendering, click actions, and disabled states.Verification
pnpm lint: PASS (Biome clean, 96 files)pnpm typecheck: PASS (tscclean, 0 errors)pnpm test: PASS (18 test files / 214 tests passing)pnpm build: PASS (Turbopack production build successful)