fix(tradein/v2): location coefficient informational + price-history clarity (LOW audit R2 #7c/#8) #2508

Merged
bot-backend merged 1 commit from fix/tradein-v2-location-coef-informational into main 2026-07-12 22:11:09 +00:00
2 changed files with 16 additions and 0 deletions

View file

@ -358,6 +358,19 @@ export function LocationDrawer({
{data.resultLabel}
</span>
</div>
{/* Fix #7c (audit): the estimator never reads this coefficient it's
illustrative/reference only. Without this line the -vs- layout
above reads as if it changes the quoted price. */}
<div
style={{
marginTop: 8,
fontSize: 10.5,
lineHeight: 1.5,
color: tokens.muted3,
}}
>
Справочно: поправка на локацию не влияет на итоговую оценку.
</div>
{data.factors.length > 0 ? (
<ul
style={{

View file

@ -1616,6 +1616,9 @@ const PH_Y_SPAN = PH_Y_BOTTOM - PH_Y_TOP; // 175
export const PH_GRID_Y = [20, 64, 108, 151, 195]; // 5 gridlines, evenly spaced (top → bottom)
// Both polylines are drawn from these source keys; the Y zoom is computed over
// the union of their finite medians so the two series share one axis.
// NB: 'avito_imv'/'yandex_valuation' are scrape-origin discriminators on real
// archived listing rows (house_placement_history), NOT AVM model valuations —
// the card plots median ₽/m² of actual past listings. (LOW audit R2 #8, verified.)
const PH_SERIES_SOURCES = ["avito_imv", "yandex_valuation"];
export function phYearX(i: number, n: number): number {