Description
Issuers need to export investor lists and dividend distribution history as CSV files for record-keeping and reporting.
Requirements
- Add "Export CSV" button to the Investors page header
- Add "Export CSV" button to the Dividends page header
- CSV must include all visible columns from the table
- For investors: name, address, email, KYC status, whitelisted, balance, tokens held, last activity
- For dividends: asset name, amount, per share, recipients, date, status
- Use the browser native Blob/URL.createObjectURL approach (no extra dependencies)
- Show a toast notification on successful export
Relevant files
src/pages/investors.tsx
src/pages/dividends.tsx
src/lib/utils.ts (add CSV generation helpers)
Complexity: High (200 pts)
Involves building reusable CSV generation utilities, adding export buttons with loading states, and integrating with the toast system.
Description
Issuers need to export investor lists and dividend distribution history as CSV files for record-keeping and reporting.
Requirements
Relevant files
src/pages/investors.tsxsrc/pages/dividends.tsxsrc/lib/utils.ts(add CSV generation helpers)Complexity: High (200 pts)
Involves building reusable CSV generation utilities, adding export buttons with loading states, and integrating with the toast system.