Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beds 1037/large dashboards should not load slot viz icons and absolute values #1303

3 changes: 2 additions & 1 deletion frontend/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
"DashboardChartSummary",
"DashboardChartSummaryFilter",
"DashboardGroupManagementModal",
"DashboardSlotViz",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

np: commit msg
(refactor(DashboardSlotViz): improve component structure and namings)

We should use the scope as a hint that this commit's changes are limited to the named slot 👉DashboardSlotViz

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I rephrased the commit message and removed the scope

"DashboardTableSummary",
"DashboardTableSummaryDetails",
"DashboardTableSummaryValue",
"DashboardTableValidators",
Expand All @@ -33,7 +35,6 @@
"NotificationsNetworkTable",
"NotificationsOverview",
"NotificationsTableEmpty",
"SlotVizViewer",
"a11y",
"checkout",
"ci",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ const dialog = useDialog()
const visible = defineModel<boolean>()
const validatorDashboardOverviewStore = useValidatorDashboardOverviewStore()
const {
overview, refreshOverview,
} = useValidatorDashboardOverviewStore()
overview,
} = storeToRefs(validatorDashboardOverviewStore)
const { refreshOverview } = validatorDashboardOverviewStore
const cursor = ref<Cursor>()
const pageSize = ref<number>(25)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ const { t: $t } = useTranslation()

const input = defineModel<string>()

const validatorDashboardOverviewStore = useValidatorDashboardOverviewStore()
const {
overview,
} = useValidatorDashboardOverviewStore()
} = storeToRefs(validatorDashboardOverviewStore)
const { chainIdByDefault } = useRuntimeConfig().public

const currentDashboardNetwork = computed(() => overview.value?.network ?? chainIdByDefault)
Expand Down
3 changes: 2 additions & 1 deletion frontend/components/dashboard/DashboardValidatorOverview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ import { DashboardValidatorSubsetModal } from '#components'
const { t: $t } = useTranslation()
const { converter } = useValue()

const { overview } = useValidatorDashboardOverviewStore()
const validatorDashoboardOverviewStore = useValidatorDashboardOverviewStore()
const { overview } = storeToRefs(validatorDashoboardOverviewStore)

const formatValueWei = (value: NumberOrString): NumberOrString => {
return converter.value.weiToValue(`${value}`, { fixedDecimalCount: 4 })
Expand Down
145 changes: 0 additions & 145 deletions frontend/components/dashboard/ValidatorSlotViz.vue

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ const {
secondsPerEpoch,
} = useNetworkStore()
const { dashboardKey } = useDashboardKey()
const { overview } = useValidatorDashboardOverviewStore()
const validatorDashboardOverviewStore = useValidatorDashboardOverviewStore()
const { overview } = storeToRefs(validatorDashboardOverviewStore)
const { groups } = useValidatorDashboardGroups()
const { latestState } = useLatestStateStore()
const latestSlot = ref(latestState.value?.current_slot || 0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ import {
import { getGroupLabel } from '~/utils/dashboard/group'

const { t: $t } = useTranslation()

const validatorDashboardOverviewStore = useValidatorDashboardOverviewStore()
const {
hasAbilityCharthistory,
overview,
} = useValidatorDashboardOverviewStore()
} = storeToRefs(validatorDashboardOverviewStore)

const chartFilter = defineModel<SummaryChartFilter>({ required: true })

Expand Down
Loading