Repository navigation
feat(dashboard): export the filtered view with more columns - #287
Merged
github-actions[bot] merged 1 commit intoOct 18, 2026
Merged
Conversation
|
@Favourof is attempting to deploy a commit to the Ashborne team Team on Vercel. A member of the Team first needs to authorize it. |
|
@Favourof 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! 🚀 |
2 tasks
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.
Description
close #238.
The dashboard's "Export CSV" button previously exported the entire stream history regardless of active filters or search input. Additionally, the export was missing Stream ID, Rate per second, and Remaining duration columns, and lacked a UTF-8 BOM, causing Excel to corrupt non-ASCII NGO names.
This PR updates the export to adhere to active filtering and expands the export columns with UTF-8 BOM encoding.
Changes
src/lib/csv.ts:\uFEFF) for correct character encoding in spreadsheet applications.Stream ID,Rate per second, andRemaining.formatRemainingDuration.src/app/dashboard/page.tsx:filteredStreamsinstead of allstreams, ensuring active status filters (ALL,ACTIVE,CANCELLED) and on-chain stream ID searches are respected.src/lib/csv.test.ts: Added tests verifying UTF-8 BOM prefix, non-ASCII characters, and new column rows.src/app/dashboard/page.test.tsx: Added tests verifying CSV export withACTIVEfilter,ALLfilter, and stream ID search queries.How to Test
npx vitest run src/lib/csv.test.ts src/app/dashboard/page.test.tsx./dashboard, apply a filter or search and verify that clicking "Export CSV" outputs only the visible streams with all columns formatted.