feat(site-finder): кнопка «Полный отчёт (PDF)» (#2259 PR-E, финал эпика) #2288
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#2288
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/full-report-button"
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?
Что
PR-E, последний кирпич #2259. Общий хук
useFullReport(cad)+ кнопка в двух местах (PticaReports — вместо honest-disabled «скоро», и ExportButtons на светлой странице; логика не дублируется):POST /report: 200 ready (кэш) → мгновенный download; 202 building → TanStack-поллинг status каждые 5с.<a download>— наследует Caddy basic_auth, без отдельно авторизуемого blob-fetch.Попутный фикс: паттерн
reports/из PR-D в .gitignore заякорен в корень (/reports/) — неякоренный молча игнорил бы новые файлы вfrontend/.../ptica/reports/.Проверки
tsc --noEmit 0 ошибок · eslint 0/0 · prettier clean.
Ревью
code-reviewer: ✅ APPROVE; оба optional-полиша применены (NaN-гард даты, сброс при смене cad).
Post-merge
Деплой соберёт образ с новыми geo-deps (первый билд дольше). qa: полный цикл на реальном участке — кнопка → building → ready → PDF скачан и открывается; права /opt/gendesign/reports.
Refs #2259