Page MenuHomePhabricator

Remove ID from autosuggest on search input form and add descriptions
Closed, ResolvedPublicFeature

Description

When searching for a tool (e.g. from the homepage) the suggestions now take the form

<id> (<name of tool>)

For example, when searching for 'depict' you get a suggestion list like this:

  • depicts (Common Depicts)
  • hay-depictor (Depictor)
  • wade (Wikidata Art Depiction Explorer)

Those ids are mainly used to provide an unique URL to the tool. I don't think it provides any value to the user displaying these in the autocomplete. Just give the name of the tool:

  • Commons Depicts
  • Depictor
  • Wikidata Art Depiction Explorer

Even better: also provide the short description in the autosuggest so people have a quick notion of what to expect:

  • Commons Depicts - displaying depictions of Wikidata items on Wikimedia Commons
  • Depictor - Add structured data statements to Wikimedia Commons using a game-like interface
  • Wikidata Art Depiction Explorer - Add depicts statements to works of art.

Event Timeline

bd808 triaged this task as Medium priority.Apr 20 2022, 4:41 PM
bd808 changed the subtype of this task from "Task" to "Feature Request".
bd808 moved this task from Backlog to Groomed/Ready on the Toolhub board.

I don't think it provides any value to the user displaying these in the autocomplete.

Except when there are multiple tools with identical (or similar) Title.

Even better: also provide the short description in the autosuggest so people have a quick notion of what to expect

Descriptions can be up to 65535 characters in length, so I wouldn't call them short.

When I search for pywikibot the only way I know which one is correct (pywikibot) is the id. Putting the description in the search would help if I could edit the misleading toolforge-pywikibot entry.

@JJMC89: i could imagine that for the case you're mentioning here it might be useful to display the id *after* the title/description, although i can't estimate how big of a problem this actually is.

Concerning descriptions: you're right that they can be very long so they should probably be trimmed to 200 characters or so in the autocomplete box.

Concerning descriptions: you're right that they can be very long so they should probably be trimmed to 200 characters or so in the autocomplete box.

When the team talked about this earlier this week, we felt that line-clamping similar to what is currently done in the card view of a tool would be a reasonable approach to limiting the display of each description.

Change 785379 had a related patch set uploaded (by Raymond Ndibe; author: Raymond Ndibe):

[wikimedia/toolhub@main] api: use title and description for autocomplete

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

Change 785380 had a related patch set uploaded (by Raymond Ndibe; author: Raymond Ndibe):

[wikimedia/toolhub@main] ui: use title and description for autocomplete

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

Raymond_Ndibe moved this task from Groomed/Ready to Review on the Toolhub board.
Raymond_Ndibe moved this task from Backlog to In Review on the User-Raymond_Ndibe board.

Change 785380 merged by jenkins-bot:

[wikimedia/toolhub@main] ui: use title and description for autocomplete

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

Change 785379 merged by jenkins-bot:

[wikimedia/toolhub@main] api: use title and description for autocomplete

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

Change 792696 had a related patch set uploaded (by BryanDavis; author: Bryan Davis):

[operations/deployment-charts@master] toolhub: Bump container version to 2022-05-17-072641-production

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

Change 792696 merged by jenkins-bot:

[operations/deployment-charts@master] toolhub: Bump container version to 2022-05-17-072641-production

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