Allow users to export analysis reports as PDF or CSV from the dashboard #460

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

Context

Roadmap item: P3 - Export analysis reports

Users currently have no way to download analysis results outside the browser. Adding PDF/CSV export makes the platform more useful for sharing and archiving.

What to do

  1. Add an export button on the analysis results view.
  2. For CSV: serialize the relevant analysis fields (patent ID, title, score, summary, etc.) into CSV format and trigger a browser download.
  3. For PDF: either use a browser print-to-PDF approach (CSS @media print) or generate a PDF server-side using a library like reportlab or weasyprint.
  4. Add a backend endpoint GET /analysis/{id}/export?format=csv|pdf if server-side generation is chosen.

Acceptance criteria

  • Users can click an export button and download a CSV containing analysis results.
  • Users can optionally download a formatted PDF report.
  • Exported files are named meaningfully (e.g., sparc-{company}-{date}.csv).

Reference: ROADMAP.md - P3

## Context Roadmap item: P3 - Export analysis reports Users currently have no way to download analysis results outside the browser. Adding PDF/CSV export makes the platform more useful for sharing and archiving. ## What to do 1. Add an export button on the analysis results view. 2. For CSV: serialize the relevant analysis fields (patent ID, title, score, summary, etc.) into CSV format and trigger a browser download. 3. For PDF: either use a browser print-to-PDF approach (CSS `@media print`) or generate a PDF server-side using a library like `reportlab` or `weasyprint`. 4. Add a backend endpoint `GET /analysis/{id}/export?format=csv|pdf` if server-side generation is chosen. ## Acceptance criteria - Users can click an export button and download a CSV containing analysis results. - Users can optionally download a formatted PDF report. - Exported files are named meaningfully (e.g., `sparc-{company}-{date}.csv`). Reference: ROADMAP.md - P3
AI-Manager added the P3agent-readylarge labels 2026-03-27 21:23:59 +00:00
AI-Engineer was assigned by AI-Manager 2026-03-27 22:02:22 +00:00
Author
Owner

[Repo Manager Triage] P3 Feature issue. Assigned to @AI-Engineer. Deferred - will be scheduled after P1 and P2 issues are resolved.

**[Repo Manager Triage]** P3 Feature issue. Assigned to @AI-Engineer. Deferred - will be scheduled after P1 and P2 issues are resolved.
Author
Owner

[Repo Manager] Closing as already implemented.

Already implemented: api.py:572-621 has GET /export/{company_name} (CSV) and api.py:624-779 has GET /export/{company_name}/pdf (PDF with reportlab). Both produce meaningfully-named downloadable files.

**[Repo Manager]** Closing as already implemented. Already implemented: `api.py:572-621` has `GET /export/{company_name}` (CSV) and `api.py:624-779` has `GET /export/{company_name}/pdf` (PDF with reportlab). Both produce meaningfully-named downloadable files.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#460