-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Uptime] Show URL and metrics on sidebar and waterfall item tooltips #99985
[Uptime] Show URL and metrics on sidebar and waterfall item tooltips #99985
Conversation
Pinging @elastic/uptime (Team:uptime) |
Since this is a feature, I think we should start using our PR checklist. |
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.
I believe the original ticket wanted the metrics tooltip (now with the inclusion of the url), to show when hovering over either the url or the chart element.
From the original ticket
This tooltip that shows the metrics and full URL should be shown when hovering over the URL, and/or the graph bar that is representing the metrics.
8ac94a0
to
a99a6b4
Compare
Yeah sorry about that, I should've marked this as a draft to indicate I planned on revisiting it before review. |
d82ac96
to
8068749
Compare
@justinkambic I took an early look at this, thanks for adding the metrics to the URL tooltip. Is the request number (at the beginning of the URL) possible to also be shown with the URL in the right (graph) tooltip, like it is on the left (URL) tooltip? Also, can the left (URL) tooltip be wider to prevent wrapping, more like the right (graph) tooltip: |
Yes, this can be done.
#100147 should fix this already. |
23d0282
to
822411c
Compare
@paulb-elastic @dominiqueclarke you can give this one another look now. |
I think we could do this as part of this patch.
The tooltips in the waterfall chart today are uniform in this regard though, no?
I'd prefer to use a tooltip that we don't need to maintain as well. Can we do that as a follow-up to this change, rather than creeping the scope further? |
@justinkambic definitely i am fine with a follow up. |
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.
I think it looks great , but i find the experience jarring between viewing chart tooltip and url side bar tooltip.
Delay is too long for sidebar. We should keep it same between chart and sidebar. Either increase both or reduce both.
I agree, I noted it in my previous PR that introduced the delay. @formgeist @liciavale can you give this change a look? We'd like to get rid of the delay. I think in a UI such as this users expect that tooltips will appear quickly, esp. if they're just interested in quickly learning the resource name. |
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.
I didn't realize delay wasnt introduced in this PR.
happy to resolve that separately
@shahzad31 want to make an issue about unifying these two tooltips, or resolving the issue some other way? |
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
History
To update your PR or re-run it, just comment with: |
…lastic#99985) * Add URL to metrics tooltip. * Add screenreader label for URL container. * Add metrics to URL sidebar tooltip. * Rename vars. * Delete unnecessary code. * Undo rename. * Extract component to dedicated file, add tests. * Fix error in test. * Add offset index to heading of waterfall chart tooltip. * Format the waterfall tool tip header. * Add horizontal rule and bold text for waterfall tooltip. * Extract inline helper function to module-level for reuse. * Reuse waterfall tooltip style. * Style reusable tooltip content. * Adapt existing chart tooltip to use tooltip content component for better consistency. * Delete test code. * Style EUI tooltip arrow. * Revert whitespace change. * Delete obsolete test. * Implement and use common tooltip heading formatter function. * Add tests for new formatter function. * Fix a typo. * Add a comment explaining a style hack. * Add optional chaining to avoid breaking a test. * Revert previous change, use RTL wrapper, rename describe block. Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
…99985) (#101383) * Add URL to metrics tooltip. * Add screenreader label for URL container. * Add metrics to URL sidebar tooltip. * Rename vars. * Delete unnecessary code. * Undo rename. * Extract component to dedicated file, add tests. * Fix error in test. * Add offset index to heading of waterfall chart tooltip. * Format the waterfall tool tip header. * Add horizontal rule and bold text for waterfall tooltip. * Extract inline helper function to module-level for reuse. * Reuse waterfall tooltip style. * Style reusable tooltip content. * Adapt existing chart tooltip to use tooltip content component for better consistency. * Delete test code. * Style EUI tooltip arrow. * Revert whitespace change. * Delete obsolete test. * Implement and use common tooltip heading formatter function. * Add tests for new formatter function. * Fix a typo. * Add a comment explaining a style hack. * Add optional chaining to avoid breaking a test. * Revert previous change, use RTL wrapper, rename describe block. Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Justin Kambic <justin.kambic@elastic.co>
Summary
Resolves #87272.
Depends on #100147.
Note to reviewers: do not review until #100147 is mergedAdds the URL to the tooltip showing metrics on the waterfall view.
Waterfall Tooltip
Before
After
Light mode
Dark mode
This PR additionally adds the metrics to the tooltip that appears over the sidebar URLs:
Sidebar Tooltip
Before
After
Light mode
Dark mode
Author Checklist
note: I had put an accessibility label in for the URL, but decided against it since there are no interactive elements in the changes and the text is self-explanatory.
Telemetry has been added where relevantDocs have been added to this PR covering any new, changed, or removed featuresAny special/edge cases that need to be manually tested must be documentedReviewer Checklist
For maintainers