socialgenomics / discover-frontend

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

Autocomplete: Move loading icon to dropdown #927

Open SebastianPlace opened 7 years ago

SebastianPlace commented 7 years ago

When a search is fired, the loading spinner should appear in the dropdown.

SebastianPlace commented 7 years ago

@cwhicher @simplesquare1 @tombyers We don't have a design for this but I assume it will work like this:

  1. The user focusses on the search input. This opens the dropdown with the predicate options
  2. When they begin typing, the area beneath the predicate options shows either: a) a loading spinner b) loading... text or 'Fetching suggestions...'

I'll work on the logic for now, if you have any preference on the loading area design, let me know :)

cwhicher commented 7 years ago

For 2. I think a loading spinner would be better, as technically they aren't suggestions and are pretty bad as suggestions. They are saying what is currently in the database. And if we say loading, and then nothing loads because its not in the database that's also a little odd.