From 02d60eb824cad0b8c09cb5685a6c2dbe02e16c4f Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 2 Aug 2026 23:26:38 -0700 Subject: Tab carousel, login avatar fix, signer callback hint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tab changes no longer flash the whole page: only the content pane below the tab strip slides sideways with a soft cross-fade — swipe direction when a gesture caused it, index order for taps — while the balance card and strip stay planted. Full-page entrances remain for real page changes (settings, chat, profile, takeovers). After a nostr sign-in the header briefly wore the wallet key's face: nostrLoginIdentity now reports a just-connected live signer immediately instead of waiting for the persisted link that only lands after the wallet opens. The nostrconnect URI carries a callbackUrl hint (NIP-55 style) so signer apps that honor it can bounce back to the PWA after approval — apps that don't will still find the session signed in when the user returns, since the handshake completes over the relay in the background. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01Wvj4aoeMZwA7VUGdJP9Swi --- src/nostr-login.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nostr-login.js') diff --git a/src/nostr-login.js b/src/nostr-login.js index b142dd7..8a4603f 100644 --- a/src/nostr-login.js +++ b/src/nostr-login.js @@ -132,7 +132,7 @@ export function nostrConnect({ relays = ['wss://relay.coinos.io', 'wss://nos.lol name: 'coinos', url: 'https://v3.coinos.io', perms: ['get_public_key', 'sign_event', 'nip44_encrypt', 'nip44_decrypt'], - }); + }) + '&callbackUrl=' + encodeURIComponent('https://v3.coinos.io/'); const controller = new AbortController(); const timer = setTimeout(() => controller.abort(new Error('signer connect timed out')), timeoutMs); const ready = (async () => { -- cgit v1.2.3