From 0879e4f55dcee9bb7af86b1e4e2a62ee9d6ef3b6 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 30 Sep 2026 19:08:55 +0000 Subject: "Sign into another account" opens on Create new, not the seed import box. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01WMMwWYJkPQxLgfMsY7hWcU --- src/app.js | 4 +++- tools/account-access-test.js | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app.js b/src/app.js index b6721da..dc17a37 100644 --- a/src/app.js +++ b/src/app.js @@ -1728,7 +1728,9 @@ async function activateAccount(acc, opts = {}) { // by the Accounts screen and the profile page. function signInAnother() { clearSeedDrafts(); - ui.fromWallet = true; ui.unlockError = ''; ui.unlockTab = 'import'; ui.screen = 'unlock'; + ui.fromWallet = true; ui.unlockError = ''; ui.screen = 'unlock'; + // Starts on Create new (its Generate button), not the seed-import box. + ui.unlockTab = 'create'; ui.createStep = 'gen'; ui.draftMnemonic = ''; ui.confirm = []; ui.profilePk = null; ui.profEdit = null; ui.profEditFilled = false; ui.chatOpen = false; render(); } diff --git a/tools/account-access-test.js b/tools/account-access-test.js index ad6ce3f..d2685de 100644 --- a/tools/account-access-test.js +++ b/tools/account-access-test.js @@ -36,6 +36,8 @@ try { check('avatar opens Accounts with sign-in and logout', await page.evaluate(() => ['Accounts', 'Sign into another account', 'Log out'].every((s) => document.body.innerText.includes(s)))); const saved = await page.evaluate(() => localStorage.getItem('btc-wallet-watch')); await click('Sign into another account'); + check('sign-in opens on Create new, not the seed import box', await page.evaluate(() => + document.querySelector('.tabs .active')?.textContent.includes('Create new') && !document.querySelector('.card textarea'))); // Expand the Nostr login card without supplying a private key. await click('Sign in with Nostr'); await page.waitForSelector('input[placeholder="nsec, private key, or bunker://…"]'); -- cgit v1.2.3