Merge pull request #2929 from Safelite/feature/CASH-1706

CASH-1706 | At-a-glance fixes
This commit is contained in:
scottkiener-at-safelite 2025-11-04 11:12:29 -05:00 committed by GitHub
commit 664ae73cfc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -723,6 +723,7 @@
isRefreshing = false;
refreshBtn.disabled = false;
refreshText.textContent = 'Refresh All';
updateAtAGlanceText();
// Hide overlay
overlay.classList.remove('active');
@ -761,7 +762,7 @@
// Determine overall service status
const endpoints = healthData[serviceName].endpoints;
const healthyCount = endpoints.filter(ep => ep.statusCode >= 200 && ep.statusCode < 400).length;
const healthyCount = endpoints.filter(ep => !isDegraded(ep) && !isUnhealthy(ep)).length;
const totalCount = endpoints.length;
if (healthyCount === totalCount) {
@ -771,7 +772,6 @@
} else {
healthData[serviceName].status = 'unhealthy';
}
updateAtAGlanceText();
}
// Check a single endpoint
@ -967,7 +967,6 @@
// Create microservice element
function createMicroserviceElement(serviceName, serviceData) {
console.log(serviceName, serviceData);
const serviceEl = document.createElement('div');
serviceEl.className = 'microservice-group';
serviceEl.id = `service-${serviceName}`;