-
Notifications
You must be signed in to change notification settings - Fork 364
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
refactor: [M3-6343] - MUI v5 Migration - Grid v2 for Features #8985
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.
Almost all these styles were un-used. 🗑️
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 could've gone further with this file, but I left it intact for now
> | ||
<Grid item className={classes.addNewWrapper}> |
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.
No need for all the spacing adjustment from addNewWrapper
anymore.
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.
I still have a few more places in the app to check and a lot of code to sift through, but it's looking good so far.
One small thing I noticed is that the graphics on the Referrals page are closer together than they were previously, do we want to keep that?
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.
The TagsPanel is no longer flush to the right side
Mobile spacing for the firewalls rule table seems a bit tight now
This branch
Mobile spacing for Kube display is a bit off/tight
"Port Configuration" display disappeared
The extra white padding around the accordion header looks less clean imo
This branch
@hana-linode The removal of |
1 flaky tests on run #2988 ↗︎
Details:
cypress/e2e/objectStorage/object-storage.e2e.spec.ts • 1 flaky test
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
Thanks @hana-linode let me know if things are looking better now. I actually improved the alignment of the inbound rules dropdown to always match the action column since I saw that was the intent cc: @mjac0bs fix.mp4 |
🥇 @jaalah-akamai Thank you for doing that. I remember it being just slightly off in the accessibility fix and it haunted me a little. Giving the Firewalls page and the rest of this PR a closer look now! |
@hana-linode gotcha! should be good now, increased spacing slightly for the first item from |
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'm still working my way through pages at each breakpoint, but here are a few spacing differences so far:
Firewalls -- This looks better now! I'm happy with the changes here.
As @hana-linode pointed out, spacing between columns is tight as we move to smaller screens. This is especially noticeable in columns if a user has a long rule name or list of many IPs. ✅
This branch | Prod |
---|---|
Linode Landing -- The collapsed tags "..." and the "Add a Tag" button lack some spacing between so they meld into one.
This branch | Prod |
---|---|
StackScripts
- Thank you for fixing Image Select > Target Images! I recently made a ticket for this because I noticed our wandering TooltipIcons.
Linodes Details > Storage > Add a Disk - in the same ticket I made for the above, I noticed another spot with the misaligned icon. On this branch, it's still looking like it needs some adjustment on the Image field.
This branch | Prod |
---|---|
Images -- Looks good to me, other than: just noticed this minor styling bug while testing (also in prod) that might be out of scope of this PR, but it would be cool if we could get our TooltipIcon on the Region field in Upload Image to stop having this weird spacing at the 599
breakpoint.
Screen.Recording.2023-04-13.at.2.32.16.PM.mov
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 🚀
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.
Help and Support:
At a width of 599px
on down, there is some misalignment happening that I think we could fix here (also currently in prod):
Profile > Login & Authentication: (https://localhost:3000/profile/auth)
TPA provider options are having some issues now at smaller breakpoints.
Prod:
Screen.Recording.2023-04-14.at.10.02.03.AM.mov
This branch:
Screen.Recording.2023-04-14.at.10.01.45.AM.mov
Linode Create:
This branch | Prod |
---|---|
Kubernetes:
I know we recently did some work on this page... the margin on the right seems to small to me and feels better in prod, but I didn't review the other ticket when this was refactored.
This branch | Prod |
---|---|
|
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 this is in a good enough state to proceed! I think any outstanding issues could be resolved in this PR or after this is merged
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.
Other than Mariah's comments, this is looking good to me 🚀
Here are the updates - thanks everybody!
|
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.
Thanks for the fixes! 🚀 Can we add this to the Tech Stories section in the changelog?
Description 📝
Migrating to MUI Grid v2. This covers everything in the
src/features
directory (excluding Longview which is forthcoming) and any additional files that needed to be cleaned up.Major Changes 🔄
MainContent.tsx
- You'll notice slightly more padding for the main content container. This is because the page is actually respecting the original padding of the container now.Grid
import fromsrc/components/Grid
to@mui/material/Unstable_Grid2
.item
attribute is no longer needed forGrid
.Grid
elements with thecontainer
attribute needed aspacing
attribute as part of the changeupdateFor
has been removed off the Grid component. There's no need to micromanage how/when a component should re-render like this anymore.Refactored
LinodeEntityDetail.tsx
- Very large file, did some major refactoring here to get things looking like they did before. Check all breakpoints. You'll notice thatDNS Resolvers
has been updated to use CSS Grid and its layout on smaller breakpoints is slightly different. UX approves 👍DNSResolvers.tsx
- Simplified code and removedmakeStyles
NodeBalancerDetail.tsx
- UsingLandingHeader
and removedmakeStyles
RenderNotification.tsx
- No need for Grid, this was an easy refactoruseFormattedNotifications.tsx
- Due to changes inRenderNotification
this needed a slight refactorLinodeAdvancedConfigurationsPanel.tsx
- Didn't seem like the styles here were being usedAlertSection.tsx
- Instead of forcing changes to work, I saw refactoring was more simple.Replaced Grid w/ Box component
There was no need for a
Grid
components in these files, so I swapped them withBox
or removed theGrid
completely.ExpandableTicketPanel.tsx
- Removed lots of extraGrid
components in this fileAutoEnroll.tsx
DatabaseSummaryConnectionDetails.tsx
FirewallRuleTable.tsx
SupportSearchLanding.tsx
ImageSelect.tsx
KubeConfigDisplay.tsx
NodeBalancerConfigurations.tsx
TablesPanel.tsx
- This is under NodeBalancersVolumeTableRow.tsx
Deleted
features/Domains/DomainsTableWrapper.tsx
- This didn't seem to be usedHow to test
Where to view changes? Open me! 👇
http://localhost:3000/account/settings
http://localhost:3000/databases/postgresql/{ID}/summary
http://localhost:3000/firewalls/{ID}
http://localhost:3000/stackscripts/create
http://localhost:3000/kubernetes/clusters/{ID}/summary
http://localhost:3000/nodebalancers/{ID}/configurations
http://localhost:3000/linodes?view=grid
http://localhost:3000/linodes/{ID}/networking
http://localhost:3000/profile/settings
http://localhost:3000/support/tickets
http://localhost:3000/account/service-transfers/create
http://localhost:3000/account/service-transfers
http://localhost:3000/firewalls/{ID}/linodes
http://localhost:3000/support/search/?query=test
QA Checklist
Tag your name next to the ones you've QA'd