-
-
Notifications
You must be signed in to change notification settings - Fork 267
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
Update react hook form #7018
Update react hook form #7018
Conversation
suite-native/forms/package.json
Outdated
@@ -13,7 +13,7 @@ | |||
"dependencies": { | |||
"@suite-native/atoms": "*", | |||
"react": "18.2.0", | |||
"react-hook-form": "6.15.7", | |||
"react-hook-form": "7.39.4", |
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 will update suite-native part once you are done with desktop but should be quick, we have react-hook-form abstracted so we do not access API directly
9611d45
to
1d40d53
Compare
👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎ This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. |
1d40d53
to
5514467
Compare
5514467
to
f8c7d03
Compare
Updated dependencies detected. Learn more about Socket for GitHub ↗︎
|
8484f4f
to
85958ae
Compare
6a08a09
to
0da09e4
Compare
9440271
to
0334611
Compare
Mostly done. I am investigating why some tests are failing, any insight appreciated - @dahaca, @szymonlesisz... @trezor/invity-suite This upgrade involves a lot of changes to the coinmarket section of Suite, can you please also take a look at the PR? @Nodonisko Minor changes to the |
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.
According to migration docs and what I know about forms, it looks good imho. There are some problems with invity forms ⬇️
No idea regarding the useRbfForm test
packages/suite/src/views/wallet/coinmarket/savings/setup/components/FiatAmount/index.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.
The e2e coinmarket buy form is failing correctly.
I am not able to choose address
Buy BTC for 5k kč, choose Banxa, bank transfer. Try to select btc address.
Screen.Recording.2023-06-23.at.11.32.25.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.
Sell form with small amount worked weird before. Now it misses error
Before:
Screen.Recording.2023-06-23.at.11.36.18.mov
I have to interact with form again to see the error
Now:
Screen.Recording.2023-06-23.at.11.37.18.mov
Interaction does not help
In Exchange tab it worked before correctly (immediatelly), now it does not show the error
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've checked failing tests for
|
84f3e77
to
e2e5e5d
Compare
As for the failing e2e test, it shouldn't matter. The field changed its name from @ondracja FYI |
@LukasRada Can I merge the PR? |
@komret Yes. |
/rebase |
…heck, label cannot be undefined)
6757e84
to
166b2cc
Compare
Description
Someone finally has to do it :)
Kicking of
react-hook-form
update and looking for helpBreaking changes:
https://github.com/react-hook-form/react-hook-form/blob/master/CHANGELOG.md
Related to:
resolves #6596
i guess first we should update
react-hook-form
, test if working correctly and then updatereact-testing-library