Fix Docker host row dimming for degraded status

Docker hosts with 'degraded' status were incorrectly appearing dimmed
(opacity-60) in the summary table, making them visually identical to
offline hosts. This was confusing because degraded hosts are still
actively reporting - they just have unhealthy containers or >35% of
containers not running.

The isHostOnline function now treats 'degraded' as an online status,
so these rows maintain full opacity. The status badge already provides
visual indication of the degraded state.
This commit is contained in:
rcourtman 2025-11-06 19:11:17 +00:00
parent 586ab3a740
commit 2c3768341a

View file

@ -34,7 +34,7 @@ type SortDirection = 'asc' | 'desc';
const isHostOnline = (host: DockerHost) => {
const status = host.status?.toLowerCase() ?? '';
return status === 'online' || status === 'running' || status === 'healthy';
return status === 'online' || status === 'running' || status === 'healthy' || status === 'degraded';
};
const getDisplayName = (host: DockerHost) => {