-
-
Notifications
You must be signed in to change notification settings - Fork 358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resurvey opening hours new #2045
Conversation
(Ignore any changes on quests/quest forms in this draft, that's still WIP) |
Thanks @camelCaseNick for the SPARQL query, worked like a charm |
For now I see nothing interesting, I will certainly look at it again - more throughly and experiment with code or test actual quests, not just look at it. |
It would be easy to support, but I think places with opening hours 24/7 shouldn't be asked again anyway, so no need to support it. |
Added support for "off" times and more. New summary:
Considering the following:
This results in about 2.5% of all opening hours unaccounted for. So, there is little need to extend the UI further to for example also support (calculation: |
Ok I am actually in such a good flow right now, I implemented also
97.7% are now accounted for (2.3% unaccounted for). |
@westnordost It is not obvious to me how those should be read? Is it like the opening hours syntax — then it would be closed on every Sunday regardless of the month? |
yes |
But I find it is not good form to not specify the months if one uses months in another rule, this is why the ugly "(Not specified)" string is displayed there. Same with weekdays. |
@camelCaseNick but anyway the displayed opening hours there are Kraut und Rüben anyway, it's just to show what rules it can understand. Generally, the rules can be understood as additive because this is intuitive, f.e.
can be added like that into the form. @matkoniecz should be done now |
That depends in then opening hours syntax on whether a |
@camelCaseNick I know. All taken care of. The |
It would be a cool feature if you could drag and drop the "Add opening hours" button in-between the different rows to add an item there because there is currently no way to add rules in-between. Or, make it possible to drag the items to re-sort them, like in the quest selection screen. Though, I won't do this now, maybe later. Or maybe someone else would like to try this out. |
@westnordost I recognize you've just done a bunch of work so I have a little hesitation with sharing this, but: if you are seeking UI inspiration, please take a look at https://whenisgood.net's method of selecting times. (On desktop, since dragging does not work on mobile). |
"Get flash player to see this video", lol
Am 24. August 2020 03:57:36 MESZ schrieb smichel17 <[email protected]>:
…
@westnordost I recognize you've just done a bunch of work so I have a
little hesitation with sharing this, but: if you are seeking UI
inspiration, please take a look at https://whenisgood.net's method of
selecting times. (On desktop, since dragging does not work on mobile).
|
I've taken a look on desktop. Interesting concept, but not really eligible for small screens and variable opening hours that may be by the minute as well. And even for big screens, it's not that fast. I find the interface of YoHours for example better here. But anyway, I think the current UI is good, because it mimics how the opening hours plates often look like, suggesting that one inputs the hours just as they are visible on the sign. |
Ready to merge from my side. Any pending reviews I should wait for? |
Parsing and generating done.
Missing is the UI.
@matkoniecz