From 560fa69a3b429b7891a08dadc8df65830b8fc975 Mon Sep 17 00:00:00 2001 From: andersonid Date: Wed, 1 Oct 2025 15:58:43 -0300 Subject: [PATCH] Add Resource Utilization explanation modal - Add info icon next to Resource Utilization metric - Create showResourceUtilizationDetails() function - Explain placeholder implementation status - Show formula and purpose of Resource Utilization - Indicate Phase 2 implementation plan - Provide clear next steps for development --- app/static/index.html | 61 ++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 57 insertions(+), 4 deletions(-) diff --git a/app/static/index.html b/app/static/index.html index ac6a9fb..b597ec1 100644 --- a/app/static/index.html +++ b/app/static/index.html @@ -873,10 +873,10 @@
-
Namespaces in Overcommit
-
-
-
-
Resource Utilization
-
+
+
-
+
Resource Utilization ℹ️
+
@@ -1807,6 +1807,59 @@ }; } + function showResourceUtilizationDetails() { + const modal = document.createElement('div'); + modal.className = 'modal'; + modal.innerHTML = ` + + `; + document.body.appendChild(modal); + modal.style.display = 'block'; + + // Add close functionality + const closeBtn = modal.querySelector('.close'); + closeBtn.onclick = () => modal.remove(); + + modal.onclick = (e) => { + if (e.target === modal) modal.remove(); + }; + } + function closeModal() { const modals = document.querySelectorAll('.modal'); modals.forEach(modal => modal.remove());