zulip/web
N-Shar-ma 4dc1b2f812 typeahead: Always show exact matches first for streams and users.
We refactor the triage function to optionally take in a comparator
function, and use this to sort the results, except any exact match,
which is placed highest. Now we don't need to sort the results of triage
for streams, languages and slash commands since we just pass in the
comparator function. The overall effect is same as before, except that
exact matches are always shown first.

For users, we can't use the new triage feature to achieve this goal
without sorting `rest` and breaking a key optimization, so we just add
a bit of manual code for the job.

Fixes: #25123.
2023-04-27 12:45:26 -07:00
..
e2e-tests e2e-tests: Fix ensure_enter_does_not_send. 2023-04-25 19:30:35 -07:00
generated
html
images navbar: Add Ionic search icon and use for navbar search. 2023-03-24 16:30:15 -07:00
shared typeahead: Always show exact matches first for streams and users. 2023-04-27 12:45:26 -07:00
src typeahead: Always show exact matches first for streams and users. 2023-04-27 12:45:26 -07:00
styles compose: Show banner if user is not allowed to post in the stream. 2023-04-27 12:31:40 -07:00
templates left-sidebar: Provide link to scheduled messages. 2023-04-27 12:13:59 -07:00
tests typeahead: Always show exact matches first for streams and users. 2023-04-27 12:45:26 -07:00
third search: Fix display of suggestion box when search bar empty. 2023-04-24 21:45:06 -07:00
.browserslistrc webpack: Move webpack configuration to web. 2023-02-24 06:35:58 -08:00
.gitignore
babel.config.js dependencies: Upgrade JavaScript dependencies. 2023-04-25 22:18:48 -07:00
debug-require-webpack-plugin.ts
debug-require.js
postcss.config.js postcss: Enable postcss-preset-env. 2023-03-20 11:26:30 -07:00
webpack.assets.json webpack: Move webpack configuration to web. 2023-02-24 06:35:58 -08:00
webpack.config.ts eslint: Fix @typescript-eslint/prefer-nullish-coalescing. 2023-04-19 16:52:39 -07:00
webpack.dev-assets.json webpack: Move webpack configuration to web. 2023-02-24 06:35:58 -08:00