tshenry
(Taylor)
Janvier 23, 2025, 4:30
13
Cela nécessiterait certainement une mise à jour suite à :
main ← jjaffeux:unify-emoji-pickers
opened 03:01PM - 08 Aug 24 UTC
The chat emoji picker is renamed emoji-picker, and the old emoji-picker is remov… ed.
This commit doesn't attempt to fully rework a new emoji-picker but instead tries to migrate everything to one picker (the chat one) and add small changes.
Other notable changes:
- all the favorite emojis code has been mixed into one service which is able to store one state per context, favorites emojis will be stored for all topics, and for each chat channel. Meaning that if you always use a specific emoji in a channel, it will only show as favorite emoji in this channel.
- a lot of static code has been removed which should improve initial load perf of discourse. Initially this code was around to improve the performance of the emoji picker rendering.
- the emojis are now stored, once the full list has been loaded, if you close and reopen the picker it won't have to load them again.
List of components:
- `<EmojiPicker />` will render a button which will open a dropdown
- `<EmojiPickerContent />` represents the content of the dropdown alone, it's useful when you want to render a picker from an action which is not the default picker button
- `<EmojiPickerDetached />` just a simple wrapper over `<EmojiPickerContent />` to make it easier to use it with `this.menu.show(...)`
Malheureusement, je n’ai pas la bande passante pour le mettre à jour pour le moment. Si quelqu’un veut tenter le coup, je serais plus qu’heureux d’examiner une PR.
Pour l’instant, je crains de devoir le marquer comme cassé
Gardez à l’esprit qu’il existe le paramètre de site liste d'interdiction d'emoji. C’est fastidieux si vous voulez supprimer des tonnes d’emojis, mais c’est une option.
2 « J'aime »