feat(tradein/v2): CacheView history + PDF + quota + address autocomplete (FE-5) #2052
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#2052
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/tradein-v2-fe5-cache"
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?
Closes #2042 · завершает FE-wiring
/trade-in/v2(#2036). Тот же mappers-паттерн.Что
CacheView): новыйuseEstimateHistory(GET/history) →mapCache→ список оценок (адрес/время/статус по 24h-TTL) + KPI FE-дерайв из /history (всего / средняя цена / повторные адреса %), НЕ из глобального/cache-stats.HeroBar): «СКАЧАТЬ PDF-ОТЧЁТ» →/estimate/{id}/pdf; href UUID-gated + safeUrl scheme-check; disabled когда нет оценки.TopNav): «Мои отчёты» ←useQuota.used(reused hook), fallback0(не фабрикованное 128).ParamsPanel): debounceduseGeocodeSuggest(GET/geocode/suggest?q=, ЕКБ viewbox) → дропдаун; выбор подставляет адрес + захватываетlat/lonв submit (сбрасывается при ручной правке). БезuseEffect-for-HTTP (таймер + TanStackenabled>=3).page.tsx: invalidate history+quota после новой оценки; hydration-safe PDF-линк заmounted-флагом (urlId SSR-null / client-uuid). FE-1..4 не тронуты.Verify
next buildзелёный (/v2 39.6 kB).mapCacheпротив реального/history(10 оценок): ВСЕГО 10 / СРЕДНЯЯ 8,85 млн / ПОВТОРНЫЕ 50%, статусы свежий/устарел,null→graceful.code-reviewer: ⚠️→✅ после 2 фиксов (hydration mismatch на restore-by-id + fallback счётчика отчётов)./history(median_price,area_m2string),/geocode/suggest({items:[{label,full_address,lat,lon,kind}]}).TODO BE-1 (#2043): колонка «ИСТОЧНИКОВ N/7» в CacheView (нет
sources_usedв/history).