From cab1b5d97ecad52a117224991eab36136a9334bc Mon Sep 17 00:00:00 2001 From: Lucca Dukic <109136188+LuccaBitfly@users.noreply.github.com> Date: Tue, 26 Nov 2024 12:42:49 +0100 Subject: [PATCH] refactor(dashboard): better overview and slotviz data fetching - Creates composables for Overview and SlotViz, which will eventually replace their respective stores - Overview and SlotViz data is now fetched in `index.vue` and propped down - SlotViz updates are handled through update emits - Introduces proper SSR fetching See: BEDS-914 --- .../dashboard/DashboardValidatorOverview.vue | 32 +++--- .../components/dashboard/ValidatorSlotViz.vue | 25 ++--- .../useValidatorDashboardOverview.ts | 63 +++++++++++ frontend/composables/useValidatorSlotViz.ts | 44 ++++++++ frontend/pages/dashboard/[[id]]/index.vue | 106 ++++++++++++------ 5 files changed, 207 insertions(+), 63 deletions(-) create mode 100644 frontend/composables/useValidatorDashboardOverview.ts create mode 100644 frontend/composables/useValidatorSlotViz.ts diff --git a/frontend/components/dashboard/DashboardValidatorOverview.vue b/frontend/components/dashboard/DashboardValidatorOverview.vue index 5ecebdbc6f..625f4e2793 100644 --- a/frontend/components/dashboard/DashboardValidatorOverview.vue +++ b/frontend/components/dashboard/DashboardValidatorOverview.vue @@ -1,18 +1,22 @@