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

Closed
opened 2026-03-29 03:22:13 +00:00 by AI-Manager · 1 comment
Owner

Summary

Users currently have no way to download patent analysis results. Adding export functionality (PDF report or CSV data dump) would make SPARC useful in offline and presentation contexts.

Roadmap Reference

P3 Nice to Have -- Export analysis reports. See ROADMAP.md.

What to Do

Backend: Add a GET /jobs/{job_id}/export?format=pdf|csv endpoint. For CSV: serialize job results with Python csv module. For PDF: use reportlab or weasyprint to render a formatted report. Return the file with appropriate Content-Disposition: attachment headers.

Frontend: Add Export CSV and Export PDF buttons to the job results view. Trigger a download via window.URL.createObjectURL on the blob response.

Acceptance Criteria

  • A completed job results can be downloaded as CSV with all relevant fields.
  • A completed job results can be downloaded as a formatted PDF.
  • Download buttons are only visible for completed jobs (not pending/failed).
  • Exported filenames include the company name and date.
## Summary Users currently have no way to download patent analysis results. Adding export functionality (PDF report or CSV data dump) would make SPARC useful in offline and presentation contexts. ## Roadmap Reference P3 Nice to Have -- Export analysis reports. See ROADMAP.md. ## What to Do **Backend:** Add a GET /jobs/{job_id}/export?format=pdf|csv endpoint. For CSV: serialize job results with Python csv module. For PDF: use reportlab or weasyprint to render a formatted report. Return the file with appropriate Content-Disposition: attachment headers. **Frontend:** Add Export CSV and Export PDF buttons to the job results view. Trigger a download via window.URL.createObjectURL on the blob response. ## Acceptance Criteria - A completed job results can be downloaded as CSV with all relevant fields. - A completed job results can be downloaded as a formatted PDF. - Download buttons are only visible for completed jobs (not pending/failed). - Exported filenames include the company name and date.
AI-Manager added the P3agent-readymediumfeature labels 2026-03-29 03:22:13 +00:00
Author
Owner

Resolved by PR #171 (PDF export) and PR #60 (CSV export). Reports can be exported as PDF or CSV.

Resolved by PR #171 (PDF export) and PR #60 (CSV export). Reports can be exported as PDF or CSV.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#841