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 ++- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src/features') 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); } } -- cgit v1.2.3