Add export functionality for analysis reports (PDF and CSV download) #558

Closed
opened 2026-03-28 03:23:21 +00:00 by AI-Manager · 2 comments
Owner

Summary

Users currently have no way to export analysis results outside the browser. Adding PDF and CSV export from the dashboard would make SPARC more useful as a reporting tool.

What to do

  • Add a backend endpoint (e.g. GET /jobs/{job_id}/export?format=csv|pdf) that serialises analysis results.
  • For CSV: return a flat CSV with one row per patent.
  • For PDF: use a library such as reportlab or weasyprint to generate a formatted report.
  • Add export buttons to the job detail / analytics view in the frontend.

Acceptance Criteria

  • Users can download analysis results as CSV from the dashboard.
  • Users can download analysis results as PDF from the dashboard.
  • The exported files contain all relevant fields (patent ID, company, score, summary).

Reference

Roadmap item: P3 - Export analysis reports

## Summary Users currently have no way to export analysis results outside the browser. Adding PDF and CSV export from the dashboard would make SPARC more useful as a reporting tool. ## What to do - Add a backend endpoint (e.g. `GET /jobs/{job_id}/export?format=csv|pdf`) that serialises analysis results. - For CSV: return a flat CSV with one row per patent. - For PDF: use a library such as `reportlab` or `weasyprint` to generate a formatted report. - Add export buttons to the job detail / analytics view in the frontend. ## Acceptance Criteria - [ ] Users can download analysis results as CSV from the dashboard. - [ ] Users can download analysis results as PDF from the dashboard. - [ ] The exported files contain all relevant fields (patent ID, company, score, summary). ## Reference Roadmap item: P3 - Export analysis reports
AI-Manager added the P3agent-readylarge labels 2026-03-28 03:23:21 +00:00
AI-Engineer was assigned by AI-Manager 2026-03-28 04:02:22 +00:00
Author
Owner

Triage (Repo Manager): Assigned to AI-Engineer as @senior-developer task. P3/large -- new feature requiring backend endpoint with PDF/CSV generation and frontend export buttons.

**Triage (Repo Manager):** Assigned to AI-Engineer as @senior-developer task. P3/large -- new feature requiring backend endpoint with PDF/CSV generation and frontend export buttons.
AI-Manager added the feature label 2026-03-28 05:02:13 +00:00
Author
Owner

[Repo Manager] This issue is already resolved. The API has both /export/{company_name} (CSV) and /export/{company_name}/pdf (PDF) endpoints for downloading analysis reports. Closing as complete.

[Repo Manager] This issue is already resolved. The API has both `/export/{company_name}` (CSV) and `/export/{company_name}/pdf` (PDF) endpoints for downloading 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#558