Compare commits
No commits in common. "4863e67f27cb3487a5efab686c96a3e42e0bc410" and "69845ddcee1c6b30dfb61ce11d50e358fe2d8270" have entirely different histories.
4863e67f27
...
69845ddcee
3 changed files with 7 additions and 9 deletions
|
|
@ -271,7 +271,7 @@ export function LocationDrawer({ open, onClose }: LocationDrawerProps) {
|
||||||
color: tokens.body2,
|
color: tokens.body2,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Агрегируем объявления (Циан, Я.Недвижимость, Авито, Домклик) и сделки
|
Агрегируем объявления (Циан, Я.Недвижимость, Авито, N1.ru) и сделки
|
||||||
Росреестра по сопоставимым квартирам. Медиана{" "}
|
Росреестра по сопоставимым квартирам. Медиана{" "}
|
||||||
<b style={{ color: tokens.ink2 }}>₽/м²</b> → 3 оценки:{" "}
|
<b style={{ color: tokens.ink2 }}>₽/м²</b> → 3 оценки:{" "}
|
||||||
<b style={{ color: tokens.ink2 }}>
|
<b style={{ color: tokens.ink2 }}>
|
||||||
|
|
|
||||||
|
|
@ -68,8 +68,8 @@ import type {
|
||||||
} from "./types";
|
} from "./types";
|
||||||
import { tokens } from "./tokens";
|
import { tokens } from "./tokens";
|
||||||
|
|
||||||
// Total number of source slots — meta "N / M". Single source of truth is
|
// Total number of source slots in the design (ЦИАН … N1.RU) — meta "N / 7".
|
||||||
// SOURCE_SLOTS.length (defined with the array below as TOTAL_SOURCES).
|
const TOTAL_SOURCES = 7;
|
||||||
|
|
||||||
// ── Composite presentation shapes consumed by the wired components ──────────
|
// ── Composite presentation shapes consumed by the wired components ──────────
|
||||||
// One `data` prop per component; each field keeps its exact ./types shape.
|
// One `data` prop per component; each field keeps its exact ./types shape.
|
||||||
|
|
@ -479,11 +479,9 @@ const SOURCE_SLOTS: ReadonlyArray<{ name: string; keys: string[] }> = [
|
||||||
{ name: "РОСРЕЕСТР", keys: ["rosreestr"] },
|
{ name: "РОСРЕЕСТР", keys: ["rosreestr"] },
|
||||||
{ name: "АВИТО", keys: ["avito", "avito_imv"] },
|
{ name: "АВИТО", keys: ["avito", "avito_imv"] },
|
||||||
{ name: "ДОМКЛИК", keys: ["domklik", "domclick"] },
|
{ name: "ДОМКЛИК", keys: ["domklik", "domclick"] },
|
||||||
|
{ name: "RESTATE", keys: ["restate"] },
|
||||||
|
{ name: "N1.RU", keys: ["n1", "n1ru"] },
|
||||||
];
|
];
|
||||||
// #2081 round2: N1.RU + RESTATE dropped — мёртвые (всегда «нет данных», не
|
|
||||||
// учитываем); Домклик оставлен (живой источник, реально даёт лоты). TOTAL_SOURCES
|
|
||||||
// = единый счётчик «N / M», чтобы плитки, счётчик и текст не расходились.
|
|
||||||
const TOTAL_SOURCES = SOURCE_SLOTS.length;
|
|
||||||
|
|
||||||
function buildSources(e: AggregatedEstimate): SourceCard[] {
|
function buildSources(e: AggregatedEstimate): SourceCard[] {
|
||||||
const counts = new Map<string, number>();
|
const counts = new Map<string, number>();
|
||||||
|
|
|
||||||
|
|
@ -78,8 +78,8 @@ export const tokens = {
|
||||||
|
|
||||||
// Disabled / no-data source card (02 RESULT · inactive source tile, design lines 366-384)
|
// Disabled / no-data source card (02 RESULT · inactive source tile, design lines 366-384)
|
||||||
disabledBorder: "#d8e2ec", // inactive source card edge
|
disabledBorder: "#d8e2ec", // inactive source card edge
|
||||||
disabledValue: "#656b71", // 4.61:1 — "—" no-data value (#2081 C1: was #c2cdd9 1.4:1)
|
disabledValue: "#c2cdd9", // greyed-out "—" count value
|
||||||
disabledLabel: "#636b73", // 4.62:1 — "нет данных" caption (#2081 C1: was #aab7c5 1.7:1)
|
disabledLabel: "#aab7c5", // greyed-out "нет данных" caption
|
||||||
|
|
||||||
// Accent glow (range-marker dot halo, design lines 303/341)
|
// Accent glow (range-marker dot halo, design lines 303/341)
|
||||||
accentGlow: "rgba(46,139,255,.5)",
|
accentGlow: "rgba(46,139,255,.5)",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue