aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-09-30 19:08:55 +0000
committerAdam Soltys <[email protected]>2026-09-30 19:08:55 +0000
commit0879e4f55dcee9bb7af86b1e4e2a62ee9d6ef3b6 (patch)
treefcd903459d0bac379dad0ecdd986865192a3d69e
parentc5030c0b56463974fdac5b963c5a1c217b30ba5c (diff)
downloadcoinosv3-0879e4f55dcee9bb7af86b1e4e2a62ee9d6ef3b6.tar.gz
coinosv3-0879e4f55dcee9bb7af86b1e4e2a62ee9d6ef3b6.zip
"Sign into another account" opens on Create new, not the seed import box.
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WMMwWYJkPQxLgfMsY7hWcU
-rw-r--r--src/app.js4
-rw-r--r--tools/account-access-test.js2
2 files changed, 5 insertions, 1 deletions
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://…"]');