1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 00:42:41 +01:00
phorge-phorge/webroot/rsrc
epriestley 9a10413dbc Improve typeahead behavior with mixed-case matches
Summary:
Ref T8510. We had two issues with mixed-case result sorting, like typing `@joe` to match user `Joe`.

  - The fallback sort was not normalized properly, so "J" could sort after "j". Instead, normalize values for sorting.
  - The `prefix_hits` and older `priority_hits` mechanisms were competing destructively. The `prefix_hits` mechanism completely replaces the `priority_hits` mechanism. Instead, use only the `prefix_hits` mechanism.

Test Plan:
  - Copied results for "joe" from WMF.
  - Hard-coded the controller to return them.
  - Searched for `@joe`.
  - After patches, first hit is user "Joe".

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T8510

Differential Revision: https://secure.phabricator.com/D16826
2016-11-08 11:50:15 -08:00
..
css In prose diff dialogs (like "Show Details" in transactions), show "old", "new" and "diff" tabs 2016-11-07 15:18:19 -08:00
externals Improve typeahead behavior with mixed-case matches 2016-11-08 11:50:15 -08:00
favicons JX.Favicon for Conpherence 2016-10-20 12:17:50 -07:00
image Add Slack authentication adapter 2016-09-06 15:50:37 +00:00
js Improve typeahead behavior with mixed-case matches 2016-11-08 11:50:15 -08:00