Page MenuHomePhabricator

Fix blur and sort behavior for autocomplete
ClosedPublic

Authored by epriestley on Jan 15 2016, 5:32 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 16, 3:49 AM
Unknown Object (File)
Sat, Dec 14, 2:42 PM
Unknown Object (File)
Fri, Dec 13, 11:45 PM
Unknown Object (File)
Thu, Dec 12, 6:18 AM
Unknown Object (File)
Sun, Dec 8, 5:02 PM
Unknown Object (File)
Oct 20 2024, 1:25 PM
Unknown Object (File)
Oct 7 2024, 6:10 PM
Unknown Object (File)
Sep 10 2024, 2:39 AM
Subscribers
None

Details

Summary

Ref T10163.

  • If you click a result, we get a blur before your click hits, and deactivate before the click can work. Instead, wait before responding to blur.
  • Use the standard sort handler which puts unixnames over human names. Also use the standard filter which deals with disabled users not matching unless they're the only match.
Test Plan
  • Clicked a result, got a replacement.
  • Named myself "dog dog", typed "@dog", user "@dog" was now first match despite me being "@admin".
  • Used normal typeaheads to make sure I didn't break sort handler.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Fix blur and sort behavior for autocomplete.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Jan 15 2016, 5:33 PM
This revision was automatically updated to reflect the committed changes.