From 9f5c02d947a27f446775db73a1873a1be5c8eaf7 Mon Sep 17 00:00:00 2001 From: Luiz Aoqui Date: Thu, 22 Jun 2023 10:33:42 -0400 Subject: [PATCH] ui: add tooltips to the Topology labels (#17647) Add tooltips to labels in nodes and datacenters for the Topology view page to clarify what each value represents. --- .changelog/17647.txt | 3 +++ .../templates/components/topo-viz/datacenter.hbs | 14 +++++++++----- ui/app/templates/components/topo-viz/node.hbs | 13 ++++++++----- .../components/topo-viz/datacenter-test.js | 4 ++-- 4 files changed, 22 insertions(+), 12 deletions(-) create mode 100644 .changelog/17647.txt diff --git a/.changelog/17647.txt b/.changelog/17647.txt new file mode 100644 index 000000000..a56bfe1c9 --- /dev/null +++ b/.changelog/17647.txt @@ -0,0 +1,3 @@ +```release-note:improvement +ui: add tooltips to the node and datacenter labels in the Topology page +``` diff --git a/ui/app/templates/components/topo-viz/datacenter.hbs b/ui/app/templates/components/topo-viz/datacenter.hbs index 3eb91fea6..61385cb07 100644 --- a/ui/app/templates/components/topo-viz/datacenter.hbs +++ b/ui/app/templates/components/topo-viz/datacenter.hbs @@ -5,11 +5,15 @@
- {{@datacenter.name}} - {{this.scheduledAllocations.length}} Allocs - {{@datacenter.nodes.length}} Nodes - {{format-bytes this.aggregatedAllocationResources.memory start="MiB"}}/{{format-bytes this.aggregatedNodeResources.memory start="MiB"}}, - {{format-hertz this.aggregatedAllocationResources.cpu}}/{{format-hertz this.aggregatedNodeResources.cpu}} + {{@datacenter.name}} + {{this.scheduledAllocations.length}} Allocs + {{@datacenter.nodes.length}} Nodes + + {{format-bytes this.aggregatedAllocationResources.memory start="MiB"}} / + {{format-bytes this.aggregatedNodeResources.memory start="MiB"}}, + {{format-hertz this.aggregatedAllocationResources.cpu}} / + {{format-hertz this.aggregatedNodeResources.cpu}} +
diff --git a/ui/app/templates/components/topo-viz/node.hbs b/ui/app/templates/components/topo-viz/node.hbs index 2e272a021..bc3e215b9 100644 --- a/ui/app/templates/components/topo-viz/node.hbs +++ b/ui/app/templates/components/topo-viz/node.hbs @@ -11,11 +11,14 @@ {{else if (not @node.node.isEligible)}} {{x-icon "lock-closed" class="is-warning"}} {{/if}} - {{@node.node.name}} - {{this.count}} Allocs - {{format-scheduled-bytes @node.memory start="MiB"}}, {{format-scheduled-hertz @node.cpu}} - {{@node.node.status}} - {{@node.node.version}} + {{@node.node.name}} + {{this.count}} Allocs + + {{format-scheduled-bytes @node.memory start="MiB"}}, + {{format-scheduled-hertz @node.cpu}} + + {{@node.node.status}} + {{@node.node.version}}

{{/unless}}