diff --git a/frontend/src/components/site-finder/OverviewTab.tsx b/frontend/src/components/site-finder/OverviewTab.tsx index 1d54de5f..595a6e51 100644 --- a/frontend/src/components/site-finder/OverviewTab.tsx +++ b/frontend/src/components/site-finder/OverviewTab.tsx @@ -103,6 +103,100 @@ export function OverviewTab({ data, onIsochronesResult }: Props) { )} + {/* B5 EGRN compact (added 2026-05-18 — expose new field в legacy Обзор) */} + {data.egrn && ( +
+ ЕГРН +
+ {data.egrn.address && ( +
+ Адрес: {data.egrn.address} +
+ )} + {data.egrn.permitted_use_text && ( +
+ ВРИ: {data.egrn.permitted_use_text} +
+ )} + {data.egrn.land_category && ( +
+ Категория: {data.egrn.land_category} +
+ )} + {data.egrn.parcel_status && ( +
+ Статус: {data.egrn.parcel_status} +
+ )} + {data.egrn.right_type && ( +
+ Право: {data.egrn.right_type} +
+ )} +
+
+ )} + + {/* B5 Utilities summary (added 2026-05-18 — expose new field в legacy Обзор) */} + {data.utilities && + Array.isArray(data.utilities.summary) && + data.utilities.summary.length > 0 && ( +
+ Сети рядом +
+ {data.utilities.summary + .map((u) => { + const label = + u.subtype === "substation" + ? "электричество" + : u.subtype === "power_line" + ? "ЛЭП" + : u.subtype === "pipeline" + ? "газ" + : u.subtype === "water_intake" + ? "вода" + : u.subtype === "pumping_station" + ? "канализация" + : u.subtype; + return `${label} ${u.nearest_m} м`; + }) + .join(" · ")} +
+ {data.utilities.power_line_охранная_зона_flag && ( +
+ ⚠ Охранная зона ЛЭП — капитальное строительство запрещено +
+ )} +
+ )} + {/* Tram warning */} {nearestTram !== null && (
; + power_line_охранная_зона_flag?: boolean; + note?: string | null; + } | null; } export type PoiCategory =