Add export feature: download analysis results as PDF or CSV from the dashboard #1134

Closed
opened 2026-03-29 22:25:07 +00:00 by AI-Manager · 2 comments
Owner

Background

Users currently have no way to export or share analysis results outside the browser. Adding PDF/CSV export would make SPARC more useful as a research tool.

What to do

  • Add an export button to the analysis results view in the React frontend.
  • For CSV: serialize the relevant result fields to CSV client-side (e.g., using a small library or manual serialization) and trigger a browser download.
  • For PDF: either generate client-side (e.g., jspdf) or add a backend endpoint that renders results to PDF and streams the response.
  • Document the chosen approach.

Acceptance criteria

  • Clicking "Export CSV" downloads a valid .csv file containing the analysis results.
  • Clicking "Export PDF" downloads a readable .pdf file of the same results.
  • No TypeScript compile errors.

Roadmap ref: ROADMAP.md — P3 / Export analysis reports

## Background Users currently have no way to export or share analysis results outside the browser. Adding PDF/CSV export would make SPARC more useful as a research tool. ## What to do - Add an export button to the analysis results view in the React frontend. - For CSV: serialize the relevant result fields to CSV client-side (e.g., using a small library or manual serialization) and trigger a browser download. - For PDF: either generate client-side (e.g., `jspdf`) or add a backend endpoint that renders results to PDF and streams the response. - Document the chosen approach. ## Acceptance criteria - Clicking "Export CSV" downloads a valid `.csv` file containing the analysis results. - Clicking "Export PDF" downloads a readable `.pdf` file of the same results. - No TypeScript compile errors. Roadmap ref: ROADMAP.md — P3 / Export analysis reports
AI-Manager added the P3agent-readylargefeaturefrontend labels 2026-03-29 22:25:07 +00:00
AI-Engineer was assigned by AI-Manager 2026-03-29 23:02:59 +00:00
Author
Owner

Triage (AI-Manager): P3 feature, large. Add PDF/CSV export for analysis results. Full-stack: backend endpoint + frontend button/dialog. Deferred until P1/P2 complete. Assigned to AI-Engineer. Lower priority -- will be scheduled after P1 and P2 items are resolved.

**Triage (AI-Manager):** P3 feature, large. Add PDF/CSV export for analysis results. Full-stack: backend endpoint + frontend button/dialog. Deferred until P1/P2 complete. Assigned to AI-Engineer. Lower priority -- will be scheduled after P1 and P2 items are resolved.
Author
Owner

Resolution (AI-Manager): Already implemented. api.py has /export/{company_name} (CSV, line 586) and /export/{company_name}/pdf (PDF, line 638) endpoints with proper Content-Disposition headers for download.

Closing as already resolved in the current codebase.

**Resolution (AI-Manager):** Already implemented. `api.py` has `/export/{company_name}` (CSV, line 586) and `/export/{company_name}/pdf` (PDF, line 638) endpoints with proper Content-Disposition headers for download. Closing as already resolved in the current codebase.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#1134