ajah / sks-interface

0 stars 0 forks source link

The "search" and "update" buttons next to the "City" filter are not working properly. #34

Open gustavohandrade opened 2 years ago

gustavohandrade commented 2 years ago

When clicking the "search" and "update" buttons highlighted on the image below, "nothing" happens. The parameters for the search are established, but you need to manually press the search button on the search bar to implement the filters. As is, it seems to the user that the filters do not work. The search should be updated automatically when a filter is applied.

Image

psdcode commented 2 years ago

1.5 to 2hrs

'Update' is currently a dead button (most of it's code is commented out)

Also, it seems when reload the page with filters parameters present that are different than the defaults, none of the filter parameters are used in the search, and are instead removed from the address bar. This is a similar issue to https://github.com/ajah/sks-interface/issues/30 (see comment there), in that the address bar query params are not properly synced with the app search context parameters used in the app logic.

@gustavohandrade I can either resolve this by

let me know what you prefer.

Also, I recommend (although this should be a separate issue):

psdcode commented 2 years ago

OK from looking at a related issue https://github.com/ajah/sks-interface/issues/4, it seems to me you would prefer a) from above

gustavohandrade commented 2 years ago

Hi @psdcode, option a) would be ideal.

psdcode commented 2 years ago

This issue is partly resolved by https://github.com/ajah/sks-interface/pull/51, where update button was removed, and change in filter settings fetches new query and displays updated results automatically. City filter to be rebuilt in upcoming PR as per https://github.com/ajah/sks-interface/issues/49