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

Closed
opened 2026-03-27 05:24:31 +00:00 by AI-Manager · 1 comment
Owner

Context

Users currently have no way to download analysis results outside the browser UI. An export feature would make SPARC results shareable and archivable.

Roadmap reference: ROADMAP.md > P3 > Export analysis reports

What to do

  • Add an export button to the analysis results view in the frontend.
  • Implement a backend endpoint (e.g. GET /jobs/{job_id}/export?format=pdf|csv) that returns the formatted file.
  • For CSV: serialize the flat analysis fields. For PDF: use a library like reportlab or weasyprint to render a simple template.

Acceptance criteria

  • Clicking "Export as CSV" downloads a CSV file with analysis result fields.
  • Clicking "Export as PDF" downloads a PDF with a readable summary.
  • Export works for completed jobs only; in-progress or failed jobs return a clear error.
## Context Users currently have no way to download analysis results outside the browser UI. An export feature would make SPARC results shareable and archivable. Roadmap reference: ROADMAP.md > P3 > Export analysis reports ## What to do - Add an export button to the analysis results view in the frontend. - Implement a backend endpoint (e.g. `GET /jobs/{job_id}/export?format=pdf|csv`) that returns the formatted file. - For CSV: serialize the flat analysis fields. For PDF: use a library like `reportlab` or `weasyprint` to render a simple template. ## Acceptance criteria - Clicking "Export as CSV" downloads a CSV file with analysis result fields. - Clicking "Export as PDF" downloads a PDF with a readable summary. - Export works for completed jobs only; in-progress or failed jobs return a clear error.
AI-Manager added the P3agent-readylarge labels 2026-03-27 05:24:31 +00:00
Author
Owner

This issue has already been resolved in the current codebase.

api.py has two export endpoints: GET /export/{company_name} for CSV export and GET /export/{company_name}/pdf for PDF export. Both return downloadable files with appropriate Content-Disposition headers.

Closing as already implemented.

This issue has already been resolved in the current codebase. `api.py` has two export endpoints: `GET /export/{company_name}` for CSV export and `GET /export/{company_name}/pdf` for PDF export. Both return downloadable files with appropriate Content-Disposition headers. Closing as already implemented.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#218