Make Daily/Weekly/Monthly Reports Downloadable as CSV/PNG
Is your feature request related to a problem? Please describe. Currently, reports are view-only in CCSync. Users cannot download them for sharing, analysis, or offline storage, which limits usability for reporting purposes.
Describe the solution you'd like
- Allow users to download Daily, Weekly, and Monthly reports:
- CSV for spreadsheet-friendly data.
- PNG for graphical snapshots of charts or visual reports.
Describe alternatives you've considered
- Taking screenshots manually (inefficient).
- Copy-pasting tables to Excel (time-consuming and error-prone).
Additional context Consider using existing libraries for PNG generation and native CSV export from table data.
@its-me-abhishek could please assign this to me?
Hi team! 👋
I would like to express my interest in working on this feature request and would like to share my proposed technical approach:
Implementation Approach
-
CSV Export Implementation
- Create a data formatting service for report data serialization
- Implement dedicated endpoints for daily/weekly/monthly exports
- Use CSV library for proper data formatting and downloads
-
PNG Export for Charts
- Implement client-side chart capture using HTML Canvas API
- Add download functionality for visual reports
- Ensure high-quality image exports
-
Frontend Integration
- Add download buttons with proper UI/UX considerations
- Implement progress indicators for large exports
- Add user feedback and tooltips
@its-me-abhishek Could you please review my approach and consider assigning this issue to me if it aligns with the project's vision?
Thank you!
The PNG Part looks okay to me, can consider working on something similar to Task export button we have as of now (Clicking on it lets you choose the type)
Now, For:
CSV Export Implementation Create a data formatting service for report data serialization Implement dedicated endpoints for daily/weekly/monthly exports Use CSV library for proper data formatting and downloads
Please do consider Only Frontend side or Client Side processing (functions to turn existing JSON to Report and finally to a CSV) as adding new endpoints for backend will end up adding unnecessary requests to the backend.
@its-me-abhishek Okay will update you by EOD