From 02e48d03dfaad124ba7e3c8a591ea8382e350ddb Mon Sep 17 00:00:00 2001 From: benji-bitfly <174338202+benji-bitfly@users.noreply.github.com> Date: Wed, 27 Nov 2024 11:03:17 +0100 Subject: [PATCH 1/3] feat(DashboardTableEfficiency): Display `-` when relative values are equal to `0` Improve `UX` by displaying `-` for `0` values. See: BEDS-844 --- frontend/.vscode/settings.json | 1 + frontend/components/bc/menu/BcMenuBar.vue | 4 +- .../table/DashboardTableEfficiency.vue | 42 +++++++++++-------- .../table/DashboardTableValidators.vue | 8 ++-- .../dashboard/table/SummaryValue.vue | 4 +- 5 files changed, 35 insertions(+), 24 deletions(-) diff --git a/frontend/.vscode/settings.json b/frontend/.vscode/settings.json index 4bac3b2e7..1afe95be7 100644 --- a/frontend/.vscode/settings.json +++ b/frontend/.vscode/settings.json @@ -11,6 +11,7 @@ "BcToggle", "DashboardChartSummaryChartFilter", "DashboardGroupManagementModal", + "DashboardTableEfficiency", "DashboardTableSummaryDetails", "DashboardTableValidators", "DashboardValidatorManagmentModal", diff --git a/frontend/components/bc/menu/BcMenuBar.vue b/frontend/components/bc/menu/BcMenuBar.vue index c284e2df5..a30d43b1e 100644 --- a/frontend/components/bc/menu/BcMenuBar.vue +++ b/frontend/components/bc/menu/BcMenuBar.vue @@ -33,7 +33,7 @@ defineProps() () diff --git a/frontend/components/dashboard/table/DashboardTableEfficiency.vue b/frontend/components/dashboard/table/DashboardTableEfficiency.vue index e367a8d58..919a39f54 100644 --- a/frontend/components/dashboard/table/DashboardTableEfficiency.vue +++ b/frontend/components/dashboard/table/DashboardTableEfficiency.vue @@ -32,30 +32,36 @@ const data = computed(() => { - - / - 0 / 0 + + + + - + - diff --git a/frontend/components/dashboard/table/DashboardTableValidators.vue b/frontend/components/dashboard/table/DashboardTableValidators.vue index a1359940f..8debdc3d8 100644 --- a/frontend/components/dashboard/table/DashboardTableValidators.vue +++ b/frontend/components/dashboard/table/DashboardTableValidators.vue @@ -53,9 +53,12 @@ const groupName = computed(() => {