diff options
| author | Adam Soltys <[email protected]> | 2026-08-03 23:54:55 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-08-03 23:54:55 -0700 |
| commit | 5682cc88e54f00ce01fdd2ef01e5bb1a207b1be2 (patch) | |
| tree | 0c151cbf72d4b2e63053416b738fb82f0612ec82 /tools | |
| parent | 9a9e2a7e64e02d080d121e1f3079573d00ab28cf (diff) | |
| download | coinosv3-5682cc88e54f00ce01fdd2ef01e5bb1a207b1be2.tar.gz coinosv3-5682cc88e54f00ce01fdd2ef01e5bb1a207b1be2.zip | |
Call it 'Lock wallet', because that is what it does
'Logout' promises a return to a fresh app with nothing of yours left on
it. This closes the open wallet and keeps everything saved, which is why
it read as interchangeable with 'Clear all' — the one that really does
send you back to the beginning.
Renamed via a new key rather than rewording the old one: nineteen locale
tables carry their own word for 'Logout' and t() prefers the locale's
value, so reusing the key would have kept the wrong meaning in every
language but English. The dead key is dropped from those files; they
fall back to English until translated.
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Wvj4aoeMZwA7VUGdJP9Swi
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/lock-wallet-test.js (renamed from tools/logout-test.js) | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/logout-test.js b/tools/lock-wallet-test.js index da2bb99..4bc56b1 100644 --- a/tools/logout-test.js +++ b/tools/lock-wallet-test.js @@ -1,9 +1,9 @@ -// Logging out should ask for a password only when there is one. +// "Lock wallet" locks; only "Clear all" deletes. // // Wallets save themselves to this device under an empty password unless the // user sets one, so the unlock screen was demanding a password nobody had -// chosen — which made logout look like it had done something drastic. It -// hasn't: logout keeps every saved wallet, and only "Clear all" deletes them. +// chosen — which made the action look like it had done something drastic. It +// hasn't: locking keeps every saved wallet. // // Run: bun tools/logout-test.js import puppeteer from 'puppeteer-core'; @@ -25,7 +25,7 @@ const waitText = async (x, ms = 20000) => { for (let i = 0; i < ms / 250; i++) { const logout = async () => { await page.evaluate(() => document.querySelector('.header-avatar')?.click()); await sleep(400); - await click('.icon-select-item', 'Logout'); + await click('.icon-select-item', 'Lock wallet'); await sleep(1500); }; const vaultSize = () => page.evaluate(() => (localStorage.getItem('btc-wallet-vault') || '').length); @@ -47,7 +47,7 @@ try { const savedBytes = await vaultSize(); check('it saved itself to the device', savedBytes > 0, `${savedBytes} bytes of vault`); - console.log('\n[logging out with no password set]'); + console.log('\n[locking with no password set]'); await logout(); let txt = await body(); check('no password is demanded', !/enter your password|unlock saved wallets/i.test(txt), txt.slice(0, 120).replace(/\n+/g, ' | ')); @@ -103,5 +103,5 @@ try { await browser.close(); server.stop(true); } -console.log(ok ? '\n✅ logout keeps your wallets' : '\n❌ failures above'); +console.log(ok ? '\n✅ locking keeps your wallets' : '\n❌ failures above'); process.exit(ok ? 0 : 1); |
