socialgenomics / discover-frontend

Ember frontend for Repositive discovery platform
0 stars 0 forks source link

Search suggestions UI #902

Closed simplesquare1 closed 7 years ago

simplesquare1 commented 7 years ago
  1. User types first letter of the keyword and dropdown will appear with:
    • three suggested words .These will be based on all previous searches for now (in future we will do something smarter :)
    • three words of the disease names

2.0 When user hover over any of these keywords the background will change colour (use the colour from other hover effects we have on platform) 2.1 When user press ⬇️ key the background of the selected keyword will change colour.

  1. When user clicks on the suggested word from the dropdown (first three words) then the keyword will appear in the search box and the search is performed. 3 choosing a keyword 4 selecting the keyword - free text

  2. When user clicks on the disease keyword the predicate will appear. (e.g disease: Alzheimer's disease) and the search is performed. 3a choosing a disease 4a selecting the keyword - disease

@RafLeszczynski we are starting super lean to test the interactions as we go. Please implement this on current input field. Ignore the highlight state (green border) and the 🔎 search button. We need to get the behaviour right at this stage then we will do the visuals.

@cwhicher @tombyers I think this is standard behaviour and we can be confident to pass this to dev. There are some unclarity about the navigation in the search box and predicates designs which we will keep iterating on.

SebastianPlace commented 7 years ago

Requirements: