Page MenuHomePhabricator

Add search bar to Homepage
Open, In Progress, Needs TriagePublicFeature

Description

Feature summary
I'd like to have a search bar that would allow users to GET tasks for a particular tool.

In terms of appearance and functionality, I'd like to reconstruct what I built here: https://nbarnabee.github.io/outreachy/ (click on "Search for a tool")

To handle the auto-fill, we'd want to implement caching to store the names and truncated descriptions of the tools in our database. (Now that I've seen more of the database, I realize that some of these tools have long descriptions.)

Benefits

A search bar would make it just that little bit easier and more convenient for users to make use of Toolhunt -- perhaps they already know something about a particular tool, for instance. (I, for instance, was just thinking that I'd like to use our tool to update our tool's own listings! But out of 20,000+ tasks, what are the odds that a task pertaining to Toolhunt or Toolhunt-API is going to pop up?)

Could this possibly be a Hackathon project?

Event Timeline

NicoleLBee renamed this task from Add search function to Homepage to Add search bar to Homepage.Mar 23 2023, 3:58 PM
NicoleLBee changed the task status from Open to In Progress.EditedMay 20 2023, 5:41 PM
NicoleLBee claimed this task.
NicoleLBee moved this task from Backlog to In review on the Toolhunt board.

I'm happy to report my success! PRs open at https://github.com/wikimedia/toolhunt/pull/61 for the backend and https://github.com/wikimedia/toolhunt-ui/pull/63 for the frontend.

I haven't truncated the tool names, which does result in some visual oddities. I'll keep working on this.

I should note that this branch is currently LIVE ON PRODUCTION, yes I know that's a bad idea but the problems with toolhunt-staging make it impossible for me to actually use it as a test environment.