fix(export): недостающая §13.7 «Уверенность» в PDF-экспортёре отчёта (#2445-C2) #2456
No reviewers
Labels
No labels
admin
analytics
auth
automation
bug
business
chore
ci
compliance
data
data-moat
docs
duplicate
dx
enhancement
Fable 5 ревью
feedback/max
generative
GG-форсайт
needs-discussion
needs-human
observability
pause-bots
performance
priority/p0
priority/p1
priority/p2
priority/p3
scope/backend
scope/db
scope/devops
scope/frontend
scope/qa
scrapers
security
site-finder
stage/1
stage/2
status/blocked
status/done
status/needs-analysis
status/needs-fix
status/qa
status/ready
status/review
status/wip
tech-debt
tradein
ux
week ревью 1
wontfix
вторичка
ИРД
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lekss361/gendesign#2456
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/report-pdf-confidence-section"
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
Аудит-находка C2 (epic #2445).
report_pdf.py— единственный экспортёр (vsreport_docx.py§22.7,report_md.py§13.7) без выделенной секции «Уверенность» с разбивкой факторов. Его старый тонкий 2-row dump в «Сводке» не обрабатывал dict-образные factor-payload'ы защищённо → мог криво рендерить/падать на dict-факторе (которые реально бывают в проде — mixed dict/flat).Fix
Портирован
_build_confidence(4-колоночная таблица Фактор/Значение/Уровень/Комментарий,isinstance(dict)ветка 1:1 из docx/md), зарегистрирован последним в_SECTION_BUILDERS. Footer перенесён в него (рендерится ровно раз в конце — проверено на пустом confidence: 1 footer, секция есть). Убрано дублирование из «Сводки» (остался только badge «Общая уверенность», как в docx/md). HTML-эскейпинг факторов через_esc(XSS-safe — проверено с<script>).Test plan
TestConfidenceSectionParity: dict-factor рендер без краша, 4 колонки, no-duplication, WeasyPrint end-to-end)Refs #2445