bahnzumberg / zuugle-suchseite

Public repository for www.zuugle.at
https://www.zuugle.at
GNU General Public License v3.0
6 stars 11 forks source link

Range is not in the search field and can not be deleted #189

Open martinheppner opened 1 year ago

martinheppner commented 1 year ago
  1. Open https://www2.zuugle.at/?range=Kreuzeckgruppe&city=wien

Image

  1. The search field is not filled with "Kreuzeckgruppe" and can not be reset. Image
ghost commented 1 year ago

@martinheppner : the issue of the search bar has been solved 2 days ago, only the range="xxxx" when in the url, we have no UI element to erase it, my suggestion would be an erase linkable word, example "Reset" next to the ranges text on Startpage. Other suggestions?

martinheppner commented 1 year ago

Do we need the parameter range? We could solve it with a filter, right?

ghost commented 1 year ago

So you mean we would use the range filter parameters like such : https://www2.zuugle.at/suche?**city**=amstetten&filter=%7B%**22coordinatesSouthWest**%22%3A%5B%5D%2C%**22coordinatesNorthEast**%22%3A%5B%5D%2C%**22singleDayTour**%22%3Atrue%2C%**22multipleDayTour**%22%3Atrue%2C%**22summerSeason**%22%3Atrue%2C%**22winterSeason**%22%3Atrue%2C%**22children**%22%3Afalse%2C%**22traverse**%22%3Afalse%2C%**22difficulty**%22%3A10%2C%**22minAscent**%22%3A0%2C%**22maxAscent**%22%3A3000%2C%**22minDescent**%22%3A0%2C%**22maxDescent**%22%3A3000%2C%**22minTransportDuration**%22%3A0.08%2C%**22maxTransportDuration**%22%3A5.15%2C%**22minDistance**%22%3A0%2C%**22maxDistance**%22%3A80%2C%**22ranges**%22%3A%5B%22Alpenvorland%22%5D%2C%**22types**%22%3A%5B%22Bike+%26+Hike%22%2C%22Hochtour%22%2C%22Klettern%22%2C%22Klettersteig%22%2C%22Langlaufen%22%2C%22Schneeschuh%22%2C%22Skitour%22%2C%22Wandern%22%5D%2C%**22languages**%22%3A%5B%22de%22%5D%7D

we could do that but may take a bit more work and then also the filter would be activated and the orange font color of the "Filter" would be displayed. i think both are doable technically, then to erase we would have to click on filter ONLY in the main page (not the page where we activated the link) and have to know that the range I selected in the start page I can delete only in the main page. Maybe this could be a question for Stefan ?

martinheppner commented 1 year ago

Actually the way the filter is done at the moment is bad. The url is extremly long - even if you filter only one dimension. We should use different parameters for the different filter options. To have a filter parameter "coordinatesSouthWest" in the url is the worst.

Stefan defined already, that the filter logic should be different. He did not define the usage of parameters.

Question: Is it possible to adapt the filter bit, by bit? Starting with "range", which should substitute the "ranges". Of course the new "range" has to understand more than one Gebirgsgruppen to substite the old functionality.

ghost commented 1 year ago

We have discussed the issue and we decided to discuss this subject in a broader context like filtering (too long url ) and Google visibility, partly a design issue as well.