Open gustavohandrade opened 2 years ago
'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
a) Remove the Update button, and make an api call and have search results be automatically updated when any filter value is changed
b) Only update address bar with changed filters when click Update button after changing filters
let me know what you prefer.
Also, I recommend (although this should be a separate issue):
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
Hi @psdcode, option a) would be ideal.
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
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.