Add emoji awards for work item
What does this MR do and why?
Add ability for user to add or remove reactions using emojis on work items. This applies to Objective, Key results and Tasks.
Similar to issues, it will have following setup:
If the user is not logged in, it will appear disabled and there will be no reaction button like below:
Screenshots or screen recordings
Screen_Recording_2023-05-08_at_8.21.34_PM
How to set up and validate locally
Prerequisites: Enable the following feature flags to create objects supporting this feature using gdk rails console
:
Feature.enable(:work_items_mvc)
Feature.enable(:okrs_mvc, Project.find_by_full_path('gitlab-org/gitlab-test'))
Steps:
- Go to any Project > Issues > List
- Create an new Objective
- Go to Objective detail page
- Click on the any
👍 or👎 button or give different reaction using "Add reaction" button - Clicking on it again will remove the emoji
On similar lines, a key result can be added to the objective in the Child objectives and key results
section. And a task comes under an issue Tasks
section.
In both, there is an option to add task/key result.
Steps to check with modal:
- Go to any Project > Issues > List
- Create an Objective or Issue
- Go to Objective/Issue detail page >
Child objectives and key results
/Tasks
section - Add a Key result/Task
- Click on the newly added item
- Click on the any
👍 or👎 button or give different reaction using "Add reaction" button - Clicking on it again will remove the emoji
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.
Related to #393599 (closed)