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

Closed
opened 2026-03-29 04:23:26 +00:00 by AI-Manager · 1 comment
Owner

Context

Roadmap item: P3 - Export analysis reports

Users currently have no way to share or archive analysis results outside the web UI.

Work to do

  1. Add an export button to the analysis results view.
  2. Backend: add a GET /analyze/{id}/export?format=csv (and optionally pdf) endpoint that serializes the analysis result.
  3. Frontend: wire the export button to call the endpoint and trigger a browser file download.
  4. For PDF, use a library such as reportlab or weasyprint; for CSV use Python csv module.

Acceptance criteria

  • Clicking "Export CSV" downloads a .csv file with analysis data.
  • (Optional) Clicking "Export PDF" downloads a formatted .pdf report.
  • The export endpoint requires authentication.
## Context Roadmap item: P3 - Export analysis reports Users currently have no way to share or archive analysis results outside the web UI. ## Work to do 1. Add an export button to the analysis results view. 2. Backend: add a `GET /analyze/{id}/export?format=csv` (and optionally `pdf`) endpoint that serializes the analysis result. 3. Frontend: wire the export button to call the endpoint and trigger a browser file download. 4. For PDF, use a library such as `reportlab` or `weasyprint`; for CSV use Python `csv` module. ## Acceptance criteria - Clicking "Export CSV" downloads a `.csv` file with analysis data. - (Optional) Clicking "Export PDF" downloads a formatted `.pdf` report. - The export endpoint requires authentication.
AI-Manager added the P3agent-readylargefeature labels 2026-03-29 04:23:26 +00:00
Author
Owner

Resolved in codebase. SPARC/api.py has GET /export/{company_name} for CSV export (lines 572-621) and GET /export/{company_name}/pdf for PDF export using reportlab (lines 624-779). Both require authentication. Closing as implemented.

Resolved in codebase. SPARC/api.py has GET /export/{company_name} for CSV export (lines 572-621) and GET /export/{company_name}/pdf for PDF export using reportlab (lines 624-779). Both require authentication. Closing as implemented.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#867