-
Notifications
You must be signed in to change notification settings - Fork 367
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
upcoming: [M3-7301] - Replace Linode Network Transfer History chart with Recharts #9938
upcoming: [M3-7301] - Replace Linode Network Transfer History chart with Recharts #9938
Conversation
...inodes/LinodesDetail/LinodeNetworking/NetworkingSummaryPanel/NetworkTransferHistoryChart.tsx
Outdated
Show resolved
Hide resolved
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.
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.
Nice work @hana-linode, this is a nice improvement over Chart.js!
Functionality wise I don't see any issues; I played around with it using Chrome and Firefox (and tested using VoiceOver on both) and didn't catch any issues.
Besides the dark theme issues Banks pointed out, the only definite accessibility issue I’m seeing is the green "Public Outbound Traffic" text on the tooltip. In Prod this is black and bold -- the green doesn't pass WebAIM's contrast checker.
The only other thing that might be worth raising attention to is the animations. They look nice but are also kind of slow and easily triggered (by clicking the prev and next buttons, and by resizing the window, etc.). I'm wondering if it would be worthwhile to disable the animations using the prefers-reduced-motion
media query (I'm not aware of anywhere else where we do this in Cloud, but I think it would be a nice thing to do).
...inodes/LinodesDetail/LinodeNetworking/NetworkingSummaryPanel/NetworkTransferHistoryChart.tsx
Outdated
Show resolved
Hide resolved
Dark mode looks much better now, but would it be possible for the tooltip to have a dark gray background with white text instead of a while background? I think that would look more fitting with our theme. Hopefully we can do this without adding a ton of extra code. If we need to, we can define a custom component to use as the tooltip (https://github.com/bnussman/managernext/blob/main/src/linodes/Stats.tsx#L121-L132) |
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 good @hana-linode!
@carrillo-erik Updated x-axis intervals. Getting the dates to be exact is more complicated; I don't think it matters that they are the same bc the information is still correct, just a different date is displayed |
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 awesome!
I'd love to see the NodeBalancer graphs done next!
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 no regressions in light mode
✅ confirmed no regressions in dark mode
✅ confirmed no regressions on other browsers (chrome, safari, firefox)
great work Hana!
Description 📝
This PR is part of a bigger effort to replace chart.js with the more modern Recharts. As a first step, replace the Linode Network Transfer History chart.
Preview 📷
before.mov
Screen.Recording.2023-11-29.at.4.34.17.PM.mov
How to test 🧪
Prerequisites
Verification steps
As an Author I have considered 🤔
Check all that apply