-
Notifications
You must be signed in to change notification settings - Fork 12
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
feat: hold traces tooltip on hover #2387
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2387 +/- ##
==========================================
- Coverage 82.99% 82.98% -0.01%
==========================================
Files 921 921
Lines 20566 20570 +4
Branches 3245 3247 +2
==========================================
+ Hits 17069 17071 +2
- Misses 3375 3377 +2
Partials 122 122
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
This comment has been minimized.
This comment has been minimized.
this.hideCrosshair(); | ||
this.tooltip?.hovered$ | ||
.pipe( | ||
debounceTime(300), |
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 do we need the debounceTime?
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.
Added to provide a better user experience when hover over the graph with the cursor
@@ -30,8 +33,8 @@ export class ChartTooltipPopover<TData, TContext> implements ChartTooltipRef<TDa | |||
this.popoverRef.updatePositionStrategy({ | |||
type: PopoverPositionType.FollowMouse, | |||
boundingElement: element, | |||
offsetX: 20, | |||
offsetY: 30 | |||
offsetX: 0, |
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.
What would be the impact of this change at other places?
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.
will be changing the way that we display the tooltip keeping it visible when the user has the cursor on the tooltip but will not break the functionality.
Description
Hold tooltip on hover
Testing
Locally tested
Checklist:
Documentation
Make sure that you have documented corresponding changes in this repository or hypertrace docs repo if required.