Give immediate feedback when awarding an issuable
requested to merge KevSlashNull/gitlab:Give-immediate-feedback-when-emoji-reacting-to-a-comment into master
What does this MR do and why?
This makes reactions on issuables appear immediately after clicking. The change makes the UI more “fluid” (source) as it optimistically shows the awarded emoji to the user without having to wait on the backend to process the award.
Screenshots or screen recordings
How to set up and validate locally
- Go to an issuable, such as an issue or merge request
- React to the issue
- See that the awarded emoji was rendered immediately
- Remove the reaction
- See that the awarded emoji is no longer visible (or the count is 0 for thumbsup/-down)
If an error occurs, the reaction will be reverted.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Kev