From bcb579095c2387fb861b851117e6caf9c2ae4112 Mon Sep 17 00:00:00 2001 From: Chris Busillo Date: Thu, 7 May 2026 21:14:11 -0400 Subject: [PATCH] fix(ui): scope config readiness to selected lane --- frontend/src/App.tsx | 2 ++ frontend/src/ProductConfigStatusPanel.tsx | 24 +++++++++++++++++------ 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index cd92605..0064934 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -586,6 +586,7 @@ export function App() { @@ -1390,6 +1391,7 @@ function StateFixtureGallery({
diff --git a/frontend/src/ProductConfigStatusPanel.tsx b/frontend/src/ProductConfigStatusPanel.tsx index 7cffa1c..9834287 100644 --- a/frontend/src/ProductConfigStatusPanel.tsx +++ b/frontend/src/ProductConfigStatusPanel.tsx @@ -14,19 +14,24 @@ import type { export function ProductConfigStatusPanel({ statuses, + selectedEnvironment, loading, error, }: { statuses: ProductEnvironmentConfigStatus[]; + selectedEnvironment: string; loading: boolean; error: string; }) { - const totals = summarizeConfigStatuses(statuses); + const scopedStatuses = selectedEnvironment.trim() + ? statuses.filter((status) => status.environment === selectedEnvironment) + : statuses; + const totals = summarizeConfigStatuses(scopedStatuses); return (
@@ -40,11 +45,18 @@ export function ProductConfigStatusPanel({ {error}
) : null} - {loading && !statuses.length ? : null} - {!loading && !statuses.length && !error ? ( - } title="No expected config status" /> + {loading && !scopedStatuses.length ? : null} + {!loading && !scopedStatuses.length && !error ? ( + } + title={ + selectedEnvironment + ? `No expected config status for ${selectedEnvironment}` + : "No expected config status" + } + /> ) : null} - {statuses.map((status) => ( + {scopedStatuses.map((status) => ( ))}