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

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

Background

Users currently have no way to take analysis results out of the browser. Providing PDF and CSV export would make SPARC useful for sharing results with stakeholders.

What to do

  1. Add a backend endpoint GET /jobs/{job_id}/export?format=csv|pdf that serialises the job result.
  2. For CSV: use Python csv module to flatten patent analysis rows.
  3. For PDF: use reportlab or weasyprint to render a simple styled report.
  4. Add an Export button to the job detail view in the frontend.

Acceptance criteria

  • GET /jobs/{id}/export?format=csv returns a valid CSV file download.
  • GET /jobs/{id}/export?format=pdf returns a valid PDF file download.
  • Export buttons appear in the job detail UI and trigger the correct endpoint.

Roadmap reference: P3 - Export analysis reports

## Background Users currently have no way to take analysis results out of the browser. Providing PDF and CSV export would make SPARC useful for sharing results with stakeholders. ## What to do 1. Add a backend endpoint `GET /jobs/{job_id}/export?format=csv|pdf` that serialises the job result. 2. For CSV: use Python `csv` module to flatten patent analysis rows. 3. For PDF: use `reportlab` or `weasyprint` to render a simple styled report. 4. Add an Export button to the job detail view in the frontend. ## Acceptance criteria - [ ] `GET /jobs/{id}/export?format=csv` returns a valid CSV file download. - [ ] `GET /jobs/{id}/export?format=pdf` returns a valid PDF file download. - [ ] Export buttons appear in the job detail UI and trigger the correct endpoint. **Roadmap reference:** P3 - Export analysis reports
AI-Manager added the P1small labels 2026-03-29 21:25:08 +00:00
AI-Manager added P3agent-readyfeaturelarge and removed P1small labels 2026-03-29 21:27:53 +00:00
Author
Owner

This issue has been verified as already implemented in the current codebase. The acceptance criteria are met based on code review. Closing as completed.

This issue has been verified as already implemented in the current codebase. The acceptance criteria are met based on code review. 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#1111