Page MenuHomePhabricator

Add autocomplete/lookahead search to home page search bar
Closed, ResolvedPublicFeature

Description

User Story

Let's say i'm looking for Depictor. Maybe i have used the tool before but i'm not sure if it's called "Depictor", "Depicorate" or "Depictify". > Right now if i just search for "depict" i get no results, even though the tool is available in the Toolhub.
It would be great if i could just type the first couple of characters and get a list of suggestions.
Compare this to my original Tools Directory where the list of tools is
automatically filtered down and provides the same purpose.
I could imagine the UX would be more or less the same as the autocomplete on a random Mediawiki installation,
e.g. when using the search bar on Wikidata you get the title and a short description.

Acceptance Criteria

  • Given a tool is registered in toolhub, when I start typing the name of the tool on the home page search bar, I expect to see a list of tools that match my search criteria
  • Given a tool does not exist in toolhub, when I start typing the name of the tool on the home page search bar, I expect to see a message stating no tool was found

Event Timeline

The search bar component (SearchBar.vue) is currently implemented in Vuetify as a v-text-field. I wonder if changing the implementation to instead use v-autocomplete wouldn't be the simplest way to offer flexibe type-ahead functionality? Vuetify docs.

Raymond_Ndibe renamed this task from Add autocomplete to search bar to Add autocomplete/lookahead search to home page search bar.Dec 20 2021, 2:56 PM
Raymond_Ndibe claimed this task.
Raymond_Ndibe updated the task description. (Show Details)
Raymond_Ndibe updated the task description. (Show Details)
Raymond_Ndibe moved this task from Backlog to Groomed/Ready on the Toolhub board.

Going to be working on this today since I've worked on something similar in the past

I think that the edited task description is clear enough. If there are still some concerns let's deliberate on them

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

[wikimedia/toolhub@main] ui: Add autocomplete/lookahead search to home page search bar

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

Change 749538 merged by jenkins-bot:

[wikimedia/toolhub@main] ui: Add autocomplete/lookahead search to home page search bar

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

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

[operations/deployment-charts@master] toolhub: Bump container version to 2022-03-15-002555-production

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

Change 770638 merged by jenkins-bot:

[operations/deployment-charts@master] toolhub: Bump container version to 2022-03-15-002555-production

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