damus
damus copied to clipboard
Render Custom :shortcode: emoji support NIP-30
user story
As a Damus and emoji aficionado, I would like to be able to see & share custom emojis, so that I can increase my enjoyment of nostr.
Acceptance criteria
- Damus user can read custom shortcode emoji
- Damus user can send custom shortcode emoji
- [ ] #2055
- [ ] #2056
implementation
Example note with emoji links in tags
https://gist.github.com/mattn/9b43595824750c3794902d77ec9deb71
List of generic shortcode emojis: https://emojibase.dev/shortcodes/?
Origin
https://damus.io/nevent1qqs0hw2euptpu5k6t6ruyx6wtvvp9czzjeyr0eyj9ltru3p6gl9z8jgpramhxue69uhkummnw3ez6un9d3shjtnwda4k7arpwfhjucm0d5hsz9mhwden5te0wfjkccte9ehx7um5wghxyctwvshszythwden5te0dehhxarj9emkjmn99uqsuamnwvaz7tmev9382tndv5hsvu7lx4
Example link with shortcode:
https://damus.io/nevent1qvzqqqqqqypzq2aj4wlutzft00dg77x4x6pdjy7vnfzxk30pry5lpy6a3l0uks9aqy88wumn8ghj7mn0wvhxcmmv9uq32amnwvaz7tmjv4kxz7fwv3sk6atn9e5k7tcqyp7a3z7nlr4p4eqhyckmpkcql6rses4p23f5rlpcpaptg8upe4a07c50gha
https://njump.me/nevent1qvzqqqqqqypzq2aj4wlutzft00dg77x4x6pdjy7vnfzxk30pry5lpy6a3l0uks9aqy88wumn8ghj7mn0wvhxcmmv9uq32amnwvaz7tmjv4kxz7fwv3sk6atn9e5k7tcqyp7a3z7nlr4p4eqhyckmpkcql6rses4p23f5rlpcpaptg8upe4a07c50gha
Clients that support
Nostter noStrudel Amethyst Rabbit (I am not sure to whether it's only reactions or kind1 also)
njump will fix by https://github.com/fiatjaf/njump/pull/42
open question
How are inline emojis displayed in notecrumbs (e.g. in telegram or other places where damus.io/neventlinks are shared)?
I'm working on this
Do you think you can fit this in for current sprint @kernelkind ?
I believe I can do rendering this sprint
Can we break this issue up into multiple? I recommend the following issues:
- rendering custom emojis
- Ability to add custom emojis from local cache/db to new post
- uploading new custom emojis
Can we break this issue up into multiple? I recommend the following issues:
- rendering custom emojis
- Ability to add custom emojis from local cache/db to new post
- uploading new custom emojis
Yes, great suggestion
#2055 #2056
On Thu, Mar 14, 2024 at 02:20:29PM -0700, kernelkind wrote:
Can we break this issue up into multiple? I recommend the following issues:
- rendering custom emojis
- Ability to add custom emojis from local cache/db to new post
- uploading new custom emojis
yes, makes sense!
@jb55 has performance worries about this. Can @kernelkind @danieldaquino help test performance impacts of this feature add?
- manual test first,
- go to profiler ("xcode instruments"). SwiftUI profiler is good. Shares info about SwiftUI views (e.g. if views getting invalidated too quickly). Can help test network bandwidth.
Should collect network stats on individual components. Will suspects images. Some people suspect relay queries.
related
measure and attribute data https://github.com/damus-io/damus/issues/1838
NostrSDK supports NIP-30 https://github.com/nostr-sdk/nostr-sdk-ios?tab=readme-ov-file
cc @tyiu @joelklabo @bryanmontz
there's a lot involved to implement this well:
- rendering custom emojis (@kernelkind has a patch for this)
- collecting seen custom emojis into a local collection for later use
- updating our emoji picker to display all collected custom emojis
- exploring custom emoji sets
I can start putting together a tracking issue for this
I will use this as the tracking issue