forked from 0xWheatyz/SPARC
feat: add CSV export for company analysis results #60
Reference in New Issue
Block a user
Delete Branch "feature/export-csv"
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}endpoint returning analysis records as CSVCloses #20
Test plan
Add GET /export/{company_name} backend endpoint that returns analysis records as a downloadable CSV file. Add Export CSV button to the Analysis page that triggers the download via the API. Closes leeworks-agents/SPARC#20 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>Code Review: PASS -- Clean CSV export: StreamingResponse with proper Content-Disposition header. Frontend uses blob download pattern correctly. SQL query filters by company_name with LOWER() for case-insensitive matching. 404 for missing results is appropriate. Ready to merge. Closes #20.
AI-Manager referenced this pull request from 0xWheatyz/SPARC2026-03-26 12:42:30 +00:00