When I want to add multiple labels, I often start typing the label name, and when label appears in dropdown I hit enter to choose it.
When I want to find and add next label, I need to remove all previously typed characters and start the search again.
Proposal
If we could make Enter key to clear label name filter field in the dropdown, it would save few miliseconds each time someone wants to add multiple labels using enter key to select the label.
Current flow
Suggested flow
Designs
Child items
...
Show closed items
Linked items
0
Link issues together to show that they're related or that one is blocking others.
Learn more.
Grzegorz BizonChanged title: Clear search filter in labels dropdown after someone hits entery key → Clear search filter in labels dropdown after someone hits enter key
Changed title: Clear search filter in labels dropdown after someone hits entery key → Clear search filter in labels dropdown after someone hits enter key
enter key doesn't sound like a clear key to me. I think enter acts more as a search key. But i'm not sure what key would work better as esc closes the dropdown.
Agreed with this suggestion. Just to visualize it:
Current flow
Suggested flow
The suggested flow is definitely more efficient. The only concern I can think of with the suggested flow is that if we clear the search term the moment you hit Enter, you might not see your selected label in the label list. However, we update the field above the dropdown with the list of labels, and I think with gitlab-foss#23008 (moved), feedback will be even more clear that you successfully added the label. So I believe this shouldn't be a problem.
I'll update the issue body with this. Let me know if there are other concerns or questions. Thanks!
@awhildy I always wondered why we don't show the applied labels at the top of the list. Maybe doing that could help with the list being reset after you hit Enter?
Good thought @cperessini! Yea - I briefly wondered if there was a reason for that, but didn't look into it. There might have been something about not wanting labels to jump around when you click on them to select them or not, but I'm not sure there is a real problem there. Just for another pair of UX eyes: @pedroms: do you see any concerns if we move selected labels to the top of the dropdown list? If not, I think we should go for it (though maybe we can open another issue for it to keep these issues small and focused )