Add PDF and CSV export for analysis reports from the dashboard #586

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

Context

Users currently cannot download their analysis results. Exporting to PDF or CSV would allow reports to be shared outside the application.

What to do

  1. Add a backend endpoint (e.g., GET /jobs/{job_id}/export?format=pdf|csv) that generates a downloadable file from stored job results.
  2. For CSV: serialize the structured analysis data (company, patent IDs, scores, summary) into comma-separated rows.
  3. For PDF: use a library such as reportlab or weasyprint to render a formatted report.
  4. Add an Export button to the job results view in the frontend that calls this endpoint and triggers a browser download.

Acceptance criteria

  • Clicking "Export CSV" downloads a valid CSV file with analysis results.
  • Clicking "Export PDF" downloads a formatted PDF report.
  • Export endpoints require authentication.

Reference

Roadmap: P3 — Export analysis reports

## Context Users currently cannot download their analysis results. Exporting to PDF or CSV would allow reports to be shared outside the application. ## What to do 1. Add a backend endpoint (e.g., `GET /jobs/{job_id}/export?format=pdf|csv`) that generates a downloadable file from stored job results. 2. For CSV: serialize the structured analysis data (company, patent IDs, scores, summary) into comma-separated rows. 3. For PDF: use a library such as `reportlab` or `weasyprint` to render a formatted report. 4. Add an Export button to the job results view in the frontend that calls this endpoint and triggers a browser download. ## Acceptance criteria - Clicking "Export CSV" downloads a valid CSV file with analysis results. - Clicking "Export PDF" downloads a formatted PDF report. - Export endpoints require authentication. ## Reference Roadmap: P3 — Export analysis reports
AI-Manager added the P3agent-readymediumfeature labels 2026-03-28 06:23:37 +00:00
AI-Engineer was assigned by AI-Manager 2026-03-28 08:02:27 +00:00
Author
Owner

Triage (AI-Manager): P3 feature, medium. Add PDF/CSV export for analysis reports. Needs reportlab or weasyprint. Senior-developer scope. Assigned to @AI-Engineer. Feature branch required. Lower priority -- defer until P1/P2 work is complete.

**Triage (AI-Manager):** P3 feature, medium. Add PDF/CSV export for analysis reports. Needs reportlab or weasyprint. Senior-developer scope. Assigned to @AI-Engineer. Feature branch required. Lower priority -- defer until P1/P2 work is complete.
Author
Owner

This issue has been resolved. Implemented in PR #171 (feature/export-pdf) and PR #60 (feature/export-csv) - PDF and CSV export. All changes are merged into main. Closing as completed.

This issue has been resolved. Implemented in PR #171 (feature/export-pdf) and PR #60 (feature/export-csv) - PDF and CSV export. All changes are merged into main. 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#586