feat(prospecting): add security audit report generation (Workstream 2B)
- SecurityReportService generates standalone branded HTML reports from
stored audit data (grade badge, simulated hacked site, detailed
findings, business impact, call-to-action with contact info)
- GET /security-audit/report/{prospect_id} returns HTMLResponse
- "Generate Report" button on prospect detail security tab opens
report in new browser tab (printable to PDF)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -201,8 +201,13 @@
|
||||
|
||||
<!-- Tab: Security -->
|
||||
<div x-show="activeTab === 'security'" class="space-y-6">
|
||||
<!-- Run Audit button -->
|
||||
<div class="flex justify-end">
|
||||
<!-- Action buttons -->
|
||||
<div class="flex justify-end gap-3">
|
||||
<button type="button" x-show="prospect.security_audit" @click="openSecurityReport()"
|
||||
class="inline-flex items-center px-4 py-2 text-sm font-medium leading-5 text-white transition-colors duration-150 bg-purple-600 border border-transparent rounded-lg hover:bg-purple-700 focus:outline-none">
|
||||
<span x-html="$icon('document-text', 'w-4 h-4 mr-2')"></span>
|
||||
Generate Report
|
||||
</button>
|
||||
<button type="button" @click="runSecurityAudit()" :disabled="auditRunning"
|
||||
class="inline-flex items-center px-4 py-2 text-sm font-medium leading-5 text-white transition-colors duration-150 bg-yellow-600 border border-transparent rounded-lg hover:bg-yellow-700 focus:outline-none disabled:opacity-50">
|
||||
<span x-show="!auditRunning" x-html="$icon('shield-check', 'w-4 h-4 mr-2')"></span>
|
||||
|
||||
Reference in New Issue
Block a user