Normalize tabs in metric notes for display

This commit is contained in:
Brad Stein 2025-12-19 17:12:04 -03:00
parent 278404533d
commit cab43ba2b3

View File

@ -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(() => {