Files
grimoire/src
Claude 6a579ce1d1 feat(editor): show usernames when pasting npub/nprofile mentions
When pasting npub or nprofile URIs, the editor now looks up the profile
from the event store cache and uses the display name if available.

Changes:
- Add getDisplayNameForPubkey helper function
- Import eventStore and profile helpers
- Synchronously check if profile is cached via .value property
- Use getDisplayName from nostr-utils for consistent formatting
- Falls back to short pubkey (first 8 chars) if profile not cached

Result:
- Paste npub1abc... → shows "@alice" if profile is cached
- Paste npub1abc... → shows "@abc12345" if profile not cached
- Consistent with typed @mentions behavior
- No async delays or loading states needed
2026-01-20 20:16:17 +00:00
..
2026-01-20 17:28:57 +01:00
2026-01-14 19:24:37 +01:00
2026-01-19 16:47:12 +01:00