small seat previews and additional strategies for preselected dates #55
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
I added a checkbox that enables small previews in the zone. It shows the number of the seat and the username of the first Booking of the currently set timespan. When hovering over the seat, it still shows the bookings and assignments, but without the header.
The thoughts behind this feature is to have a possibility to quickly search on the map who is sitting where, without having to hover over every single seat.
Also, I added some strategies for the preselected dates that can be set via environment variables. You can set which day is preselected (today or tomorrow) and also if the current time of day should be selected as start or a predefined timespan. To make this work, there is also a toggle to turn off the restoration of the selected dates from the session storage.
And there was a bug in the Bookings Tab, there if you did not select both start and end dates, there would flash an error. It now checks if both (fromTS and toTS) values are set.
If you want to, I can also split it to seperate PRs.
*edit: added screenshot