Page MenuHomePhabricator

[Semantic Search] Add semantic search CTA in suggestion/typeahead search
Open, HighPublic2 Estimated Story Points

Description

Add semantic search CTA at the top of suggestion/typeahead search affordance which will initialize semantic search flow when clicked/tapped. See figma.

At first glance, that typeahead component lives in Codex and, while there is support for a "footer" entry, there is no pre-existing code for anything to be displayed on top of the results.
If this can easily be integrated properly into the typeahead component, that would be ideal.
If not, given the current time constraints and uncertainty about whether this is something that will stick around after an experiment, we are ok with any hacky solution for now. One option could be a MutationObserver that looks for the typeahead autocomplete menu to appear and, if so, adds the CTA in the appropriate place.

Acceptance criteria

  • When typeahead suggestions appear, this CTA is added above them, at the top
  • CTA contents update with every keystroke to accurately reflect the search input
  • CTA links to Special:SemanticSearch with the input field's search term prefilled (?search=term)
  • CTA is not added by default for now, but requires e.g. a (default-off) config var to be set (T438446 will seek to enable this later on)

Event Timeline

Assuming this task is about the Semantic Search project, hence adding that project tag so other people who don't know or don't care about team tags can also find this task when searching via projects or looking at workboards. Please set appropriate project tags when possible.

SherryYang-WMF renamed this task from [Semantic Search] Consume trigger for semantic search to [Semantic Search] Add semantic search CTA in suggestion/typeahead search.Sep 9 2026, 3:49 PM
SherryYang-WMF updated the task description. (Show Details)
SherryYang-WMF updated the task description. (Show Details)
SherryYang-WMF set the point value for this task to 2.Sep 9 2026, 5:03 PM