From f22a1d6c98bbc73f2b392aacbda361b361d6d386 Mon Sep 17 00:00:00 2001 From: David Dal Busco Date: Fri, 10 Jan 2025 09:24:41 +0100 Subject: [PATCH] feat: integrate and handle version monitoring v0.0.14 Signed-off-by: David Dal Busco --- .../loaders/CanisterMonitoringLoader.svelte | 4 ++-- .../components/monitoring/NoMonitoring.svelte | 19 ++++++++++++++++++- .../src/lib/constants/version.constants.ts | 5 ++--- src/frontend/src/lib/i18n/en.json | 3 ++- src/frontend/src/lib/i18n/zh-cn.json | 3 ++- .../lib/services/mission-control.services.ts | 6 +++--- src/frontend/src/lib/types/i18n.d.ts | 1 + 7 files changed, 30 insertions(+), 11 deletions(-) diff --git a/src/frontend/src/lib/components/loaders/CanisterMonitoringLoader.svelte b/src/frontend/src/lib/components/loaders/CanisterMonitoringLoader.svelte index 924ed2a75..442b1c3ab 100644 --- a/src/frontend/src/lib/components/loaders/CanisterMonitoringLoader.svelte +++ b/src/frontend/src/lib/components/loaders/CanisterMonitoringLoader.svelte @@ -4,7 +4,7 @@ import { compare } from 'semver'; import { onDestroy, onMount, type Snippet } from 'svelte'; import { run } from 'svelte/legacy'; - import { MISSION_CONTROL_v0_0_13 } from '$lib/constants/version.constants'; + import { MISSION_CONTROL_v0_0_14 } from '$lib/constants/version.constants'; import { missionControlIdDerived } from '$lib/derived/mission-control.derived'; import { missionControlVersion } from '$lib/derived/version.derived'; import { @@ -68,7 +68,7 @@ ], missionControlId: $missionControlIdDerived, withMonitoringHistory: - compare($missionControlVersion.current ?? '0.0.0', MISSION_CONTROL_v0_0_13) >= 0, + compare($missionControlVersion.current ?? '0.0.0', MISSION_CONTROL_v0_0_14) >= 0, callback: syncCanister }); })(); diff --git a/src/frontend/src/lib/components/monitoring/NoMonitoring.svelte b/src/frontend/src/lib/components/monitoring/NoMonitoring.svelte index 68607c3ca..930076fda 100644 --- a/src/frontend/src/lib/components/monitoring/NoMonitoring.svelte +++ b/src/frontend/src/lib/components/monitoring/NoMonitoring.svelte @@ -1,7 +1,13 @@