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
fix #4342: feature(visualization) - Incorporate metric metadata from Jetstream. #4599
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.
LGTM from a quick pass but I'm wondering about the overlay bit. :) (will r+ after... but I should probably quickly check into your branch and run this locally in the morning to double check, heh)
Also, I feel like we could use a doc update somewhere since I don't think we mention/explain the interaction with Jetstream at all, but I'll let you make that call and think that's fine in a quick follow up ticket too if you think we need more than a sentence or two.
<div className="d-inline-block"> | ||
{probeSetName}{" "} | ||
{probeSetDescription && ( | ||
<OverlayTrigger overlay={popover} trigger="click" rootClose> |
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 might be missing something since I'm doing an end-of-day review, but I checked out the docs for this to get an idea of what I should be seeing, and I'm wondering why we wouldn't use the react-tooltip
for consistency but with event="click"
if we specifically want it to show onclick (if I'm reading their docs correctly)? Maybe we have to or want to use ReactMarkdown
and it's difficult to get that working with a tooltip?
Also, I think Storybook might need some love, I think we should be seeing that pop up here but when I hover/click the info icon I'm not seeing anything.
app/experimenter/nimbus-ui/src/components/AppLayoutSidebarLocked/index.tsx
Outdated
Show resolved
Hide resolved
It's true the overlay shows up on the top, I'm adding a screenshot here: I believe it doesn't show up on storybook because of the fact that it's up top. I can probably update it to adjust the popup location dynamically so that it shows up in storybook properly.
I agree this could use some docs. I'll file a follow-up since I do think it would be nice to have a bit more detail about what the relationship with Jetstream looks like.
You're right, I decided to use the popover because the text sent from Jetstream is in markdown and it has clickable links so it can't disappear when you hover away. I had assumed tooltips are not clickable but now that I look at the documentation it seems like it might be possible. I'm PTO tomorrow but I can look into those things when I'm back. |
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.
Backend looks good to me, couple ideas for some improvements but nothing critical, I'll let others review the frontend in more detail. G/j @emtwo ! 🎉
e1e8ee4
to
78ee0b4
Compare
@LZoog I managed to get the markdown working with Unfortunately, I wasn't able to address the storybook issue that you screenshotted about. I think something about the way storybook renders the component, it doesn't recognize that it's hovering out of view. I couldn't find a way to make this work unfortunately. Perhaps we can just let it be since it works fine in the |
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.
Left a comment on the clickability and prop declaration, and my only other feedback would be that there appears to be extra space at the bottom of the markdown tooltip:
This appears to be because it renders
tags, where the regular tooltip doesn't. I think we could solve this by adding something like this to the global styles:
.__react_component_tooltip > p:last-child {
margin-bottom: 0;
}
app/experimenter/nimbus-ui/src/components/PageResults/TableMetricSecondary/index.tsx
Outdated
Show resolved
Hide resolved
…Jetstream. Because: * We want to have human-friendly metric names and detailed descriptinos This commit: * Pulls in that data from Jetstream and uses it for labels and tooltips.
78ee0b4
to
2f0021c
Compare
Thanks! I added this it looks nicer! |
@jodyheavener let me know what you think with the changes! |
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.
We might want to style links in the tooltip to be lighter/white with underline since that blue over grey might be less visible, but I totally happy pushing that to a followup. Looks great!
Thanks! That's a good point. I think if we want all tooltips to look consistent they might all need to be the same colour so that would need to be part of the follow-up to make sure it works across the board. I'll file a ticket |
Because:
This commit: