weglide / bugtracker

WeGlide platform bug tracker.
https://www.weglide.org
11 stars 0 forks source link

Allow filtered daily best bookmark #70

Closed frantzheld closed 3 years ago

frantzheld commented 3 years ago

Describe the feature It would be a helpful feature to allow bookmarks to filtered daily scores.

To reproduce

  1. Click the "Show daily" button on the home page, see screenshot
  2. This link leads to the flight list for a static date, e.g.: https://beta.weglide.org/flights?filter=[{"index":"date","name":"2021-01-13"},{"index":"order_by","name":"-points"}]
  3. When bookmarking this link, it always leads to a fixed day

Expected behavior

  1. For storing the daily scoring in a bookmark or for adding it to the home screen on smartphones, a flexible link should be accessible, e.g.: https://beta.weglide.org/flights?filter=[{"index":"date","name":"daily"},{"index":"order_by","name":"-points"}]
  2. More filters like region should be applicable, so that users can store a link to e.g. "Daily Score Lower Saxony". (I think this would be already possible?)
  3. The link should always lead to the latest day, on which flights are available within the selected filter settings. In this example: Latest day, where flights have been uploaded in Lower Saxony. (Otherwise it leads to "No flights with these filters.")

Screenshots image

moldhouse commented 3 years ago

I would love this feature!

Maybe the frontend could resolve 'daily' to the current date? However as thus is frontend only we can not set daily to the last Date with flights so it could resolve to an empty list.

I think we should also have some idea of how users would pick up on this feature, as it could be helpful for many but I'm not sure anyone would notice.

samuel-git commented 3 years ago

I would propose a new boolean daily parameter as the current solution via activity endpoint needs two api calls. @moldhouse the API would need a new filter "daily". @flyingjoe is it possible to put this in search with translations?

samuel-git commented 3 years ago

80

frantzheld commented 3 years ago

https://beta.weglide.org/flights?country=Deutschland,DE&order_by=-scoring_date

order_by=-scoring_date solved this issue for me... 👍