Implement adding assignees to work item
What does this MR do and why?
This MR implements UI for searching and adding assignees to work items. The only "real" query so far is fetching project members, the mutation to set assignees is a @client
mutation.
What is done
- debounced search showing matching results
- adding assignees via mouse clicks and keyboard
- loading state for the dropdown
What is not done
- "Clear all" button (not a part of
token-selector
functionality, should be added as a separate MR) - "Invite members" link
- Displaying the current user on the top of the list
Screenshots or screen recordings
How to set up and validate locally
-
Enable the MVC-2 feature flag
Feature.enable(:work_items_mvc_2)
-
Open work item view
-
Click on assignees
-
Click on the cross icon on the token to remove the assignee
-
Type in the input field and select the assignee to add
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 #334810 (closed)
Edited by Natalia Tepluhina