From ad8ff4eb12a001647f6fe2856e9fe05d4e1d06ce Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 3 Aug 2026 23:11:16 -0700 Subject: Drop the 'signer reconnected' toast MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A dark pill floating at the bottom of the screen reads as a stray button under the footer, and it was saying something the page already showed: the badge flips to connected and the reconnect controls disappear. Failures still surface — those go in the card, where the problem is. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01Wvj4aoeMZwA7VUGdJP9Swi --- src/features/messages.js | 4 ++-- src/features/nostrlogin.js | 3 ++- src/i18n.js | 2 -- 3 files changed, 4 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/features/messages.js b/src/features/messages.js index e9d1799..ed16f76 100644 --- a/src/features/messages.js +++ b/src/features/messages.js @@ -1241,8 +1241,8 @@ export function messagesFeature(ctx) { ui.msgReconnecting = true; render(); const s = await hook('nostrLoginResume'); ui.msgReconnecting = false; - if (s) toast(t('msgSignerBack')); - else { ui.chatOpen = false; ui.screen = 'wallet'; ui.tab = 'settings'; ui.settingsPage = 'nostr'; } + // Success needs no announcement — the notice itself goes away. + if (!s) { ui.chatOpen = false; ui.screen = 'wallet'; ui.tab = 'settings'; ui.settingsPage = 'nostr'; } render(); }, }, ui.msgReconnecting ? h('span', { class: 'spinner sm' }) : t('msgReconnect'))); diff --git a/src/features/nostrlogin.js b/src/features/nostrlogin.js index 611a707..ced5504 100644 --- a/src/features/nostrlogin.js +++ b/src/features/nostrlogin.js @@ -274,7 +274,8 @@ export function nostrLoginFeature(ctx) { } live = selfHealing(signer); save({ ...load(), ...sessionOf(signer) }); - toast(t('nlReconnected')); + // No toast: the badge flips to "connected" and the reconnect controls + // disappear, which says it better than a pill floating over the footer. busy(false); } catch (e) { fail(e); } } diff --git a/src/i18n.js b/src/i18n.js index 82a48b9..428ccb0 100644 --- a/src/i18n.js +++ b/src/i18n.js @@ -161,7 +161,6 @@ const STR = { msgSendFailed: 'No relay accepted the message', msgSignerOff: "Your nostr signer isn't connected, so you can't post as yourself yet.", msgReconnect: 'Reconnect', - msgSignerBack: 'Signer reconnected', msgDmsTitle: 'Messages', msgCommunitiesTitle: 'Communities', msgNewDm: 'New message', @@ -578,7 +577,6 @@ const STR = { nlConnected: 'connected', nlDisconnected: 'not connected', nlReconnectDesc: "Your signer isn't connected, so this app can't sign as you. Reconnect it to post and update your profile — your wallet and balance aren't affected.", - nlReconnected: 'Signer reconnected', nlWrongAccount: 'That signer is a different Nostr account. Reconnect with {npub}.', nlLinked: 'Wallet linked to your Nostr account', nlNeedSeed: 'This wallet has no recovery phrase loaded.', -- cgit v1.2.3