Page MenuHomePhabricator

Add search form to AutosuggestSitelink so the result list can be changed
Closed, ResolvedPublicFeature

Description

The search results that are currently shown in the AutosuggestSitelink gadget are based on a search for the current page's title (without namespace). This works sometimes, but as tasks such as T329967 indicate, there are variations on the page title that would be useful to be able to search for.

To make it most flexible, it could be a good idea to add a search box above the search results, prefilled with the current title but modifiable by the user. The search results would dynamically update with the same behaviour as the autocomplete does for the main search box on Wikidata.

Details

Related Changes in GitLab:
TitleReferenceAuthorSource BranchDest Branch
Fix margins of search input and warning message contentsrepos/commtech/autosuggest-sitelink!63samwilsonsearch-marginmain
Customize query in GitLab

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

If not a search form directly in the dialog, we could link to the search form or results on Wikidata. But I do think a search form would be useful (many times I've been using it and wanted to change the search terms).

waldyrious renamed this task from Add search form so the result list can be changed to Add search form to AutosuggestSitelink so the result list can be changed.May 2 2024, 7:49 PM
waldyrious updated the task description. (Show Details)
HakanIST subscribed.

Added a SearchInputWidget prefilled with the page title (with 300ms debounce), so users can refine the search term when the automatic title match fails. This also addresses the core issue in T329967 and includes a fix for T389611 (empty parentheses).

The new search form appears a bit close to the message shown when there are no results:

image.png (355×523 px, 45 KB)

I've made a patch to fix that.

And we'll also want to update the message for that warning, to include something about being able to search.