Skip to content

feat(vuu-utils): add CSV export utilities via session table subscription - #2362

Draft
anandBalachandar wants to merge 2 commits into
finos:mainfrom
anandBalachandar:feat/csv-export-session-table
Draft

feat(vuu-utils): add CSV export utilities via session table subscription#2362
anandBalachandar wants to merge 2 commits into
finos:mainfrom
anandBalachandar:feat/csv-export-session-table

Conversation

@anandBalachandar

@anandBalachandar anandBalachandar commented Aug 30, 2026

Copy link
Copy Markdown
Contributor
  • Adds export-utils.ts to vuu-utils exporting three functions:
    • exportToCsv(dataSource, copyOption, filename, excludeColumns, onError, onSuccess) — creates an "export" session table via createSessionDataSource, then subscribes with a full-range request to drain all rows, serialises to CSV and triggers a browser download
    • exportSessionTableToCsv(sessionDataSource, ...)
    • exportCsvTemplate(dataSource, filename, excludeColumns, columns?)
  • Enforces a MAX_EXPORT_ROWS = 10_000 limit; excess row count is reported via onError callback rather than a synchronous throw (the limit check fires inside the async subscription callback)
  • Internal session columns (vuuMsg, vuuAction, vuuRowNum) are always stripped from output
  • Adds CsvExport.examples.tsx showcase with four examples: export all rows, export selected rows, simple one-button export, and template download (all columns and named subset)

@netlify

netlify Bot commented Aug 30, 2026

Copy link
Copy Markdown

Deploy Preview for papaya-valkyrie-395400 canceled.

Name Link
🔨 Latest commit 9af1715
🔍 Latest deploy log https://app.netlify.com/projects/papaya-valkyrie-395400/deploys/6a94c1e48c3abc00082343fa

Comment thread vuu-ui/packages/vuu-utils/src/export-utils.ts Outdated
…uest

- MAX_EXPORT_ROWS defaults to 10,000 and is overridable per call
- Updated examples
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.

1 participant