From a5a1fd1a6a8da35bbc3316b4ed73fb8660baaef1 Mon Sep 17 00:00:00 2001 From: Christoph Kluge Date: Tue, 10 Feb 2026 15:47:38 +0100 Subject: [PATCH 1/3] fix missing component argument --- web/frontend/src/status/dashdetails/StatisticsDash.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/frontend/src/status/dashdetails/StatisticsDash.svelte b/web/frontend/src/status/dashdetails/StatisticsDash.svelte index 42c6823f..2cf8621e 100644 --- a/web/frontend/src/status/dashdetails/StatisticsDash.svelte +++ b/web/frontend/src/status/dashdetails/StatisticsDash.svelte @@ -35,6 +35,7 @@ /* Const Init */ const ccconfig = getContext("cc-config"); + const globalMetrics = getContext("globalMetrics"); const client = getContextClient(); /* State Init */ @@ -139,6 +140,7 @@ Date: Tue, 10 Feb 2026 16:46:18 +0100 Subject: [PATCH 2/3] revert external config supply for nodeList component --- internal/graph/schema.resolvers.go | 3 ++- web/frontend/src/Systems.root.svelte | 4 ++-- web/frontend/src/systems/NodeList.svelte | 17 +++++++++-------- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/internal/graph/schema.resolvers.go b/internal/graph/schema.resolvers.go index 19d04eab..a233c3ba 100644 --- a/internal/graph/schema.resolvers.go +++ b/internal/graph/schema.resolvers.go @@ -867,7 +867,8 @@ func (r *queryResolver) NodeMetricsList(ctx context.Context, cluster string, sub } nodeMetricsListResult := &model.NodesResultList{ - Items: nodeMetricsList, + Items: nodeMetricsList, + // TotalNodes depends on sum of nodes grouped on latest timestamp, see repo/node.go:357 TotalNodes: &countNodes, HasNextPage: &hasNextPage, } diff --git a/web/frontend/src/Systems.root.svelte b/web/frontend/src/Systems.root.svelte index fb5c4495..d89b5f06 100644 --- a/web/frontend/src/Systems.root.svelte +++ b/web/frontend/src/Systems.root.svelte @@ -272,8 +272,8 @@ {:else} - + {/if} {/if} diff --git a/web/frontend/src/systems/NodeList.svelte b/web/frontend/src/systems/NodeList.svelte index 4e8b45d9..da196b82 100644 --- a/web/frontend/src/systems/NodeList.svelte +++ b/web/frontend/src/systems/NodeList.svelte @@ -4,8 +4,6 @@ Properties: - `cluster String`: The nodes' cluster - `subCluster String`: The nodes' subCluster [Default: ""] - - `ccconfig Object?`: The ClusterCockpit Config Context [Default: null] - - `globalMetrics [Obj]`: Includes the backend supplied availabilities for cluster and subCluster - `pendingSelectedMetrics [String]`: The array of selected metrics [Default []] - `selectedResolution Number?`: The selected data resolution [Default: 0] - `hostnameFilter String?`: The active hostnamefilter [Default: ""] @@ -16,7 +14,7 @@ -->