From af73ce9c6d1767a9f57386bb8b951a0eff8d87e0 Mon Sep 17 00:00:00 2001 From: Christoph Kluge Date: Wed, 4 Feb 2026 18:02:21 +0100 Subject: [PATCH] Add usage status tabs for each subCluster --- web/frontend/src/status/DashDetails.svelte | 15 ++++- .../src/status/dashdetails/UsageDash.svelte | 55 +++++++++++-------- 2 files changed, 46 insertions(+), 24 deletions(-) diff --git a/web/frontend/src/status/DashDetails.svelte b/web/frontend/src/status/DashDetails.svelte index 410d8df4..9b6dda56 100644 --- a/web/frontend/src/status/DashDetails.svelte +++ b/web/frontend/src/status/DashDetails.svelte @@ -34,6 +34,9 @@ /*Const Init */ const { query: initq } = init(); const useCbColors = getContext("cc-config")?.plotConfiguration_colorblindMode || false + + /* Derived */ + const subClusters = $derived($initq?.data?.clusters?.find((c) => c.name == presetCluster)?.subClusters || []); @@ -66,11 +69,21 @@ - + + + {#if subClusters?.length > 1} + {#each subClusters.map(sc => sc.name) as scn} + + + + + + {/each} + {/if} diff --git a/web/frontend/src/status/dashdetails/UsageDash.svelte b/web/frontend/src/status/dashdetails/UsageDash.svelte index 928ef957..79adedc3 100644 --- a/web/frontend/src/status/dashdetails/UsageDash.svelte +++ b/web/frontend/src/status/dashdetails/UsageDash.svelte @@ -3,6 +3,9 @@ Properties: - `presetCluster String`: The cluster to show status information for + - `presetSubCluster String?`: The subCluster to show status information for [Default: null] + - `useCbColors Bool?`: Use colorblind friendly colors [Default: false] + - `useAltColors Bool?`: Use alternative color set [Default: false] -->