feat(site-finder): forecast Section 6 (прогноз/сценарии/confidence) на экране анализа (#998) #1071
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#1071
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/forecast-section-998"
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?
Что
Новая Секция 6 на экране анализа (
/site-finder/analysis/[cad]) — рендер §22-форсайта (future_market/scenarios/confidence) из SiteFinderReport. Зеркалит паттерн Section1-5, поллитGET /parcels/{cad}/forecast(202 pending → 200 ready) через TanStack Query.Closes #998 (958-B3). Часть EPIC #958. Зависимости 955-A2/A4 (backend §13) — уже в main.
Содержимое
forecasts_by_horizon: индекс дефицита (цвет по знаку: >0 недонасыщенность=зелёный «строить», <0 затоварка=красный), месяцы предложения (MOI), прогноз спроса/предложения, ставка, фраза чувствительности к ставке.rate_path).confidence.factors, DoD), advisory-дисклеймер.Решения
ForecastTab/ScenarioTab(написан 2026-06-02 под legacy tab-UI под/legacy/). Текущий UI — section-based, поэтому реализовано как Section 6, не таб. Legacy не тронут.types/forecast.ts) выверены против РЕАЛЬНОГО прод-отчёта (run #68); он же закоммичен фикстуройparcel-forecast.json.Качество
code-reviewer: ✅ APPROVE — контракт точен (типы сверены с фикстурой), поллинг корректен (стоп на ready), семантика дефицита не инвертирована, robustness (null/empty/advisory_capped-guard) ок.npm run build— зелёный (tsc + lint чисто, 19/19 страниц). Без новых зависимостей, без codegen (backend не менялся).Тест-план (post-deploy)
/site-finder/analysis/66:41:0702048:27→ Секция 6: 4 горизонта, 3 сценария, confidence=низкая + факторы.Renders the §22 SiteFinderReport (future_market/scenarios/confidence) as a new Section 6 on the modern analysis page (/site-finder/analysis/[cad]), mirroring the Section1-5 pattern. Polls GET /parcels/{cad}/forecast (202 pending → 200 ready) via TanStack Query. Render-only (horizon selector = separate #996). - 6.1 прогноз по горизонтам (deficit_index, MOI, demand/supply, ставка) - 6.2 сценарии base/aggressive/conservative + rate_path - 6.3 уверенность: level pill + явный список drivers (confidence.factors) - types/forecast.ts typed against real prod report; fixture parcel-forecast.json (run #68) - reuses design tokens + Badge/KpiCard; advisory disclaimer always shown Part of EPIC #958. Deps 955-A2/A4 (backend §13, merged).