diff options
| author | Adam Soltys <[email protected]> | 2026-12-06 12:35:13 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-12-06 12:35:13 -0700 |
| commit | 427eb66162dc3482e3cfba2613aa87b06f5340d7 (patch) | |
| tree | b7d3b120767825ea3f5de84ea1d27c4d1c4a0da2 /src/features/messages.js | |
| parent | f15e3b23c94fb36886e5201984d27a2509428cc9 (diff) | |
| download | coinosv3-427eb66162dc3482e3cfba2613aa87b06f5340d7.tar.gz coinosv3-427eb66162dc3482e3cfba2613aa87b06f5340d7.zip | |
Gift sender chip: the hat isn't cut off, the face waits for the real picture, and no "Claiming it follows them" line.HEADmaster
"Hat cut off here and also the avatar showed a punk first before the right one appeared can we fix that so it loads the right avatar right away? Also let's remove the text about how claiming follows" (Adam, 2026-12-06, a 5 CAD gift from him on the claim screen). The chip's `.zap-chip > span { overflow: hidden }` (meant for the name) also clipped the .hat-wrap span; it now skips .hat-wrap. A small face gave up after 1 s and drew punk art while the sender's profile was still loading; profileChip's new 'wait' size makes the face wait for the lookup like a profile page's does (quiet circle, then the real picture; punk only if they have none). The follows line is gone from the screen and all locales (claiming still follows the sender). gift-from-test checks all three; features-smoke passes.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VMan6WoqaQDYdpWkatPCar
Diffstat (limited to 'src/features/messages.js')
| -rw-r--r-- | src/features/messages.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/features/messages.js b/src/features/messages.js index f2a3f8e..afb8a0a 100644 --- a/src/features/messages.js +++ b/src/features/messages.js @@ -4116,7 +4116,7 @@ export function messagesFeature(ctx) { const sendFace = cls.includes('send-avatar'); // A profile page's own face is the same: the one big picture on the // page, never punk art while that person's lookup is still running. - const pageFace = cls.includes('profile-avatar'); + const pageFace = cls.includes('profile-avatar') || cls.includes('wait-face'); const waiting = (p === null || (p && p.loading && !p.picture)) && (sendFace || pageFace ? p === null || profQueue.has(pk) || profInFlight.has(pk) || fullInFlight.has(pk) : faceWaiting(pk)); const node = feedPaint && !p.picture @@ -20013,13 +20013,15 @@ export function messagesFeature(ctx) { async saveProfileDraft(e) { const id = await identity(); return withKind0Lock(() => saveProfileNow(id, { name: '', about: '', picture: '', banner: '', ...e })); }, // opens the profile, unless the caller has a step to take first (the // Accounts page switches to that identity before showing its profile) + // size 'wait': a small chip whose face stays blank until that person's + // lookup settles, never punk art first (a gift's sender, 2026-12-06) profileChip(pk, size, onOpen) { const big = size === 'lg'; return h(big ? 'button' : 'span', { class: big ? 'send-person' : 'zap-chip', type: big ? 'button' : undefined, onClick: (e) => { e.stopPropagation(); if (onOpen) onOpen(); else openProfile(pk); }, - }, avatar(pk, 'chat-avatar ' + (big ? 'send-avatar' : 'mini'), false), + }, avatar(pk, 'chat-avatar ' + (big ? 'send-avatar' : size === 'wait' ? 'mini wait-face' : 'mini'), false), h('span', { class: big ? '' : 'small' }, displayName(pk))); }, // a gift link names its sender: sign its template as us (gifts.js) |
