-
Notifications
You must be signed in to change notification settings - Fork 370
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: [M3-7758] - Linode Network Graph Tooltip - Incorrect Units #10197
fix: [M3-7758] - Linode Network Graph Tooltip - Incorrect Units #10197
Conversation
@@ -298,7 +267,7 @@ const Graph = (props: GraphProps) => { | |||
height={420} | |||
showLegend | |||
timezone={timezone} | |||
unit={' Kb/s'} | |||
unit={` ${unit}/s`} |
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 the primary fix. We now pass the unit instead of using the hardcoded Kb/s
unit.
Coverage Report: ✅ |
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.
✅ Confirmed unit change
✅ Refactor is nice 🔥
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.
Fix looks good!
privateIn: pathOr([], ['data', 'netv6', 'private_in'], stats), | ||
privateOut: pathOr([], ['data', 'netv6', 'private_out'], stats), | ||
publicIn: pathOr([], ['data', 'netv6', 'in'], stats), | ||
publicOut: pathOr([], ['data', 'netv6', 'out'], stats), |
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.
Thank you ❤️
Description 📝
In our new Recharts graphs, the tooltip unit would sometimes not match the units that the graph was using. This PR fixes that issue. The graph's units (shown in the graph title), should match what is shown in the tooltip.
Changes 🔄
totalTraffic
prop 🗑️Target release date 🗓️
Please specify a release date to guarantee timely review of this PR. If exact date is not known, please approximate and update it as needed.
Preview 📷
How to test 🧪
Prerequisites
Reproduction steps
Verification steps
As an Author I have considered 🤔