Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Order users in autocomplete by length #6348

Conversation

SimonBrandner
Copy link
Contributor

Fixes element-hq/element-web#15609


Screenshot_20210711_084053


This isn't an ideal solution since it doesn't take the server part of mxids into account when searching for the reasons explained in element-hq/element-web#15609 (comment)

Signed-off-by: Šimon Brandner <[email protected]>
Signed-off-by: Šimon Brandner <[email protected]>
@turt2live turt2live requested review from a team July 11, 2021 08:46
@dbkr dbkr added the T-Defect Bugs, crashes, hangs, vulnerabilities, or other reported problems label Jul 15, 2021
Copy link
Member

@turt2live turt2live left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the code looks fine, though personally I'd prefer a relevancy metric over a length metric. If I share a lot of rooms with Matthew, and ping Matthew a lot, and talk to Matthew a lot, I probably want to ping that Matthew.

src/autocomplete/UserProvider.tsx Outdated Show resolved Hide resolved
SimonBrandner and others added 2 commits July 22, 2021 07:43
Signed-off-by: Šimon Brandner <[email protected]>

Co-authored-by: Travis Ralston <[email protected]>
@MadLittleMods MadLittleMods requested review from a team and removed request for a team September 15, 2021 00:14
@MadLittleMods
Copy link
Contributor

This seems like more of a product decision vs a design thing. Switched the reviewers ⏩

@nadonomy
Copy link
Contributor

nadonomy commented Aug 5, 2022

@SimonBrandner I know this has been a while but I think this is a risky change so we should close/not merge this.

I can see the attraction of exact matching if searching for something short, but we'll break peoples existing muscle memory so it's a really high risk change. I also agree with Travis's comment that we should figure out some smarter relevancy metrics instead, perhaps informed by space membership too.

Sorry to be the bearer of bad news!

@SimonBrandner
Copy link
Contributor Author

No worries, makes sense, could you please comment/close the issue?

@SimonBrandner SimonBrandner deleted the fix/order-users-by-length/15609 branch August 5, 2022 13:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Defect Bugs, crashes, hangs, vulnerabilities, or other reported problems
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Username completion ordering: shorter/exact match sorted after longer incomplete match
5 participants