From e0df50201e71868d9aad375db66cb217938c0c1c Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 26 Aug 2026 22:08:06 -0700 Subject: All three doors on the porch: Google, passkey, and Nostr sign-in stand directly on the welcome screen — Google and passkey act in place, the Nostr button steps into the signer list as before MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_019eA8JRq9Wr7z2fRQk99HLi --- src/app.js | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'src/app.js') diff --git a/src/app.js b/src/app.js index 2e52e56..e6c9018 100644 --- a/src/app.js +++ b/src/app.js @@ -2800,15 +2800,17 @@ function onboardScreen() { o.step = 'seed'; render(); } }, t('onbStart')), - // Same shape as the sign-in button on the unlock screen: .btn-block - // forces display:block, so the flex centering goes on an inner wrapper. - h('button', { class: 'btn-block', style: 'padding:14px', onClick: () => { - o.step = 'signin'; - ui.nostrLoginOpen = true; - render(); - } }, h('span', { style: 'display:flex;align-items:center;justify-content:center;gap:8px' }, - h('span', { style: 'display:flex;flex-shrink:0', html: NOSTR_MARK }), - t('nlSignIn'))), + // All the sign-in doors right on the welcome screen (Google, passkey, + // Nostr) — the feature supplies them; the single-button fallback keeps + // builds without it working. + featureHook('frontDoorSignin') + || h('button', { class: 'btn-block', style: 'padding:14px', onClick: () => { + o.step = 'signin'; + ui.nostrLoginOpen = true; + render(); + } }, h('span', { style: 'display:flex;align-items:center;justify-content:center;gap:8px' }, + h('span', { style: 'display:flex;flex-shrink:0', html: NOSTR_MARK }), + t('nlSignIn'))), ui.onbError ? h('div', { class: 'notice err' }, ui.onbError) : null, ]); } -- cgit v1.2.3