feat(pdf): move executive summary to top of report

- Reorder PDF sections to place Executive Summary first
- Executive Summary now appears immediately after header
- Added extra spacing between Executive Summary and SWOT sections
- All other sections (Strengths, Weaknesses, Opportunities, Threats) remain in same order

New structure:
1. Header
2. Executive Summary ⬆️ (moved from bottom)
3. SWOT Analysis sections (S, W, O, T)

Improves report readability by presenting key insights first.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-04 21:24:59 -05:00
parent dd2b2e8a33
commit 43a1684f22

View File

@ -298,7 +298,12 @@ class SwotPDFGenerator:
# Header
self._add_header(story)
# Executive Summary (placed first for prominence)
story.append(Spacer(1, 0.2 * inch))
self._add_executive_summary(story)
# SWOT Categories
story.append(Spacer(1, 0.3 * inch))
story.append(Paragraph("SWOT Analysis", self.styles["SectionHeader"]))
story.append(Spacer(1, 0.15 * inch))
@ -318,10 +323,6 @@ class SwotPDFGenerator:
story, "Threats", self.analysis.threats, SWOT_THREAT
)
# Executive Summary
story.append(Spacer(1, 0.2 * inch))
self._add_executive_summary(story)
# Build PDF
doc.build(story)