From cab43ba2b374c6e721b8862b0eefa8e96456d650 Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Fri, 19 Dec 2025 17:12:04 -0300 Subject: [PATCH] Normalize tabs in metric notes for display --- frontend/src/views/HomeView.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/HomeView.vue b/frontend/src/views/HomeView.vue index a9b776d..f63a12f 100644 --- a/frontend/src/views/HomeView.vue +++ b/frontend/src/views/HomeView.vue @@ -99,12 +99,16 @@ const atlasPillClass = computed(() => (props.labStatus?.atlas?.up ? "pill-ok" : const oceanusPillClass = computed(() => (props.labStatus?.oceanus?.up ? "pill-ok" : "pill-bad")); const metricItems = computed(() => { - return [ - { label: "Lab nodes", value: "25", note: "26 total (titan-16 is down)\nWorkers: 8 rpi5, 7 rpi4, 2 jetsons, 1 minipc\nControl plane: 3 rpi5\nDedicated: titan-db, oceanus, tethys, theia" }, + const items = [ + { label: "Lab nodes", value: "25", note: "26 total (titan-16 is down)\nWorkers: 8 rpi5s, 8 rpi4s, 2 jetsons,\n\t1 minipc\nControl plane: 3 rpi5\nDedicated: titan-db, oceanus, tethys,\n\t\ttheia" }, { label: "CPU cores", value: "142", note: "arm + jetson + x86 mix" }, - { label: "Memory", value: "552 GB", note: "nominal (includes titan-16 even though it is down)" }, + { label: "Memory", value: "552 GB", note: "nominal\n(includes downed titan-16)" }, { label: "Atlas storage", value: "80 TB", note: "Longhorn astreae + asteria" }, ]; + return items.map((item) => ({ + ...item, + note: item.note ? item.note.replaceAll("\t", " ") : "", + })); }); const displayServices = computed(() => {