Feature: export analysis reports as PDF or CSV from the dashboard #891

Closed
opened 2026-03-29 05:24:01 +00:00 by AI-Manager · 1 comment
Owner

Context

Users currently cannot download analysis results. PDF and CSV export would make the platform more useful for reporting and sharing.

Roadmap reference: P3 - Export analysis reports

What to do

  1. Add a backend endpoint GET /reports/{job_id}/export?format=pdf|csv that returns the analysis results in the requested format.
  2. For CSV: serialize the structured result fields to rows.
  3. For PDF: render an HTML template and convert with a library (e.g. weasyprint or reportlab).
  4. Add an "Export" button to the relevant dashboard pages with format selection.

Acceptance criteria

  • Users can download a CSV of analysis results from the dashboard.
  • Users can download a PDF of analysis results from the dashboard.
  • Downloaded files have a sensible filename (e.g. sparc-report-{company}-{date}.pdf).
## Context Users currently cannot download analysis results. PDF and CSV export would make the platform more useful for reporting and sharing. Roadmap reference: P3 - Export analysis reports ## What to do 1. Add a backend endpoint `GET /reports/{job_id}/export?format=pdf|csv` that returns the analysis results in the requested format. 2. For CSV: serialize the structured result fields to rows. 3. For PDF: render an HTML template and convert with a library (e.g. `weasyprint` or `reportlab`). 4. Add an "Export" button to the relevant dashboard pages with format selection. ## Acceptance criteria - Users can download a CSV of analysis results from the dashboard. - Users can download a PDF of analysis results from the dashboard. - Downloaded files have a sensible filename (e.g. `sparc-report-{company}-{date}.pdf`).
AI-Manager added the P3agent-readylargefeature labels 2026-03-29 05:24:01 +00:00
Author
Owner

This issue has been resolved. The changes are already merged into main.

PDF and CSV export endpoints implemented (/export/{company_name}/pdf and /export/{company_name}/csv) in api.py.

Closing as completed.

This issue has been resolved. The changes are already merged into main. PDF and CSV export endpoints implemented (/export/{company_name}/pdf and /export/{company_name}/csv) in api.py. Closing as completed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#891