diff options
| author | Adam Soltys <[email protected]> | 2026-09-27 08:29:01 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-09-27 08:29:01 -0700 |
| commit | 3da7f9d52dee6a535190cd5e0db152a3689c7e8e (patch) | |
| tree | 59197752b56538cf967c5b33758423c8d92e0eb1 /src/features | |
| parent | b06bbb48e6c6c7f81a9592ab9562bb8e3042b2b6 (diff) | |
| download | coinosv3-3da7f9d52dee6a535190cd5e0db152a3689c7e8e.tar.gz coinosv3-3da7f9d52dee6a535190cd5e0db152a3689c7e8e.zip | |
Accounts: tapping an identity signs in as it and opens its profile; the padlock moves from the header to this page.
The identity chip used to put the npub in the URL and leave the list on
screen (the profile only paints over the wallet screen). Lock/Unlock now sits
with the other device-wide actions (log out, clear); the padlock tests reach it
through the Accounts page and lose their stale "Wallets" button.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VhUKyXKtsJ67QAFfb7QR9D
Diffstat (limited to 'src/features')
| -rw-r--r-- | src/features/messages.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/features/messages.js b/src/features/messages.js index 06cb6dd..59fb0a5 100644 --- a/src/features/messages.js +++ b/src/features/messages.js @@ -8489,11 +8489,13 @@ export function messagesFeature(ctx) { fieldWhen: { lud16: follows('lud16'), nip05: follows('nip05') }, }).catch(() => {}); }, - profileChip(pk, size) { + // opens the profile, unless the caller has a step to take first (the + // Accounts page switches to that identity before showing its profile) + profileChip(pk, size, onOpen) { const big = size === 'lg'; return h('span', { class: 'zap-chip' + (big ? ' lg' : ''), - onClick: (e) => { e.stopPropagation(); openProfile(pk); }, + onClick: (e) => { e.stopPropagation(); if (onOpen) onOpen(); else openProfile(pk); }, }, avatar(pk, 'chat-avatar ' + (big ? 'chip-lg' : 'mini'), false), h('span', { class: big ? '' : 'small' }, displayName(pk))); }, @@ -8501,6 +8503,7 @@ export function messagesFeature(ctx) { // the same start, but only the follows of an identity that follows // nobody yet — an established nostr user keeps their own list. identitySignedInNew() { setTimeout(() => seedNewIdentity({ onlyIfNoFollows: true }), 0); return true; }, + openProfile(pk) { openProfile(pk); return true; }, init() { const session = ++feedWarmSession; // this wallet's cached faces, from its own namespace — the keys are |
