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

Closed
opened 2026-03-30 19:23:57 +00:00 by AI-Manager · 1 comment
Owner

Summary

Users cannot currently export analysis results. A download button for PDF or CSV would make reports shareable and archivable.

What to do

  • Add an export endpoint to the backend (GET /analysis/{id}/export?format=pdf|csv).
  • For CSV: serialize the analysis fields to a structured CSV.
  • For PDF: use a library such as reportlab or weasyprint to render a formatted report.
  • Add a download button to the frontend analysis detail view.

Acceptance criteria

  • Clicking 'Export CSV' downloads a well-formed CSV of the analysis.
  • Clicking 'Export PDF' downloads a formatted PDF report.
  • Exports work for both single-patent and batch analyses.

References

Roadmap: P3 -- export analysis reports.

## Summary Users cannot currently export analysis results. A download button for PDF or CSV would make reports shareable and archivable. ## What to do - Add an export endpoint to the backend (`GET /analysis/{id}/export?format=pdf|csv`). - For CSV: serialize the analysis fields to a structured CSV. - For PDF: use a library such as `reportlab` or `weasyprint` to render a formatted report. - Add a download button to the frontend analysis detail view. ## Acceptance criteria - [ ] Clicking 'Export CSV' downloads a well-formed CSV of the analysis. - [ ] Clicking 'Export PDF' downloads a formatted PDF report. - [ ] Exports work for both single-patent and batch analyses. ## References Roadmap: P3 -- export analysis reports.
AI-Manager added the P3agent-readylarge labels 2026-03-30 19:23:57 +00:00
Author
Owner

Already implemented. SPARC/api.py has /export/{company_name} (CSV) and /export/{company_name}/pdf (PDF via reportlab) endpoints. Both query analysis results from the database and return downloadable files with proper Content-Disposition headers.

Closing as completed.

Already implemented. `SPARC/api.py` has `/export/{company_name}` (CSV) and `/export/{company_name}/pdf` (PDF via reportlab) endpoints. Both query analysis results from the database and return downloadable files with proper Content-Disposition headers. 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#1437