Repository navigation
feat(reactions): Show emoji names on reactions hover - #20088
nickvergessen wants to merge 2 commits into
Conversation
Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Joas Schilling <coding@schilljs.com>
This comment was marked as off-topic.
This comment was marked as off-topic.
| </template> | ||
|
|
||
| <div v-if="hasReactionsLoaded" class="reaction-details"> | ||
| <span v-if="getEmojiTitle(reaction)" class="reaction-details__name">{{ getEmojiTitle(reaction) }}</span> |
There was a problem hiding this comment.
Template shouldn't call functions in general:
- By design, it declares the result, not compute it. We don't control when and how this code is executed and only provide to the renderer rendering result declaration
- Functions may have side effects (appearing uncontrolled) of performance impacting entire rendering, blocking the thread
That's fine for small utils or formatting functions.
But getEmojiTitle is extremely low-performant function in the worst case due to EmojiIndex build, if it is the first run. We cannot guarantee, this call won't block entire app render for a second.
There was a problem hiding this comment.
The best is to support async getEmojiTitle. Then it would support performant versions of the emoji functions when we refactor them.
There was a problem hiding this comment.
I tried that, but was not able to understand the resulting code in Talk anymore, with watchers being added to monitor the async responses and so on.
If that is really required someone needs to take over.
There was a problem hiding this comment.
I updated the Agetns.md with that hint never the less
There was a problem hiding this comment.
If that is really required someone needs to take over.
To check if that's needed you can:
- Check the first function call performance on the library side (so no other calls affect the result). If it's around 1 frame time (e.g. 10-20ms) - it is not a problem.
- Check the same in
spreedspecifically. If the firstgetEmojiTitlecall is fast, then we lost this time somewhere earlier already. In this case this function will only create a problem when we fix the existing one.
|
To have green CI and manual testing PR without local npm link, you can:
|
To |
Having reactions on your message and not being able to identify them |
I checked it because from my POV there is nothing to clarify with Design and Nimisha is out for now |
Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Joas Schilling <coding@schilljs.com>
|
I would also expect NewMessage field and NcEmojiPicker to show such hints, but not the chat area and reactions popup. Other thing if we need that to be in aria-label for a11y? |
In theory, if the However, during BITV Test it was required to have |

Assisted-by: ClaudeCode:claude-opus-5-5
☑️ Resolves
AI (if applicable)
🖼️ Screenshots / Screencasts
Might need a bit more fine tuning with long names
🏁 Checklist