aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-10-02 14:57:00 -0700
committerAdam Soltys <[email protected]>2026-10-02 14:57:00 -0700
commit875d7df2c1c83ecfa85fe1c4546be6b568cc2e25 (patch)
treed5f8e94fe336c04afe298114d0b795695fb8a946
parentef40c82b88ac8d1fe58d270c174b0b60f130f0a0 (diff)
downloadcoinosv3-875d7df2c1c83ecfa85fe1c4546be6b568cc2e25.tar.gz
coinosv3-875d7df2c1c83ecfa85fe1c4546be6b568cc2e25.zip
Spending settings: Move to Savings opens its form again
showSend flipped the wallet's tab to Send but left the screen where it was; from the Spending settings page (where the co-operative exit lives now) the form opened out of sight and the button seemed to do nothing. Opening Send now always means the wallet screen. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Dmcrt9KyNDKVWFKnb8BREo
-rw-r--r--src/app.js3
-rw-r--r--tools/ark/cooperative-exit-ui-test.js9
2 files changed, 12 insertions, 0 deletions
diff --git a/src/app.js b/src/app.js
index 8394561..5e8f147 100644
--- a/src/app.js
+++ b/src/app.js
@@ -135,6 +135,9 @@ function showSend({ fresh = false } = {}) {
ui.bump = null;
ui.sendError = '';
if (fresh) clearSend();
+ // the Send tab lives on the wallet screen: from a page like Spending's
+ // settings (its co-operative exit) the tab flipped out of sight
+ ui.screen = 'wallet';
ui.tab = 'send';
}
diff --git a/tools/ark/cooperative-exit-ui-test.js b/tools/ark/cooperative-exit-ui-test.js
index 831ed3b..72e4705 100644
--- a/tools/ark/cooperative-exit-ui-test.js
+++ b/tools/ark/cooperative-exit-ui-test.js
@@ -91,6 +91,15 @@ try {
assert.match(st.text, /Security/); assert.match(st.text, /Lock wallet/); assert.match(st.text, /Recovery phrase/);
await page.screenshot({ path: '/tmp/gear-settings.png', fullPage: true });
console.log('✓ The Spending gear opens its settings: coins, the exit cost (gone from home), lock and recovery phrase');
+ // its co-operative exit opens the move form on the wallet (it used to flip
+ // the Send tab behind the settings page and seem to do nothing)
+ await coopButton();
+ await page.waitForSelector('input.mono-input', { timeout: 3000 });
+ assert.equal(await page.evaluate(() => coopApp.ui.screen), 'wallet');
+ assert.equal(await page.$eval('input.mono-input', (e) => e.value), await page.evaluate(() => coopApp.wallet.freshReceive().address));
+ assert.deepEqual(await page.evaluate(() => coopCalls), [], 'opening the form never starts an exit');
+ console.log('✓ From the Spending settings, the co-operative exit opens its form, prefilled to Savings');
+ await page.evaluate(() => { coopApp.ui.arkOffboardSend = null; coopApp.ui.tab = 'receive'; coopApp.render(); });
await page.evaluate(() => { window.forceArkReady = false; coopApp.wallet.saveFeatureState('arkDepth', null); coopApp.ui.screen = 'wallet'; coopApp.render(); });
await manage();