gendesign/frontend/src/components/site-finder/entry/ParcelLegend.tsx
Light1YT 7cb008c551
All checks were successful
CI / backend-tests (pull_request) Has been skipped
CI / frontend-tests (pull_request) Successful in 57s
CI / changes (pull_request) Successful in 6s
CI / openapi-codegen-check (pull_request) Successful in 1m55s
revert(site-finder): rollback dark entry-landing skin to light
The ПТИЦА dark "operator terminal" skin was applied to the main
/site-finder map page in b3fd053 ("dark Site Finder"), but the
2026-06-21 rollback (#1865) only reverted the analysis route — the
entry-landing stayed dark.

Точечно откатывает 8 файлов entry-landing (page.tsx + 7 entry-компонентов)
до состояния b3fd053~1 и удаляет осиротевший site-finder.module.css.

НЕ трогает: PticaMapInner / ptica.module.css (используются и старым ptica,
и Site Finder v2 cockpit) — карта аналитики остаётся glyph-pin как была.
2026-06-22 11:08:44 +05:00

67 lines
1.6 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use client";
// Status color constants — kept in sync with EntryMap marker colours
export const STATUS_COLORS: Record<string, string> = {
free: "#0A7A3A",
in_progress: "#9A6700",
favorite: "#1D4ED8",
};
export const STATUS_LABELS: Record<string, string> = {
free: "Свободный",
in_progress: "В работе",
favorite: "Избранный",
};
export function ParcelLegend() {
const entries = Object.keys(STATUS_LABELS) as Array<
keyof typeof STATUS_LABELS
>;
return (
<div
style={{
background: "var(--bg-card)",
border: "1px solid var(--border-card)",
borderRadius: 8,
padding: "8px 12px",
display: "flex",
flexDirection: "column",
gap: 6,
minWidth: 148,
}}
>
<span
style={{
fontSize: 11,
fontWeight: 500,
textTransform: "uppercase",
letterSpacing: "0.04em",
color: "var(--fg-secondary)",
}}
>
Статус участка
</span>
{entries.map((status) => (
<div
key={status}
style={{ display: "flex", alignItems: "center", gap: 8 }}
>
<span
style={{
width: 12,
height: 12,
borderRadius: "50%",
background: STATUS_COLORS[status],
flexShrink: 0,
display: "inline-block",
}}
/>
<span style={{ fontSize: 12, color: "var(--fg-primary)" }}>
{STATUS_LABELS[status]}
</span>
</div>
))}
</div>
);
}