aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-08-04 02:03:09 -0700
committerAdam Soltys <[email protected]>2026-08-04 02:03:09 -0700
commit68163354889ea121d1bd3b6437143dc44857ace0 (patch)
tree40a6fd5ef78012c214aba69e1383bd51e5f40681 /src
parent7bc455db36c865c8373c35fdaeb0496297a74db0 (diff)
downloadcoinosv3-68163354889ea121d1bd3b6437143dc44857ace0.tar.gz
coinosv3-68163354889ea121d1bd3b6437143dc44857ace0.zip
No logo in the wizard; every step has a way back instead
Co-Authored-By: Claude Fable 5 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/app.js13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/app.js b/src/app.js
index 7146670..1d08ac3 100644
--- a/src/app.js
+++ b/src/app.js
@@ -2191,11 +2191,7 @@ function onboardScreen() {
if (addr && addr !== o.enterAddr && !/^npub1/.test(addr)) o.step = 'avatar';
}
try { localStorage.setItem(ONB_STEP_KEY, o.step); } catch {}
- // Every step shows the logo (welcome renders it big as the hero instead) —
- // with a wallet already minted it doubles as the way out, via goHome.
- const page = (kids) => h('div', { class: 'col onb', style: 'gap:20px' },
- o.step !== 'welcome' ? brandHeader(false) : null,
- ...kids);
+ const page = (kids) => h('div', { class: 'col onb', style: 'gap:20px' }, ...kids);
const title = (txt) => h('h2', { class: 'onb-title' }, txt);
if (o.step === 'legacy') {
@@ -2323,6 +2319,12 @@ function onboardScreen() {
} catch (e) { ui.onbError = e.message; }
ui.onbBusy = false; render();
} }, ui.onbBusy ? h('span', { class: 'spinner sm' }) : (o.avatar ? t('onbContinue') : t('onbSkipAvatar'))),
+ h('button', { class: 'btn-ghost btn-block', disabled: ui.onbBusy, onClick: () => {
+ // re-anchor the username step's "name changed" detector to the name
+ // as it stands NOW, or a just-claimed name bounces us right back here
+ o.enterAddr = featureHook('namesAddress') || null;
+ o.step = 'username'; render();
+ } }, t('back')),
]);
}
// success
@@ -2338,6 +2340,7 @@ function onboardScreen() {
ui.tab = 'receive';
render();
} }, t('onbEnter')),
+ h('button', { class: 'btn-ghost btn-block', onClick: () => { o.step = 'avatar'; render(); } }, t('back')),
]);
}