thinkingmachines/unicef-ai4d-research-bank

Searchbox

Opened this issue · 0 comments

Context:
As a data scientist / data analyst / programme specialist, I want to search the items and choose the one I'm interested in (e.g. It's labelled by country, thematic area, etc).

Link to the original milestone

Acceptance Criteria:

  • When the user clicks on the search button, it should show catalogue items that have the search term in their name.
  • The search box should give suggestions once the user has placed at least 3 characters.
  • The suggestions should show at most 10 entries.
  • When the user clicks on a suggestion, it should redirect to the catalogue item page and auto-populate the search bar with the selected suggestion's name.
  • The user should be able to clear the value of the search box by clicking the "X" button.
  • The search suggestions should show the ff information:
    • catalogue item name
    • country / region
    • year
    • organization
  • If the user has not inputted anything in the searchbox, the catalogue items should still displays items based on the filters.