Just filing this since it has come up a few times recently in various settings. I want to modernize the typeahead datsource code soon. Particularly:
- I want to improve the result UI. D7250 makes some steps toward this. I think the icons in the tokens themselves are really good, but the dropdown needs some work.
- We have recurring issues where the default typeahead matches exclude closed objects, like disabled users and archived projects. Most of the time this is good, but at least some of the time you want to select them. Currently, ew kind of go switch over to the "stuff, with disabled stuff" version of the endpoint on a field-by-field basis. Instead, I want to try sorting these to the bottom and showing "Disabled" or "Archived", and maybe giving them a visual distinction like a grey background, so it's clear that you're choosing an inactive user/object but the typeahead lets you do it if that's what you want.
- The typeahead code itself is really messy and not modular. I want to modularize datasources so applications can provide them and third-party code could build new typeahead sources. This is probably not very hard, since the code is reasonably well-seaparated already.