-
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-8877] - Refactor VPC Create to use react-hook-form
#11357
Merged
coliu-akamai
merged 17 commits into
linode:develop
from
coliu-akamai:refactor-vpc-create
Dec 11, 2024
Merged
Changes from 15 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
b5be294
begin refactoring VPC create hook
coliu-akamai c1c94c5
save
coliu-akamai a1965c2
save progress
coliu-akamai 86d0aac
update tests for vpc components
coliu-akamai 0ca008e
update drawer
coliu-akamai e06832c
remove unnecessary types
coliu-akamai 2291f7f
fix vpc create drawer bug default values
coliu-akamai bc20b43
general subnet errors?
coliu-akamai 90aeb37
remove unnecessary util
coliu-akamai 9a35ffc
switch back to scrollIntoError v1 :/
coliu-akamai b96c7ab
general subnet errors i think this works for real
coliu-akamai b769420
Added changeset: Refactor VPC Create to use `react-hook-form` insteadβ¦
coliu-akamai f1fb905
feedback @bnussman-akamai, fix reset when using cancel button for VPCβ¦
coliu-akamai 85ce27b
cleanup use of useWatch and add some accessibility help to remove buβ¦
coliu-akamai af5dddd
update cypress test due to updated accessibility labels for subnet reβ¦
coliu-akamai 3f200ef
hiding mention of IPv6 in validation for now since we don't support it
coliu-akamai 988d548
validation changeset
coliu-akamai File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
packages/manager/.changeset/pr-11357-tech-stories-1733778960338.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@linode/manager": Tech Stories | ||
--- | ||
|
||
Refactor VPC Create to use `react-hook-form` instead of `formik` ([#11357](https://github.com/linode/manager/pull/11357)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 12 additions & 14 deletions
26
packages/manager/src/features/VPCs/VPCCreate/FormComponents/SubnetContent.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 12 additions & 5 deletions
17
packages/manager/src/features/VPCs/VPCCreate/FormComponents/VPCTopSectionContent.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 error now surfaces bc of how the VPC's validation schema is set up. However, wondering if it's better to match the original erroring behavior, especially since we don't support ipv6 in VPCs currently - ?
update: adding a temporary IPv4 required message (+ todo comments to change back when IPv6 is supported) to hide mention of IPv6, since we don't show any IPv6 field/IPv6 related stuff when creating a VPC (felt like it could be confusing that we mention ipv6s)