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) => (
))}