-
Notifications
You must be signed in to change notification settings - Fork 27
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
SceneTimeRange: Implement onZoom behavior #374
Conversation
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.
Looks super good and close to mergable 🎉 just needs 1-2 tests for the zoom out logic (which you can probably copy from core)
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.
Very close! just need to remove the useState (line 20)
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.
This is looking good @polibb! Think one last comment from Torkel is there to be addressed and we should be good to merge :)
🚀 PR was released in |
Zoom-out button in
SceneTimePicker
has an effect on the time range.To do:
This implementation only handles zooming out,
I'm not sure what to do with the refresh and setting of the URL that happen on zoom-out in core: https://github.com/grafana/grafana/blob/main/public/app/features/dashboard/services/TimeSrv.ts#L290.
Fixes #299
📦 Published PR as canary version:
1.11.2--canary.374.6394808989.0
✨ Test out this PR locally via: