-
Notifications
You must be signed in to change notification settings - Fork 27
📄 Issue #41 — Implement Export Reports (PDF/CSV) #70
Description
Harvest Finance will allow users to export their financial and farm activity data as downloadable reports in PDF and CSV formats. Contributors will implement a feature that enables farmers to download summaries of their vault activities, transactions, and seasonal progress.
This feature improves record-keeping, transparency, and usability, especially for farmers who need offline access or reporting.
Objectives
Enable users to export vault and transaction data
Support PDF and CSV formats
Provide downloadable reports from the dashboard
Improve user access to offline data records
Requirements
1️⃣ Export Options
Allow users to export:
Transaction history
Vault deposits and withdrawals
Seasonal progress summary
Achievements (optional)
2️⃣ File Formats
CSV for raw data
PDF for formatted reports
3️⃣ Dashboard Integration
Add “Export” button in dashboard
Allow users to select:
Date range
Type of data to export
4️⃣ UI / UX
Simple and clear export interface
Show loading state during export
Notify user when download is ready
Technical Suggestions
Frontend: React / Next.js
Backend: NestJS
Libraries:
CSV: json2csv
PDF: pdfkit or puppeteer
Generate reports on backend and return downloadable file
Expected Outcome
Users can download reports easily
Reports contain accurate and well-structured data
Feature works smoothly across devices
Acceptance Criteria
Export functionality works for both PDF and CSV
Files download successfully with correct data
UI provides clear export options
No performance issues during report generation