fix(site-finder/compare): thread velocityDataAvailable into compare columns (#1422)
Some checks failed
CI / changes (push) Successful in 7s
CI / frontend-tests (push) Successful in 1m4s
CI / changes (pull_request) Successful in 15s
CI / openapi-codegen-check (push) Failing after 2m9s
CI / frontend-tests (pull_request) Successful in 1m12s
CI / openapi-codegen-check (pull_request) Failing after 1m46s
CI / backend-tests (push) Failing after 9m1s
CI / backend-tests (pull_request) Failing after 9m2s

This commit is contained in:
Light1YT 2026-06-15 21:33:10 +05:00
parent 8279b0ee1f
commit 7fd69e90cd

View file

@ -53,6 +53,10 @@ export function ParcelCompareLoader({ cad, onResult }: Props) {
score: a.score ?? null,
scoreLabel: a.score_label ?? null,
velocityScore: a.velocity?.velocity_score ?? null,
// SF#17 / issue #1422: explicit false (конкуренты есть, данных Objective
// нет → velocity_score=0 — sentinel) гасит ячейку и исключает колонку из
// подсветки «лучшее». undefined/null трактуется как «данные есть».
velocityDataAvailable: a.velocity?.velocity_data_available ?? null,
medianPricePerM2: a.district?.median_price_per_m2 ?? null,
pipeline24mo: a.pipeline_24mo?.flats_total ?? null,
confidenceLabel: a.confidence_label ?? null,