Skip to content

Project Topics - Allow new topics to be created always

What does this MR do and why?

Implements GitLab UI changes: gitlab-ui!4432 (merged)
Closes customer issue: #386864 (closed)

This change adds the new prop showAddNewAlways to the token selector to allow customers to add a new topic even if there are similar ones in the list.

Screenshots or screen recordings

Existing funcitionality parity

All existing functionality should still function.

Before After
No existing topics Before_-_No_existing_topics After_-_No_Existing_Topics
With existing topics Before_-_With_Existing_Topics After_-_With_Existing_Topics
Searching Before_-_Searching After_-_Searching

Bug fix

When fuzzy search returns non-exact results, it is not possible to create a new topic. This is fixed in this MR.

Before After
Bug Fix Before_-_BUG After_-_Bug_Fix

How to set up and validate locally

  1. Navigate to a Project
  2. Go to Settings -> General in the sidebar
  3. At the top of the page, find the Topics section
  4. Ensure you can properly update, change, create, and search topics
  5. Note: New topics aren't actually created until you click Save changes on the Project setting page
Edited by Zack Cuddy

Merge request reports

Loading