Draft: Use GlCollapsibleListbox for user_select.vue
requested to merge 418103-migrate-app-assets-javascripts-vue_shared-components-user_select-user_select-vue-to into master
What does this MR do and why?
- Replace
GlDropdown
withGlCollapsibleListbox
inuser_select.vue
- Update
sidebar_assignees_widget.vue
logic to use array of username strings instead of user objects to align with the expected value prop withinGlCollapsibleListbox
- Append user items with
value
property which clones username value - Update "Invite members"
trigger-element
to tertiary button with styles - Add
category
prop ininvite_members_trigger.vue
bound toGlButton
- Remove wrapping
<gl-dropdown-item>
from#footer
template insidebar_assignees_widget.vue
Screenshots or screen recordings
Before | After |
---|---|
CleanShot_2023-10-17_at_17.47.34 | CleanShot_2023-10-18_at_16.57.04 |
State | Before | After |
---|---|---|
Unassigned | ||
Search | ||
Single assignee | ||
Multiple assignees |
How to set up and validate locally
- Go to Issue or MR and assign user(s)
- Search for users in listbox
- Unselect users
- Unassign all users
- Press "Invite members" footer button
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 #418103
Edited by Scott de Jonge