From 68163354889ea121d1bd3b6437143dc44857ace0 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 4 Aug 2026 02:03:09 -0700 Subject: No logo in the wizard; every step has a way back instead Co-Authored-By: Claude Fable 5 --- src/app.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src') 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')), ]); } -- cgit v1.2.3