forked from 0xWheatyz/SPARC
Add export feature: download analysis results as PDF or CSV from the dashboard #1281
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Users currently have no way to export analysis results. Exporting to PDF or CSV is a frequently requested capability for sharing findings outside the dashboard.
Roadmap reference: P3 - Export analysis reports
What to do
GET /reports/{job_id}/export?format=pdf|csv) that serialises the analysis result into the requested format.csvmodule; include patent ID, company, scores, and summary fields.reportlaborweasyprintto render a simple report.Acceptance criteria
Triage: Already Implemented
Export endpoints are fully implemented on
main:GET /export/{company_name}returns CSV with analysis results (api.py lines 586-635).GET /export/{company_name}/pdfreturns a formatted PDF report using ReportLab with title, summary table, and individual analysis sections (api.py lines 638-793).get_current_user.reportlabis inrequirements.txt.Closing as completed.