Page MenuHomePhabricator

Indicate on label search results if they are aliases, and show their primary label
Closed, ResolvedPublic

Description

e.g. Wikidata shows search results as Foo (Bar) when the user searches for 'Bar' and gets the result of 'Foo'; something similar might make sense for us, at least at first?

Event Timeline

Change 715052 had a related patch set uploaded (by Lindsay Wardell; author: Lindsay Wardell):

[mediawiki/extensions/WikiLambda@master] Display labels on alias searches in the ZObjectSelector

https://gerrit.wikimedia.org/r/715052

Change 715052 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Display labels on alias searches in the ZObjectSelector

https://gerrit.wikimedia.org/r/715052

Do we want to do more on this to cope with when labels / aliases have ()s in them?

Change 715605 had a related patch set uploaded (by Lindsay Wardell; author: Lindsay Wardell):

[mediawiki/extensions/WikiLambda@master] Properly find the selected ZObject when an alias record is selected

https://gerrit.wikimedia.org/r/715605

Change 715605 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Properly find the selected ZObject when an alias record is selected

https://gerrit.wikimedia.org/r/715605

The AutocompleteSearchInput component we're using takes the labels as plain text, so we can't style the label and alias differently. Let's declare this done for now.