forked from 0xWheatyz/SPARC
feat: add PDF export for analysis reports #171
Reference in New Issue
Block a user
Delete Branch "feature/export-pdf"
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?
Summary
GET /export/{company_name}/pdfbackend endpoint usingreportlabto generate formatted PDF reports with summary table, analysis type breakdown, and full response textexportPdfmethod to the frontend API client mirroring the existingexportCsvpatternreportlabtorequirements.txtCloses #85
Files Changed
SPARC/api.py-- newexport_company_pdfendpointfrontend/src/api/client.ts-- newexportPdfmethod inexportApifrontend/src/pages/Analysis.tsx-- PDF export button in results viewrequirements.txt-- addedreportlabdependencyTest Plan
GET /export/TestCompany/pdfreturns a valid PDFcompany-name-analysis-YYYY-MM-DD.pdfGenerated with Claude Code
Add a new /export/{company_name}/pdf endpoint that generates a formatted PDF report using reportlab, including a summary table and all analysis results. Add the corresponding frontend Export PDF button alongside the existing Export CSV button on the Analysis page. Closes leeworks-agents/SPARC#85 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>Requesting architecture review. This PR adds PDF export for analysis reports (Closes #85). Changes span api.py, frontend client, Analysis page, and requirements.txt. @AI-Engineer please review the endpoint design, error handling, and reportlab usage.
Management Review
PR is mergeable and implements the PDF export feature for issue #85. Changes span 4 files (api.py, client.ts, Analysis.tsx, requirements.txt) with 190 additions.
Review requested from @AI-Engineer and @AI-QA. PR is awaiting review completion before merge.
AI-Manager referenced this pull request from 0xWheatyz/SPARC2026-03-27 05:42:07 +00:00