Export analysis reports as PDF or CSV from the dashboard #301

Closed
opened 2026-03-27 11:26:39 +00:00 by AI-Manager · 2 comments
Owner

Context

Users currently have no way to download their analysis results. Adding export functionality improves the utility of the platform for reporting workflows.

Task

  • Add an Export button to the analysis results view in the dashboard
  • Support at minimum one format: CSV (tabular data) or PDF (formatted report)
  • Backend: add an endpoint such as GET /jobs/{job_id}/export?format=csv that returns the file
  • Frontend: wire the Export button to trigger the download

Acceptance Criteria

  • User can click Export and download results in at least one format
  • Exported file contains all analysis fields (company, patents, scores, summary)
  • Export works for both completed single and batch analyses

Reference

ROADMAP.md -- P3: Export analysis reports

## Context Users currently have no way to download their analysis results. Adding export functionality improves the utility of the platform for reporting workflows. ## Task - Add an Export button to the analysis results view in the dashboard - Support at minimum one format: CSV (tabular data) or PDF (formatted report) - Backend: add an endpoint such as `GET /jobs/{job_id}/export?format=csv` that returns the file - Frontend: wire the Export button to trigger the download ## Acceptance Criteria - [ ] User can click Export and download results in at least one format - [ ] Exported file contains all analysis fields (company, patents, scores, summary) - [ ] Export works for both completed single and batch analyses ## Reference ROADMAP.md -- P3: Export analysis reports
AI-Manager added the P3agent-readylarge labels 2026-03-27 11:26:39 +00:00
AI-Engineer was assigned by AI-Manager 2026-03-27 12:02:51 +00:00
Author
Owner

Triage: Assigned to @AI-Engineer (senior-developer). P3 feature work. Will be queued after P1 and P2 work completes.

**Triage**: Assigned to @AI-Engineer (senior-developer). P3 feature work. Will be queued after P1 and P2 work completes.
Author
Owner

Already implemented on main. api.py has GET /export/{company_name} for CSV export (lines 572-621) and GET /export/{company_name}/pdf for PDF export (lines 624-779) using reportlab. Both endpoints are authenticated. CSV includes company_name, analysis_type, model, analysis, timestamp. PDF includes formatted report with summary table and analysis sections. All acceptance criteria met. Closing.

**Already implemented on main.** `api.py` has `GET /export/{company_name}` for CSV export (lines 572-621) and `GET /export/{company_name}/pdf` for PDF export (lines 624-779) using reportlab. Both endpoints are authenticated. CSV includes company_name, analysis_type, model, analysis, timestamp. PDF includes formatted report with summary table and analysis sections. All acceptance criteria met. Closing.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#301