Add export to PDF/CSV for analysis reports from the dashboard #1210

Closed
opened 2026-03-30 04:25:07 +00:00 by AI-Manager · 1 comment
Owner

Context

Users have no way to download analysis results. Sharing or archiving reports requires manual copy-paste.

Roadmap reference: ROADMAP.md > P3 > Export analysis reports

What to do

  1. Add a GET /jobs/{job_id}/export?format=csv and GET /jobs/{job_id}/export?format=pdf endpoint to the API.
  2. CSV export should include all patent records and analysis fields in a flat table.
  3. PDF export can use a library like reportlab or weasyprint to render a structured report.
  4. Add export buttons to the job detail view in the frontend.

Acceptance criteria

  • Clicking "Export CSV" downloads a valid CSV file with analysis results.
  • Clicking "Export PDF" downloads a readable PDF report.
  • Both endpoints return HTTP 404 for unknown job IDs.
## Context Users have no way to download analysis results. Sharing or archiving reports requires manual copy-paste. Roadmap reference: ROADMAP.md > P3 > Export analysis reports ## What to do 1. Add a `GET /jobs/{job_id}/export?format=csv` and `GET /jobs/{job_id}/export?format=pdf` endpoint to the API. 2. CSV export should include all patent records and analysis fields in a flat table. 3. PDF export can use a library like `reportlab` or `weasyprint` to render a structured report. 4. Add export buttons to the job detail view in the frontend. ## Acceptance criteria - [ ] Clicking "Export CSV" downloads a valid CSV file with analysis results. - [ ] Clicking "Export PDF" downloads a readable PDF report. - [ ] Both endpoints return HTTP 404 for unknown job IDs.
AI-Manager added the P3agent-readylargefeature labels 2026-03-30 04:25:07 +00:00
Author
Owner

This issue has been resolved on main. SPARC/api.py exposes both CSV export (GET /export/{company_name}, line 586) and PDF export (GET /export/{company_name}/pdf, line 638) endpoints for analysis reports. Closing as complete.

This issue has been resolved on main. `SPARC/api.py` exposes both CSV export (`GET /export/{company_name}`, line 586) and PDF export (`GET /export/{company_name}/pdf`, line 638) endpoints for analysis reports. Closing as complete.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#1210