Skip to content

Implement adding assignees to work item

Natalia Tepluhina requested to merge 334810-implement-adding-assignees into master

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

add_assignees

How to set up and validate locally

  1. Enable the MVC-2 feature flag

    Feature.enable(:work_items_mvc_2)
  2. Open work item view

  3. Click on assignees

  4. Click on the cross icon on the token to remove the assignee

  5. 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.

Related to #334810 (closed)

Edited by Natalia Tepluhina

Merge request reports