-
Notifications
You must be signed in to change notification settings - Fork 11.8k
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
DataTrails: Sticky controls #83286
DataTrails: Sticky controls #83286
Conversation
Stickying the main graph would be nice, I'll add it in a following PR |
alignItems: 'flex-end', | ||
flexWrap: 'wrap', | ||
position: 'sticky', | ||
background: theme.isDark ? theme.colors.background.canvas : theme.colors.background.primary, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why conditional? Do primary
and canvas
not look good here depending on isDark
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@darrenjaneczek data trails is breaking out normal background rules. normally we would not do this. we would use theme.colors.background.primary
but for data trails I am testing a different pattern, using canvas for dark theme and primary for light theme
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe in the future, something like theme.colors.background.trailsCanvas
?
Thanks Torkel!
Is there a way we can keep the same "sticky" filter on interaction? Or have the filters expand on interaction? The original idea
|
@catherineymgui sadly when you add a new filter we have to query and rebuild a lot of the breakdown views, and the browser loses the scroll position during this process. We could remember it and try to scroll back but this requires some tricky code.
Yes, I think we could move the search up into the filters row. could be cramped if there are lot of filters but usually not the case on the select metric view. But this requires a bigger change (as the current select metric view is also used in the related metrics tab). So leaving that for the follow PRs |
* DataTrails: Sticky controls * Update
* DataTrails: Sticky controls * Update
I think this simple take on it works quite well and can be refined later.
Cool things to consider in the future
agent_request_duration_seconds_bucket---Metrics---Explore---Grafana.mp4