Skip to content

Add token selector input for work item assignees

Natalia Tepluhina requested to merge 334810-add-assignees-input into master

What does this MR do and why?

  • adds a token selector to Work item view
  • adds 2 mock tokens user can delete from the token selector
  • adds a mock local mutation to update Apollo cache on selector blur
  • adds an empty state when WI has no assignees

What is missing?

  • we are not able to add assignees yet
  • we don't have Add assignees token in the token selector itself as our GitLab UI component doesn't allow this level of customization
  • icon for Add assignees is a bit different from the design - I selected the closest one I could find on https://gitlab-org.gitlab.io/gitlab-svgs/

Screenshots or screen recordings

Screen_Recording_2022-06-07_at_10.09.09

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 cross icon on token to remove assignee

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