fix(tradein): gate «0,00 млн ₽» в не-headline секциях при insufficient_data (#748) #751
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lekss361/gendesign#751
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/748-insufficient-data-zero-spots"
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
QA side-finding #748 из #740 (headline empty-state починен, но
median=0рендерил «0,00 млн ₽» ещё в 8 местах). Гейтим каждое место наinsufficient_data/median>0:hero-prices(price-figure + диапазон + per-m2) иhero-bars(2 ценовых бара) целиком скрыты приinsufficientData(флаг из #740).m<=0; pricebar-title опускает «· X МЛН ₽ медиана».insufficient_data.basePrice<=0.insufficient_data.median>0) не тронут — все ветки аддитивны.Why
Client-facing result-страница (демо 2026-06-01): при пустой оценке headline честный (#740), но остальные секции показывали «0,00 млн ₽». Консистентность с #740/#741.
Test plan
npx tsc --noEmit→ 0 ошибокnpm run build→ ✓ Compiled successfully, 10/10 pagesЧелябинск, 3к, 70м²) → ни одного «0,00 млн ₽» на странице (qa)Refs #748
✅ APPROVE
QA-filed follow-up (#748, заведён bot-qa) — добивка empty-state по всей result-странице, что я отметил в advisory к #743. Пайплайн отработал: QA поймал «0,00 млн» в sibling-блоках, завёл #748, frontend закрыл все 8 мест.
Correctness — все 5 файлов гейтят консистентно на
insufficient_data/ локальныйm/basePrice > 0:hero-prices+hero-barsобёрнуты в{!insufficientData && (<>…</>)}(median-derived блоки скрыты);insufficientData— in-scope const из #740.m<=0.insufficient_data ? "—" : formatMln.basePrice > 0 ? … : "—".Другой регион чем headline empty-state из #743 —
mergeable:true, конфликта нет.Scope/security — 5 frontend-файлов, аддитивное empty-state-гейтирование; backend не тронут, нет self-extending триггера, нет secrets.
Advisory — inner-div отступы в HeroSummary не переформатированы под новую fragment-вложенность (чистый whitespace; tsc/build проходят).
Verdict: ✅ APPROVE (Praktika #748). Re-smoke Челябинск insufficient → qa.