From 2cdfa2cb13dbea95bb1a97e5140401ccd2c00a6c Mon Sep 17 00:00:00 2001 From: Denozordec Date: Wed, 30 Sep 2026 23:27:14 +0700 Subject: [PATCH] =?UTF-8?q?fix(ui):=20=D0=BD=D0=B5=20=D0=BF=D0=BE=D0=B4?= =?UTF-8?q?=D0=BC=D0=B5=D0=BD=D1=8F=D1=82=D1=8C=20=D0=BD=D0=B5=D0=B8=D0=B7?= =?UTF-8?q?=D0=B2=D0=B5=D1=81=D1=82=D0=BD=D1=8B=D0=B9=20=D0=B8=D0=BD=D0=B4?= =?UTF-8?q?=D0=B5=D0=BA=D1=81=20=D0=BC=D0=B0=D1=80=D1=88=D1=80=D1=83=D1=82?= =?UTF-8?q?=D0=B0=20=D0=BD=D1=83=D0=BB=D1=91=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../route-optimizer-comm-recs-data-grid.tsx | 11 ++++++----- docs/ux-ui-progress.md | 8 +++++++- docs/ux-ui-stage-10.md | 4 ++++ lib/route-optimizer-data.ts | 4 ++-- lib/route-optimizer-response.test.ts | 9 +++++++++ tests/e2e/route-optimizer-tables.spec.ts | 14 ++++++++++++-- 6 files changed, 40 insertions(+), 10 deletions(-) diff --git a/components/data-grids/route-optimizer-comm-recs-data-grid.tsx b/components/data-grids/route-optimizer-comm-recs-data-grid.tsx index 01805bdd..7696cf19 100644 --- a/components/data-grids/route-optimizer-comm-recs-data-grid.tsx +++ b/components/data-grids/route-optimizer-comm-recs-data-grid.tsx @@ -32,7 +32,8 @@ function Chip({ children, color }: { children: React.ReactNode; color?: string } ) } -function ProbChip({ prob, best }: { prob: number; best?: boolean }) { +function ProbChip({ prob, best }: { prob: number | null; best?: boolean }) { + if (prob === null) return — return ( {r.recommended.jh}