From 9846e6464d7f5aa761ead338c6a04a9647a52ab6 Mon Sep 17 00:00:00 2001 From: TZGyn Date: Mon, 18 May 2026 05:24:08 +0800 Subject: [PATCH] require auth to log in (lock screen), remove auth-on-logout, remove welcome card from multicoin dashboard, relocate login buttons to root welcome page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - login('multi') no longer silently loads seed from keychain — shows locked screen with Touch ID/password - Removed welcome card from EvmDashboard (multicoin route), root / handles account selection - Root welcome page buttons call w.login() before navigating to respective routes - Monero welcome page buttons also call w.login() before navigating - logout now simply calls w.logout() + navigate('/') with no auth required - Removed tab-bar logout buttons; logout moved to wallet card alongside refresh/settings/stop --- .../src/lib/components/EvmDashboard.svelte | 37 ++----------------- apps/desktop/src/lib/states/wallet.svelte.ts | 3 -- apps/desktop/src/routes/index.svelte | 4 +- apps/desktop/src/routes/monero/index.svelte | 10 ++--- 4 files changed, 9 insertions(+), 45 deletions(-) diff --git a/apps/desktop/src/lib/components/EvmDashboard.svelte b/apps/desktop/src/lib/components/EvmDashboard.svelte index 2aece46..5121dce 100644 --- a/apps/desktop/src/lib/components/EvmDashboard.svelte +++ b/apps/desktop/src/lib/components/EvmDashboard.svelte @@ -84,32 +84,7 @@ {#if !w.ready}
Loading...
-{:else if !w.accountType} -
- - - Welcome - Choose an account type to get started - - -
- - -
-
-
-
-{:else if w.accountType === 'multi'} - {#if !w.vaultExists} +{:else if !w.vaultExists} Import Wallet @@ -192,11 +167,6 @@ {net.name} {/each} - @@ -291,8 +261,8 @@ - @@ -417,4 +387,3 @@ {/if} -{/if} diff --git a/apps/desktop/src/lib/states/wallet.svelte.ts b/apps/desktop/src/lib/states/wallet.svelte.ts index e021025..1b71763 100644 --- a/apps/desktop/src/lib/states/wallet.svelte.ts +++ b/apps/desktop/src/lib/states/wallet.svelte.ts @@ -132,9 +132,6 @@ export const Wallet = () => { const login = async (type: AccountType) => { accountType = type if (type === 'multi') { - if (!seed && vaultExists) { - await loadSeed() - } if (seed) await switchNetwork(network) } else if (type === 'monero') { if (moneroInstalled && !moneroRunning) { diff --git a/apps/desktop/src/routes/index.svelte b/apps/desktop/src/routes/index.svelte index a2bae17..caf2569 100644 --- a/apps/desktop/src/routes/index.svelte +++ b/apps/desktop/src/routes/index.svelte @@ -33,12 +33,12 @@
-
{#if w.moneroDownloading} @@ -214,6 +209,9 @@ +