diff options
| author | Adam Soltys <[email protected]> | 2026-08-03 23:11:16 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-08-03 23:11:16 -0700 |
| commit | ad8ff4eb12a001647f6fe2856e9fe05d4e1d06ce (patch) | |
| tree | 1d6e16daf728de6afa672fd61a4e3fe82b637130 /src | |
| parent | 94c504b650bc13106e93abe4e9c45e840d2ee61e (diff) | |
| download | coinosv3-ad8ff4eb12a001647f6fe2856e9fe05d4e1d06ce.tar.gz coinosv3-ad8ff4eb12a001647f6fe2856e9fe05d4e1d06ce.zip | |
Drop the 'signer reconnected' toast
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 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Wvj4aoeMZwA7VUGdJP9Swi
Diffstat (limited to 'src')
| -rw-r--r-- | src/features/messages.js | 4 | ||||
| -rw-r--r-- | src/features/nostrlogin.js | 3 | ||||
| -rw-r--r-- | src/i18n.js | 2 |
3 files changed, 4 insertions, 5 deletions
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.', |
