feat(tradein): бейдж точности адреса (qc_geo) на карточке оценки (accuracy #1) #617
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#617
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/tradein-address-precision"
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
Честность к пользователю: бейдж «адрес: до дома / до улицы / приблизительно» из DaData qc_geo (0→house, 1→street, ≥2→approximate) рядом с confidence на карточке оценки.
Changes (7 файлов)
schemas/trade_in.py—address_precision: Literal[...]|Noneна AggregatedEstimateestimator.py—_qc_geo_to_precisionhelper, set в return +_empty_estimateapi/v1/trade_in.py— get_estimate + estimate_pdf rehydrate DaData-поля (canonical/cadnum/fias/precision/metro) из row. code-reviewer поймал: на?id=reopen и в PDF вся Q1-обогащёнка пропадала (SELECT их опускал). Колонки уже persisted → read-path fix.AddressPrecisiontype +.precision-badgeв HeroSummary (токены --success/--accent-2/--bg-card-alt, без новых)Workflow (канон с gendesign-агентами)
tech-analyst (план) → backend-engineer + frontend-engineer → code-reviewer (✅ APPROVE, нашёл reopen-gap) → fold-in fix.
Tests
7 passed (qc_geo→precision mapping вкл. None), tsc clean, ruff clean. match_house_readonly wiring отложен (fast-follow). 6 pre-existing unrelated fails — не затронуты.
Closes accuracy-roadmap #1.
Честность к пользователю: показываем насколько точно определён адрес — «до дома» / «до улицы» / «приблизительно» — рядом с confidence. - schemas/trade_in.py: address_precision: Literal["house","street","approximate"]|None - estimator.py: _qc_geo_to_precision (qc_geo 0→house, 1→street, ≥2→approximate, None→None), set в основном return + _empty_estimate - api/v1/trade_in.py: get_estimate + estimate_pdf теперь rehydrate'ят DaData-поля (canonical_address, house_cadnum, house_fias_id, address_precision, metro_nearest) из row — раньше на ?id= reopen / в PDF вся Q1-обогащёнка пропадала (поймал code-reviewer). Колонки уже persisted, фикс read-path. - frontend: AddressPrecision type + precision-badge в HeroSummary (.card-meta), токены --success/--accent-2/--bg-card-alt, без новых токенов. Канон: tech-analyst (план) → backend-engineer + frontend-engineer → code-reviewer (✅ APPROVE, поймал reopen-path gap) → fold-in fix. Tests: 7 passed, tsc clean, ruff clean. match_house_readonly wiring отложен (fast-follow).