From 96c29d417999685ef6964c01c3d1057d1f2b8f19 Mon Sep 17 00:00:00 2001 From: andersonid Date: Tue, 30 Sep 2025 13:34:36 -0300 Subject: [PATCH] Fix: Problem Summary table displaying namespace names and pod counts correctly --- app/static/index.html | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/app/static/index.html b/app/static/index.html index b178e42..571ac95 100644 --- a/app/static/index.html +++ b/app/static/index.html @@ -819,14 +819,14 @@ html += ` - ${namespace.name} - ${namespace.pod_count || 0} + ${namespace.namespace} + ${Object.keys(namespace.pods || {}).length} ${namespace.total_validations || 0} ${severity}
- - + +
@@ -838,9 +838,10 @@ // Get highest severity from namespace function getHighestSeverity(namespace) { - if (namespace.critical_issues > 0) return 'critical'; - if (namespace.error_issues > 0) return 'error'; - if (namespace.warning_issues > 0) return 'warning'; + const breakdown = namespace.severity_breakdown || {}; + if (breakdown.error > 0) return 'error'; + if (breakdown.warning > 0) return 'warning'; + if (breakdown.info > 0) return 'info'; return 'info'; }