diff --git a/src/lib/components/GateUpdateCheck.svelte b/src/lib/components/GateUpdateCheck.svelte new file mode 100644 index 00000000..762c94a6 --- /dev/null +++ b/src/lib/components/GateUpdateCheck.svelte @@ -0,0 +1,139 @@ + + +
+ {#if version && (state === 'idle' || state === 'checking' || state === 'current')} + v{short(version)} + + {/if} + + {#if state === 'idle'} + + {:else if state === 'checking'} + + {:else if state === 'current'} + + {:else if state === 'available'} + Stroke {short(next)} is available + + {:else if state === 'downloading'} + + Downloading {short(next)} + + + + {progress}% + + {:else if state === 'ready'} + Stroke {short(next)} is ready + + {:else if state === 'error'} + + Couldn't update + + + {/if} + + {announce} +
diff --git a/src/lib/components/Onboarding.svelte b/src/lib/components/Onboarding.svelte index 1c929940..5066d1f8 100644 --- a/src/lib/components/Onboarding.svelte +++ b/src/lib/components/Onboarding.svelte @@ -100,8 +100,11 @@ {#if open} +
diff --git a/src/lib/components/SignInScreen.svelte b/src/lib/components/SignInScreen.svelte index ffec7459..e59bd41c 100644 --- a/src/lib/components/SignInScreen.svelte +++ b/src/lib/components/SignInScreen.svelte @@ -13,6 +13,7 @@ import { detectOs } from '$lib/platform.js' import { cn } from '$lib/utils.js' import ArrowLeft from '@lucide/svelte/icons/arrow-left' + import GateUpdateCheck from './GateUpdateCheck.svelte' /** Called once signed in (or a key was activated); the gate hands over to the app. */ let { ondone = () => {} } = $props() @@ -103,5 +104,9 @@ Terms Privacy + + +
diff --git a/src/lib/components/TrialExpiredScreen.svelte b/src/lib/components/TrialExpiredScreen.svelte index dcb952c4..fa3e2a20 100644 --- a/src/lib/components/TrialExpiredScreen.svelte +++ b/src/lib/components/TrialExpiredScreen.svelte @@ -10,6 +10,7 @@ import LicenseActivation from './LicenseActivation.svelte' import AccountSignInButtons from './AccountSignInButtons.svelte' import WindowControls from './WindowControls.svelte' + import GateUpdateCheck from './GateUpdateCheck.svelte' import { Button } from '$lib/components/ui/button/index.js' import { licenseStatus, isBlocked } from '$lib/stores/license.js' import { account, isSignedIn, signInState, refreshAccount, signOut } from '$lib/stores/account.js' @@ -205,4 +206,9 @@ {/if} + +
+ +