feat(tradein-ui): mock-disclaimer + progressive enrichment + UX polish #517

Merged
lekss361 merged 2 commits from feat/tradein-ui-mock-disclaimer-enrichment into main 2026-05-24 12:58:39 +00:00

2 commits

Author SHA1 Message Date
lekss361
81dd103cb4 fix(tradein-ui): replace Tailwind with OKLCH tokens + a11y on disclaimer
Review-bot feedback on #517:
- tradein-mvp/frontend doesn't use Tailwind — classes (rounded-lg, bg-amber-50, …)
  rendered as plain unstyled text. Replace with inline styles using project's
  OKLCH design tokens (--accent-2, --accent-2-soft, --surface-2, --radius, --fg).
- Add role=status aria-live=polite on disclaimer for screen readers
- Move handleResubmit below resultData declaration (ESLint no-use-before-define)
2026-05-24 15:47:40 +03:00
lekss361
765b172cd6 feat(tradein-ui): mock-disclaimer + progressive enrichment + UX polish
- Plaque «адрес распознан неточно» when target_address has 'Склад|Гараж|…'
  prefix or confidence_explanation starts with address_not_geocoded
- Inline form to fill house_type/repair_state if NULL → POST /estimate re-run
- Hide actual_deals section if empty
- 'нет данных' label for est_days_on_market when null

Source: estimate a0a0b820-e8a8-4eee-aa73-0ab3b98ac233 — UI fallouts from
backend roadmap (PR 7 of 8).
2026-05-24 15:23:54 +03:00