ajah / sks-interface

0 stars 0 forks source link

Retain the searched terms in the search bar after the query launches #5

Closed dani-ajah closed 2 years ago

dani-ajah commented 2 years ago

As a user of the platform, I want to be able to see the search terms I selected on the search bar after launching a query, so that I can easily edit my search once I see the results.

dani-ajah commented 2 years ago

Ensure that when typing a keyword, pressing the enter key and the search button have the same behaviour of inputting the keyword and creating a tile with the keyword above the search bar.

Deleting the keywords from the search bar once it is made into a tile.

dani-ajah commented 2 years ago

Currently, if a user conducts a search from the home page and hits enter or clicks the search button they are redirected to the search page, however, their initial keyword is not shown above the search bar. Could we allow it to be saved like when they enter a keyword straight from the search page?

dani-ajah commented 2 years ago

@hjweinreb Is the limit on 3 words something that can be fixed? Could a user potentially search for more than 3?

hjweinreb commented 2 years ago

Currently, if a user conducts a search from the home page and hits enter or clicks the search button they are redirected to the search page, however, their initial keyword is not shown above the search bar. Could we allow it to be saved like when they enter a keyword straight from the search page?

Yes! I am working on this. It's a little tricky but I will do it.

@hjweinreb Is the limit on 3 words something that can be fixed? Could a user potentially search for more than 3?

Definitely. I think we should have a cap though. What number are you thinking? 10?

gustavohandrade commented 2 years ago

We need to retain only the last terms searched. Currently, the hub keeps all terms previously searched.

Image

hjweinreb commented 2 years ago

We need to retain only the last terms searched. Currently, the hub keeps all terms previously searched.

Image

Hey @gustavohandrade , Not sure I understand. The user can remove any of the search terms using the X button. Also refreshing the page does a total reset on the search terms.