feat(site-finder): VelocityBlock в MarketTab (#34 sub-PR 2/2 FINAL) #147

Merged
lekss361 merged 2 commits from feat/34-velocity-block-frontend into main 2026-05-14 22:44:16 +00:00
2 changed files with 7 additions and 5 deletions
Showing only changes of commit c6cabc1990 - Show all commits

View file

@ -177,7 +177,7 @@ export function VelocityBlock({ velocity }: VelocityBlockProps) {
>
<td style={{ padding: "4px 8px" }}>
{c.name ?? `obj#${c.obj_id}`}
{c.class && (
{c.obj_class && (
<span
style={{
marginLeft: 6,
@ -185,7 +185,7 @@ export function VelocityBlock({ velocity }: VelocityBlockProps) {
color: "#9ca3af",
}}
>
{c.class}
{c.obj_class}
</span>
)}
</td>
@ -205,7 +205,7 @@ export function VelocityBlock({ velocity }: VelocityBlockProps) {
fontWeight: 500,
}}
>
{Math.round(c.total_sqm).toLocaleString("ru")}
{Math.round(c.total_sqm_period).toLocaleString("ru")}
</td>
</tr>
))}

View file

@ -208,9 +208,11 @@ export interface Pipeline24mo {
export interface VelocityCompetitor {
obj_id: number;
name: string | null;
class: string | null;
obj_class: string | null;
distance_m: number;
total_sqm: number;
total_sqm_period: number;
dev_name?: string | null;
district_name?: string | null;
}
export interface VelocityPeriod {