zulip/static
Greg Price dc6e9df43a typeahead: Don't stop midphrase matching when a second word is typed.
For example, if a user's name is "Simon Peyton Jones", we'll already
match that name on the queries "Pey" or "Peyton", as well as on
"Simon P".  We should do so on "Peyton J" or "Peyton Jones", too.

Similarly, if the user is looking for an emoji of a face in the moon
and they start by typing ":moon", we'll show them both 🌝 "moon face"
and 🌚 "new moon face", along with some other moon-related results.
If they go on to make it ":moon " or ":moon f", though -- as one very
naturally would in order to eliminate things like "waxing moon" and
"moon ceremony" -- then we mysteriously eliminate 🌚 "new moon face".
Instead, the query "moon f" should match both 🌚 and 🌝.

Found this while comparing the web/shared implementation with the
mobile implementation of emoji search.  The new behavior here
reflects what we already do for emoji search in mobile, both in the
compose box's typeahead and in the add-a-reaction screen.  The
existing behavior here seems pretty annoying, so fixing it will be
part of switching on mobile to the shared code (zulip/zulip-mobile#4636)
without regressing the user experience.

The current behavior was introduced, more or less, in 245d65eb9; then
revised in 5edbcb87f to make the logic more clear, and a fix made in
542f4766d, all 2018.  The PR thread was #8286, following issue #8279.
The old behavior before those changes was pure substring matching,
plus a trailing space was ignored (which is the part the issue was
about.)  None of the discussion touches on this question; as far as I
can tell, the fact that "Peyton J" doesn't match "Simon Peyton Jones",
nor "moon " match "new moon face", was entirely an unintentional
side effect of those changes.
2022-04-21 17:59:28 -07:00
..
assets zulip-icons: Move custom icons to shared folder. 2022-03-22 16:14:56 -07:00
audio notification_sounds: Add "Chime", the new Zulip sound used on Android 2022-03-28 12:56:54 -07:00
generated
html templates: Mark all void tags as self-closing. 2021-04-21 09:49:34 -07:00
images policies: Fix effective date on most recent DPA update. 2022-03-07 12:01:25 -08:00
js invite: Add custom option for invite expiration time in frontend. 2022-04-20 13:31:37 -07:00
shared typeahead: Don't stop midphrase matching when a second word is typed. 2022-04-21 17:59:28 -07:00
styles invite: Add custom option for invite expiration time in frontend. 2022-04-20 13:31:37 -07:00
templates settings_bots: Clarify title of "Edit bot" button. 2022-04-21 08:21:14 -07:00
third markdown: Have users report marked errors to Zulip. 2022-04-05 11:45:59 -07:00
.gitignore docs: Add missing space in “time zone”. 2022-02-24 14:05:12 -08:00