fix(tradein): восстановленная оценка показывает этаж/площадь, не 0/0 #424
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#424
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/tradein-restore-estimate-params"
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?
Проблема
Оценка, открытая по ссылке (
?id=, из «Истории»), показывала в«Сводке» «ЭТАЖ 0/0, Площадь 0 м²» — параметры целевой квартиры
терялись. Свежая оценка показывала их верно.
Причина
AggregatedEstimateне содержал площадь/этаж/комнаты/год/тип домацелевой квартиры.
HeroSummaryбрал их из формы-инпута (input):у свежей оценки форма заполнена, а при восстановлении по
?id=формы нет → 0/0.
Решение
Параметры проходят сквозь весь стек:
AggregatedEstimate(+ TS-тип) получилиarea_m2,rooms,floor,total_floors,year_built,house_type,repair_state,has_balcony(все optional);estimate_qualityзаполняет их изpayload;get_estimate— из строкиtrade_in_estimates(колонки там ужеесть, в т.ч. у старых оценок);
HeroSummaryчитает изestimateс откатом наinput.Поля optional → конструкция
AggregatedEstimateв PDF-эндпоинте неломается (там параметры и так идут через
input_snapshot). Заодно вTS-тип добавлен пропущенный
est_days_on_market.Найдено визуальным прогоном UI на проде.