Improve Real-Time UI: Resizable Dashboard and Time Range Preservation#24
Merged
Improve Real-Time UI: Resizable Dashboard and Time Range Preservation#24
Conversation
Use history.pushState to update CML variable without iframe reload
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #24 +/- ##
=======================================
Coverage 73.40% 73.40%
=======================================
Files 22 22
Lines 1914 1914
=======================================
Hits 1405 1405
Misses 509 509
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
- Add draggable resizer for dashboard height adjustment (200px-80vh) - Change layout to overlay positioning with map as background - Fix resize dragging by disabling iframe pointer events during resize
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR enhances the real-time monitoring interface with two key UX improvements:
Features
Resizable Grafana Dashboard: Added a draggable divider that allows users to adjust the dashboard height (200px minimum, 80% viewport maximum) for better viewing on different screen sizes.
Time Range Preservation: When selecting CMLs by clicking map lines, the Grafana dashboard now maintains the user's selected time range instead of resetting to the default 7-day view. Implemented using
history.pushStatefor seamless updates without iframe reloads.Technical Changes
Testing
Tested on various screen sizes and verified: