From 1c6bece3be1dd67586d2caf83bc534da75b50e5b Mon Sep 17 00:00:00 2001
From: davelopez <46503462+davelopez@users.noreply.github.com>
Date: Mon, 9 Dec 2024 19:04:30 +0100
Subject: [PATCH 1/4] Fix PieChart legend visual issue
The "chart" class was braking Vega's CSS
---
.../WorkflowInvocationState/VegaWrapper.vue | 7 +------
.../WorkflowInvocationMetrics.vue | 13 +------------
2 files changed, 2 insertions(+), 18 deletions(-)
diff --git a/client/src/components/WorkflowInvocationState/VegaWrapper.vue b/client/src/components/WorkflowInvocationState/VegaWrapper.vue
index ec4ce67b8586..fb76e6e4875f 100644
--- a/client/src/components/WorkflowInvocationState/VegaWrapper.vue
+++ b/client/src/components/WorkflowInvocationState/VegaWrapper.vue
@@ -1,5 +1,5 @@
-
+
-
-
diff --git a/client/src/components/WorkflowInvocationState/WorkflowInvocationMetrics.vue b/client/src/components/WorkflowInvocationState/WorkflowInvocationMetrics.vue
index cb32e4f11288..a3e530696926 100644
--- a/client/src/components/WorkflowInvocationState/WorkflowInvocationMetrics.vue
+++ b/client/src/components/WorkflowInvocationState/WorkflowInvocationMetrics.vue
@@ -275,18 +275,7 @@ function itemToPieChartSpec(item: piechartData) {
type: "nominal",
legend: {
type: "symbol",
- title: "", // should be item.category_title but it doesn't align right so just hide it
- direction: "vertical",
- titleAlign: "right",
- padding: 10,
- // rowPadding: 3,
- labelOffset: 40,
- // symbolOffset: 50,
- labelLimit: 120,
- // labelAlign: 'center',
- columnPadding: 5,
- // clipHeight: 20,
- titleOrient: "top",
+ title: item.category_title,
},
},
tooltip: [
From e3ac780d64c7483bf9cce5a0b51136bef2d45567 Mon Sep 17 00:00:00 2001
From: davelopez <46503462+davelopez@users.noreply.github.com>
Date: Mon, 9 Dec 2024 19:06:33 +0100
Subject: [PATCH 2/4] Increase PieChart legend font size
Slightly increase for improved visibility
---
.../WorkflowInvocationState/WorkflowInvocationMetrics.vue | 2 ++
1 file changed, 2 insertions(+)
diff --git a/client/src/components/WorkflowInvocationState/WorkflowInvocationMetrics.vue b/client/src/components/WorkflowInvocationState/WorkflowInvocationMetrics.vue
index a3e530696926..2298d1880cd5 100644
--- a/client/src/components/WorkflowInvocationState/WorkflowInvocationMetrics.vue
+++ b/client/src/components/WorkflowInvocationState/WorkflowInvocationMetrics.vue
@@ -276,6 +276,8 @@ function itemToPieChartSpec(item: piechartData) {
legend: {
type: "symbol",
title: item.category_title,
+ titleFontSize: 16,
+ labelFontSize: 14,
},
},
tooltip: [
From 631da6456d42d417d0ee85ecba5030f337bd919a Mon Sep 17 00:00:00 2001
From: davelopez <46503462+davelopez@users.noreply.github.com>
Date: Mon, 9 Dec 2024 19:08:42 +0100
Subject: [PATCH 3/4] Fix label for 'Group By' dropdown in Workflow Invocation
Metrics
Make it dynamic like the other one for time.
---
.../WorkflowInvocationState/WorkflowInvocationMetrics.vue | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/client/src/components/WorkflowInvocationState/WorkflowInvocationMetrics.vue b/client/src/components/WorkflowInvocationState/WorkflowInvocationMetrics.vue
index 2298d1880cd5..3a1a1bbf8e19 100644
--- a/client/src/components/WorkflowInvocationState/WorkflowInvocationMetrics.vue
+++ b/client/src/components/WorkflowInvocationState/WorkflowInvocationMetrics.vue
@@ -372,6 +372,10 @@ function getTimingInTitle(timing: string): string {
const timingInTitles = computed(() => {
return getTimingInTitle(timing.value);
});
+
+const groupByInTitles = computed(() => {
+ return attributeToLabel[groupBy.value];
+});
@@ -384,7 +388,7 @@ const timingInTitles = computed(() => {
{{ getTimingInTitle("minutes") }}
{{ getTimingInTitle("hours") }}
-
+
Tool
Workflow Step
From f07d67386a5fc981fe7520c96926045cf0ff5bf3 Mon Sep 17 00:00:00 2001
From: davelopez <46503462+davelopez@users.noreply.github.com>
Date: Mon, 9 Dec 2024 19:11:26 +0100
Subject: [PATCH 4/4] Center PieCharts horizontally
---
.../components/WorkflowInvocationState/VegaWrapper.vue | 9 ++++++---
.../WorkflowInvocationMetrics.vue | 10 +++++-----
2 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/client/src/components/WorkflowInvocationState/VegaWrapper.vue b/client/src/components/WorkflowInvocationState/VegaWrapper.vue
index fb76e6e4875f..8a46fec2fd0a 100644
--- a/client/src/components/WorkflowInvocationState/VegaWrapper.vue
+++ b/client/src/components/WorkflowInvocationState/VegaWrapper.vue
@@ -9,15 +9,18 @@ import { computed, onBeforeUnmount, onMounted, ref, watch } from "vue";
export interface VisSpec {
spec: VisualizationSpec;
- width: string;
+ fillWidth?: boolean;
}
const props = withDefaults(defineProps(), {
- width: "100%",
+ fillWidth: true,
});
const style = computed(() => {
- return { width: props.width };
+ if (props.fillWidth) {
+ return { width: "100%" };
+ }
+ return {};
});
const chartContainer = ref(null);
diff --git a/client/src/components/WorkflowInvocationState/WorkflowInvocationMetrics.vue b/client/src/components/WorkflowInvocationState/WorkflowInvocationMetrics.vue
index 3a1a1bbf8e19..40f46da6db23 100644
--- a/client/src/components/WorkflowInvocationState/WorkflowInvocationMetrics.vue
+++ b/client/src/components/WorkflowInvocationState/WorkflowInvocationMetrics.vue
@@ -395,15 +395,15 @@ const groupByInTitles = computed(() => {
-
+
Aggregate
(in
{{ timingInTitles }})
-
+
-
+
Aggregate
{
text="Allocated Core Time" />
(in {{ timingInTitles }})
-
+
-
+
{{ key }}