-
Notifications
You must be signed in to change notification settings - Fork 365
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-8814] - Clean up SubnetCreateDrawer and fix animation for VPC subnet drawers #11195
refactor: [M3-8814] - Clean up SubnetCreateDrawer and fix animation for VPC subnet drawers #11195
Conversation
packages/manager/src/features/VPCs/VPCDetail/SubnetCreateDrawer.tsx
Outdated
Show resolved
Hide resolved
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.
Awesome! Nice clean up and love to see react-hook-form working well for us!
packages/manager/src/features/VPCs/VPCDetail/SubnetCreateDrawer.tsx
Outdated
Show resolved
Hide resolved
…r.tsx Co-authored-by: Banks Nussman <115251059+bnussman-akamai@users.noreply.github.com>
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! confirmed functionality and styles are at parity with production. ✅
@coliu-akamai Bonus 🌟 if you can fix the drawer animation on open/close. It's also broken in prod, but you know, while you are in there :D
Left a couple minor/non-blocking comments for consideration as well
packages/manager/src/features/VPCs/VPCDetail/SubnetCreateDrawer.tsx
Outdated
Show resolved
Hide resolved
subnet={values} | ||
/> | ||
<form onSubmit={handleSubmit(onCreateSubnet)}> | ||
<Grid sx={{ flexGrow: 1, maxWidth: 460 }}> |
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 gotta find a way to stop having to set a max width on drawer content. Using CSS, we can easily target all children of a drawer form. Outside of the scope of this PR, but we gotta tale a look at this at somepoint.
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.
Removed the grid! Thanks for pointing out - this was a remnant from SubnetNode's (still existing, will cleanup when refactoring VPC Create) styling, but is unnecessary here 😄
I'm not sure where maxWidth is used in other drawers (potentially the VPCCreateDrawer since that uses SubnetNode?) but created a ticket to investigate/fix: M3-8826
@abailly-akamai seems like this animation bug is affecting all the subnet VPC drawers... trying to investigate! |
Passing test run #9 ↗︎❌ 0 Failing | 💚 445 Passing | ↪️ 2 Skipped | 🕐 87m 34s |
Cloud Manager E2E Run #6782
Run Properties:
|
Project |
Cloud Manager E2E
|
Branch Review |
develop
|
Run status |
Passed #6782
|
Run duration | 27m 29s |
Commit |
8c3c7fdd82: refactor: [M3-8814] - Clean up SubnetCreateDrawer and fix animation for VPC subn...
|
Committer | Connie Liu |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
2
|
Pending |
2
|
Skipped |
0
|
Passing |
445
|
View all changes introduced in this branch ↗︎ |
Description 📝
Refactoring SubnetCreateDrawer to use react-hook-form. Doing this in advance of refactoring VPC Create (to also use react-hook-form), since SubnetNode is used by both SubnetCreateDrawer and VPC Create
This adds some dynamic validation to label/ipv4 as well!
(Trying to refactor / clean up VPC logic before VPC part 2)
Changes 🔄
temporary NewSubnetNode componentRemoved usage of subnet node from this formTarget release date 🗓️
n/a
How to test 🧪
Also fixed animation for subnet drawers:
As an Author I have considered 🤔
Check all that apply