feat(forecast): expose DOCX & PPTX export buttons (#958) #1121
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#1121
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/forecast-docx-pptx-buttons"
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?
Что
Кнопки «Скачать .docx» (Word) и «Скачать .pptx» (PowerPoint) в
ForecastExportButtonsрядом с существующими .md / .json / Telegram. Backend/forecast/export?format=docx|pptxуже рендерил оба формата — они просто не были доступны из UI.Относится к #958 (EPIC 14: мульти-экспорт прогноза).
Корректность
response.blob()→triggerDownloadпуть — корректно для бинарных zip-based OOXML (никогда.text(), который повредил бы архив). Existing .md/.json уже на blob-пути, latent-corruption риска не было.parcels.py/forecast/export):format=Literal["md","json","tg","docx","pptx"]; docx →application/vnd.openxmlformats-officedocument.wordprocessingml.document, pptx →…presentationml.presentation; not-ready → 404 (не 202) → существующий UI-путь «Отчёт ещё не готов» уже покрывает.cadчерезencodeURIComponent; aria-labels; иконкиFileText/Presentationиз уже подключённогоlucide-react(без новых deps).Качество
npm run buildзелёный, prettier чисто, noany, no console.log, токены, RU. Self-reviewed (полный diff прочитан orchestrator'ом) — изменение тривиальное, без security-поверхности.Тест-план (post-deploy)
/site-finder/analysis/66:41:0702048:27→ Секция 6 → ряд экспорта: 5 кнопок (.md · Telegram · .json · .docx · .pptx); .docx/.pptx скачивают корректно именованные Office-файлы; на участке без прогноза — «Отчёт ещё не готов».