Mattermost-server: Change at-mention autocomplete to prioritize entries where the username starts with the search string

Created on 20 Jun 2017  路  6Comments  路  Source: mattermost/mattermost-server

If you're interested please comment here and come join our "Contributors" community channel on our daily build server, where you can discuss questions with community members and the Mattermost core team. For technical advice or questions, please join our "Developers" community channel.

New contributors please see our Developer's Guide, specifically for machine setup and for developer workflow.


Notes: Jira ticket

Change at-mention autocomplete to prioritize entries where the username starts with the search string

For the at mention autocomplete, it should sort users based on their username, but any user with their username starting with the search string should go first.

To give some context, if you search for "te" in the auto-complete right now on pre-release, you get the following results.

image

What you expect is this (those starting with "te" appear first, followed by other users in alphabetical order)

image

NOTE: You can compare to how the sorting is done for channel switcher shortcut (CTRL+K) https://github.com/mattermost/platform/pull/6486

Also, here is a start of a PR to get you started: https://github.com/mattermost/mattermost-webapp/pull/15

AreEnd User Feature Medium Help Wanted PR Exists TecReactJS

All 6 comments

Should this be done on the back or the front side? I am willing to fix this.

@mikaoelitiana - front end should be fine for this, thanks!

This seams to be fixed. @jasonblais Would you please confirm as you are the reporter of the ticket?

@hanzei Not yet fixed, attached screenshot is from Mattermost 5.10

image

Hi, can I work on this one?

@pqzx certainly, thank you for your interest!

Was this page helpful?
0 / 5 - 0 ratings