Skip to content

feat(dashboard): export the filtered view with more columns - #287

Merged
github-actions[bot] merged 1 commit into
StreamGive:mainfrom
Favourof:feat/csv-filtered-export
Oct 18, 2026
Merged

github-actions[bot] merged 1 commit into
StreamGive:mainfrom
Favourof:feat/csv-filtered-export

Conversation

@Favourof

Copy link
Copy Markdown
Contributor

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

  • In src/lib/csv.ts:
    • Prefixed output with UTF-8 BOM (\uFEFF) for correct character encoding in spreadsheet applications.
    • Added headers and data columns for Stream ID, Rate per second, and Remaining.
    • Formatted remaining duration via formatRemainingDuration.
  • In src/app/dashboard/page.tsx:
    • Updated "Export CSV" button handler to pass filteredStreams instead of all streams, ensuring active status filters (ALL, ACTIVE, CANCELLED) and on-chain stream ID searches are respected.
  • Added tests in:
    • 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 with ACTIVE filter, ALL filter, and stream ID search queries.

How to Test

  1. Run npx vitest run src/lib/csv.test.ts src/app/dashboard/page.test.tsx.
  2. On /dashboard, apply a filter or search and verify that clicking "Export CSV" outputs only the visible streams with all columns formatted.

@vercel

vercel Bot commented Oct 18, 2026

Copy link
Copy Markdown

@Favourof is attempting to deploy a commit to the Ashborne team Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Oct 18, 2026

Copy link
Copy Markdown

@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! 🚀

Learn more about application limits

@github-actions
github-actions Bot merged commit 8a2f420 into StreamGive:main Oct 18, 2026
1 of 3 checks passed
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.

Make the CSV export follow the active filter and include stream id and rate

1 participant