Project Topics - Allow new topics to be created always
requested to merge gitlab-ui-integration-cuddyz-token-selector-support-new-button-always into master
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
- Navigate to a Project
- Go to Settings -> General in the sidebar
- At the top of the page, find the Topics section
- Ensure you can properly update, change, create, and search topics
- Note: New topics aren't actually created until you click Save changes on the Project setting page
Edited by Zack Cuddy