diff --git a/app/static/index.html b/app/static/index.html index f697654..6a63f2b 100644 --- a/app/static/index.html +++ b/app/static/index.html @@ -1720,6 +1720,16 @@ // Global variables let currentData = null; let currentSection = 'workload-scanner'; + let loadingState = { + dashboard: false, + charts: { + resourceUtilization: false, + namespaceDistribution: false, + issuesTimeline: false, + topWorkloads: false, + overcommitByNamespace: false + } + }; // Initialize the application document.addEventListener('DOMContentLoaded', function() { @@ -1733,6 +1743,52 @@ // Load initial data loadWorkloadScanner(); } + + // Loading Functions + function showLoadingOverlay(containerId, message = 'Loading...') { + const container = document.getElementById(containerId); + if (!container) return; + + const loadingHTML = ` +
Please wait while we analyze your cluster resources...
+${message}
+