Skip to content

Only show custom emoji from current group in frequently used emoji

What does this MR do and why?

Currently, the user's frequently used emojis group shows their 9 most recently used emoji, regardless of whether they are custom emoji in the current group or not. This means that custom emojis that are not from the current group will show as a "?" placeholder in the frequently used category.

This MR filters those emojis out of the Frequently Used category.

Screenshots or screen recordings

In the screenshots below, the user's 9 most recently used emojis include 2 emoji that are custom emoji within a different group than the current page's group.

Before After
image image

Here the emoji picker is seen within the group that owns those custom emojis (note: there is no change here):

Before After
image image

How to set up and validate locally

  1. Check out this branch
  2. In the GDK, add one or more custom emojis in a group (you can do this at http://gdk.test:3000/groups/flightjs/-/custom_emoji/). Let's refer to this group as Group A.
  3. Use at least one of Group A's custom emojis you have added to react to an issue or MR inside Group A. You should see it in your frequently used emojis list.
  4. Navigate to a different group in the GDK. Let's call this group Group B.
  5. Use the emoji award button on an issue or MR
  6. You should not see any of the Group A custom emojis in your frequently used emojis list.

Merge request reports

Loading