From c82d36321b593138e6e86e90159d2e071dd52f3d Mon Sep 17 00:00:00 2001 From: Harsh Mahajan <127186841+HarshMN2345@users.noreply.github.com> Date: Tue, 20 Jan 2026 10:55:21 +0530 Subject: [PATCH 1/2] correct percentage for import migrationbox --- src/lib/components/migrationBox.svelte | 30 ++-------------------- src/lib/helpers/migration.ts | 35 ++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 28 deletions(-) create mode 100644 src/lib/helpers/migration.ts diff --git a/src/lib/components/migrationBox.svelte b/src/lib/components/migrationBox.svelte index 3dd959793..4b90604a4 100644 --- a/src/lib/components/migrationBox.svelte +++ b/src/lib/components/migrationBox.svelte @@ -5,6 +5,7 @@ import { realtime } from '$lib/stores/sdk'; import type { Models } from '@appwrite.io/console'; import { onMount } from 'svelte'; + import { calculatePercentage, type Counter } from '$lib/helpers/migration'; import { writable } from 'svelte/store'; export const showMigrationBox = writable(false); @@ -12,19 +13,6 @@