Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce a collapsible sidepanel on the left of the sensor page, activated by hover or swipe, depending on the device. Also implements many smaller UX improvements: - Show spinner while fetching new data - Show single month and fewer custom ranges - Rotate y-axis labels to improve legibility (addresses Issue #442) - Update sensor data and annotations together instead of first come first serve - Streamline calendar styling - Streamline use of box shadows - Fix positioning of chart actions button - Move units to right side of tooltip - Cancel previous request upon a new calendar selection - Style navbar logo to have a consistent height and adjust the width of the navbar-header accordingly - Actually load the font intended to be used in 0.10 - Make sure time axis labels aren't too close to each other * Show updated sensor data and annotations together Signed-off-by: F.N. Claessen <felix@seita.nl> * Show spinner while fetching new data Signed-off-by: F.N. Claessen <felix@seita.nl> * Switch from id-based styling to class-based styling Signed-off-by: F.N. Claessen <felix@seita.nl> * Move styling to css, and lower spinner Signed-off-by: F.N. Claessen <felix@seita.nl> * Simplify and streamline datepicker fontsize Signed-off-by: F.N. Claessen <felix@seita.nl> * Streamline datepicker margins Signed-off-by: F.N. Claessen <felix@seita.nl> * Add margins and side panel activated on hover Signed-off-by: F.N. Claessen <felix@seita.nl> * Correct margins and padding of side panel to allow for custom ranges at the bottom of the calendar Signed-off-by: F.N. Claessen <felix@seita.nl> * Show single month Signed-off-by: F.N. Claessen <felix@seita.nl> * Fewer custom ranges Signed-off-by: F.N. Claessen <felix@seita.nl> * Side panel rounded similar to buttons rather than similar to cards Signed-off-by: F.N. Claessen <felix@seita.nl> * Align box shadows of cards and calendar Signed-off-by: F.N. Claessen <felix@seita.nl> * Non-transparent cards Signed-off-by: F.N. Claessen <felix@seita.nl> * Simplified padding notation Signed-off-by: F.N. Claessen <felix@seita.nl> * Move chart actions buttons away from the card's corner (negative margin) Signed-off-by: F.N. Claessen <felix@seita.nl> * Rotate y-axis labels to improve legibility Signed-off-by: F.N. Claessen <felix@seita.nl> * Remove sensor chart title if the same information is already contained in the y-axis label Signed-off-by: F.N. Claessen <felix@seita.nl> * Move unit to right side of tooltip Signed-off-by: F.N. Claessen <felix@seita.nl> * Style predefined datetime ranges Signed-off-by: F.N. Claessen <felix@seita.nl> * Raise column to top without requiring flex display Signed-off-by: F.N. Claessen <felix@seita.nl> * Rename sidepanel class and separate styling specific to the sidepanel being on the left Signed-off-by: F.N. Claessen <felix@seita.nl> * Show spinner only while the promise is being fulfilled Signed-off-by: F.N. Claessen <felix@seita.nl> * Cancel previous request when the user makes a new request Signed-off-by: F.N. Claessen <felix@seita.nl> * Do not let spinner block the full page height, so the sensor table navigation can still be used Signed-off-by: F.N. Claessen <felix@seita.nl> * Change header and label colors inside the sidepanel to contrast against the sidepanel background Signed-off-by: F.N. Claessen <felix@seita.nl> * Style navbar logo to have a consistent height and adjust the width of the navbar-header accordingly Signed-off-by: F.N. Claessen <felix@seita.nl> * Actually load intended font Signed-off-by: F.N. Claessen <felix@seita.nl> * Enforce separation of time axis labels Signed-off-by: F.N. Claessen <felix@seita.nl> * Add return type annotation and docs: applying chart defaults returns a dictionary with vega-lite specs Signed-off-by: F.N. Claessen <felix@seita.nl> * Resolve hover glitch when exiting either the list of months or the list of years with the pointer. This stops the side panel from collapsing and reopening. Signed-off-by: F.N. Claessen <felix@seita.nl> * Enable swiping for left sidepanel Signed-off-by: F.N. Claessen <felix@seita.nl> * Stop using redundant litepicker plugin, which was messing with calendar styling Signed-off-by: F.N. Claessen <felix@seita.nl> * Fix test Signed-off-by: F.N. Claessen <felix@seita.nl> * Changelog entry Signed-off-by: F.N. Claessen <felix@seita.nl>
- Loading branch information
Showing
10 changed files
with
206 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.