From 0c55b259196e5ff3e3699ae1d22c4bf508accfb5 Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Tue, 6 Aug 2024 09:16:18 +0200 Subject: [PATCH] Show a gray health ring for empty pools Signed-off-by: Julius Volz --- .../mantine-ui/src/pages/targets/ScrapePoolsList.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/web/ui/mantine-ui/src/pages/targets/ScrapePoolsList.tsx b/web/ui/mantine-ui/src/pages/targets/ScrapePoolsList.tsx index 77261803f..66e8f0e95 100644 --- a/web/ui/mantine-ui/src/pages/targets/ScrapePoolsList.tsx +++ b/web/ui/mantine-ui/src/pages/targets/ScrapePoolsList.tsx @@ -236,14 +236,16 @@ const ScrapePoolList: FC = ({ value: (pool.upCount / pool.count) * 100, color: "green.4", }, - { - value: (pool.downCount / pool.count) * 100, - color: "red.5", - }, + // Important that gray is the middle one, since the middle one seems to be + // the default color if all three values are 0 (empty pool = gray). { value: (pool.unknownCount / pool.count) * 100, color: "gray.4", }, + { + value: (pool.downCount / pool.count) * 100, + color: "red.5", + }, ]} />