RocketChat / RocketChat/Rocket.Chat

User Autocomplete Dropdown Fails to Prioritize Target Usernames, Limiting Role Assignment

Open
#30,599 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Description:

Username autocomplete functionality in the "Add Roles to User" menu is inefficient. When trying to add roles to a user by searching for their username, the current setup fills the autocomplete dropdown based on alphabetical sorting without considering if the username starts with the search term. This results in a cumbersome experience, especially since the dropdown is limited to 10 items.

Steps to reproduce:

Open the "Add Roles to User" menu.
Start typing a username you intend to assign a role to.
Observe the items that appear in the autocomplete dropdown.
Expected behavior:
The dropdown should prioritize usernames that start with the search term for quicker and more efficient role assignment.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start from the “Add Roles to User” menu and reproduce the username search described in the issue, checking how the autocomplete results are ordered and limited to 10 items. Done means usernames beginning with the search term are prioritized in the dropdown, while role assignment continues to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.