Merge pull request #2929 from Safelite/feature/CASH-1706
CASH-1706 | At-a-glance fixes
This commit is contained in:
commit
664ae73cfc
1 changed files with 2 additions and 3 deletions
|
|
@ -723,6 +723,7 @@
|
||||||
isRefreshing = false;
|
isRefreshing = false;
|
||||||
refreshBtn.disabled = false;
|
refreshBtn.disabled = false;
|
||||||
refreshText.textContent = 'Refresh All';
|
refreshText.textContent = 'Refresh All';
|
||||||
|
updateAtAGlanceText();
|
||||||
|
|
||||||
// Hide overlay
|
// Hide overlay
|
||||||
overlay.classList.remove('active');
|
overlay.classList.remove('active');
|
||||||
|
|
@ -761,7 +762,7 @@
|
||||||
|
|
||||||
// Determine overall service status
|
// Determine overall service status
|
||||||
const endpoints = healthData[serviceName].endpoints;
|
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;
|
const totalCount = endpoints.length;
|
||||||
|
|
||||||
if (healthyCount === totalCount) {
|
if (healthyCount === totalCount) {
|
||||||
|
|
@ -771,7 +772,6 @@
|
||||||
} else {
|
} else {
|
||||||
healthData[serviceName].status = 'unhealthy';
|
healthData[serviceName].status = 'unhealthy';
|
||||||
}
|
}
|
||||||
updateAtAGlanceText();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check a single endpoint
|
// Check a single endpoint
|
||||||
|
|
@ -967,7 +967,6 @@
|
||||||
|
|
||||||
// Create microservice element
|
// Create microservice element
|
||||||
function createMicroserviceElement(serviceName, serviceData) {
|
function createMicroserviceElement(serviceName, serviceData) {
|
||||||
console.log(serviceName, serviceData);
|
|
||||||
const serviceEl = document.createElement('div');
|
const serviceEl = document.createElement('div');
|
||||||
serviceEl.className = 'microservice-group';
|
serviceEl.className = 'microservice-group';
|
||||||
serviceEl.id = `service-${serviceName}`;
|
serviceEl.id = `service-${serviceName}`;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue