feat(sdp-web): add csv export to dashboard - #962
Conversation
|
@enochakinbode is attempting to deploy a commit to the Solana Foundation Team on Vercel. A member of the Team first needs to authorize it. |
Greptile SummaryAdds filtered transaction CSV exports to the payments dashboard.
Confidence Score: 4/5The PR should not merge until CSV formula neutralization also handles non-ASCII whitespace and invisible formatting characters. Free-form transfer fields reach the CSV serializer, but its first-content-character scan skips only ASCII controls and space; an invisible Unicode prefix can therefore leave a following spreadsheet formula marker active. Files Needing Attention: apps/sdp-web/src/app/api/dashboard/payments/transactions/export/route.ts Important Files Changed
Sequence DiagramsequenceDiagram
participant U as Dashboard user
participant W as Payments workspace
participant E as CSV export route
participant A as SDP API
U->>W: Download filtered transactions
W->>E: GET export with active filters
loop Transfer pages
E->>A: GET /v1/payments/transfers
A-->>E: Transfer data and pagination metadata
end
E-->>W: CSV attachment
W-->>U: Browser download
Reviews (8): Last reviewed commit: "feat: add dashboard transactions CSV exp..." | Re-trigger Greptile |
|
@enochakinbode thanks for this! can you fix CI/CD? |
00e8a99 to
c0c312c
Compare
|
@GuiBibeau done. |
|
@enochakinbode apologies for the runaround on CI. As a first-time contributor from a fork, GitHub holds every workflow run until a maintainer approves it, so nothing had actually executed. I've approved the runs and CI is going now. Pushing more commits was never going to change it, so that's on us, not you. Three things left, and only two of them are yours: 1. Sign your commits. This is the real merge blocker. I'd like you to also consider this optional fix to toughen things up:
Once it's green I'll review. @multipletwigs you're the assignee on #716 and you already agreed the CSV-only scope, so a second pair of eyes from you would be ideal. |
Summary
Adds CSV export support for the dashboard Payments transactions view. Issue: #716
This PR is expected to include both sides of the feature: a dashboard action that lets users download the currently filtered transaction list, and a dashboard API route that generates the CSV from SDP API transfer data. The export preserves the same filters used by the transactions table, fetches paginated results server-side, and returns a downloadable CSV file for reconciliation and audit workflows.
Changes
/api/dashboard/payments/transactions/exportas the dashboard-owned CSV export routemeta.totalandmeta.hasMoreTesting