julianlam / nodebb-plugin-mentions

NodeBB Plugin that allows users to mention other users by prepending an '@' sign to their username
BSD 2-Clause "Simplified" License
20 stars 40 forks source link

Mentions strange sort with groups #117

Open alfazaz opened 4 years ago

alfazaz commented 4 years ago

Hello !

I don't understand sort of mentions autocomplete list. For example, when I begin to type @a

in composer on nodebb community forum, it gives image

Is it possible to have a greatest sorting ? If @a is typed, only propositions beginning with the a letter should be proposed at first (in alphabetical order), for groups and users. No ?

It's annoying if there are many many mentions possibles because the dropdown has only ten items in it... Bad items are showing first and we can't see good items...

julianlam commented 4 years ago

You're correct, it's bugged out, and has been for quite some time. What's supposed to happen is a list of matching users and groups are returned. It doesn't seem like the groups are filtered properly (or at all!) :smile:

barisusakli commented 4 years ago

Looks like it's matching anything that contains a instead of those starting with a. Might be intentional.

alfazaz commented 4 years ago

If it is intentional, it's not great because of the limitation to ten items in the dropdown...

For example, if I have many groups with close names (promo-00-01, promo-01-02, etc...), we can't see all of these (see https://github.com/julianlam/nodebb-plugin-mentions/issues/118) and there can be unshowed items in dropdown also by a replacement by other terms which don't begin with p letter...

I think the dropdown selector could be improved (see also https://github.com/julianlam/nodebb-plugin-mentions/issues/119).

;-)