Parent group is not shown first in search results dropdown menu
Problem
We are trying to invite a group that has more than 20 subgroups to a project. The "Select a group" dropdown list in the "Invite a group" window only shows the first 20 items. Typing the "Parent group" in the "Search groups" field shows me a list of "Parent group / Subgroup 1" to "Parent group / Subgroup 20" elements. There is no pagination and there is no way to set "exact match" (neither a way to invite a group using api, nor the way to transfer groups from another project access settings), so we're unable to invite the "Parent group" to a project.
Proposal
List the parent group first. It is the most exact match until a user continues typing past the group name. This would also apply to subgroups that have a lot of subgroups as well so we should make it a rule that the matching group is shown first before showing subgroups.
For the example:
- Group A
- Group B
- Group C
- Group B
Typing Group A
should list in this order:
- Group A
- Group A / Group B
- Group A / Group B / Group C
Typing Group A / Group B
should list in this order:
- Group A / Group B
- Group A / Group B / Group C
Additionally, we may want to consider putting infinite scroll on this dropdown as well to show more than 20 items, but lazy loaded.