-
-
Notifications
You must be signed in to change notification settings - Fork 283
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
Feat/native/feature requests passphrase #13121
Conversation
dacadda
to
1ab6262
Compare
suite-native/module-authorize-device/src/usePassphraseAuthorizationSuccess.ts
Show resolved
Hide resolved
52b323e
to
2dab07f
Compare
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.
FIXED
I spotted one bug:
- Discover standard wallet
- make it view-only
- open new passphrase
- make it view-only
- disconnect Trezor
- reconnect Trezor
- go to verify Receive address
- click red Cancel button in app (see screenshot)
Passphrase wallet is rejected completely and I'm navigated to dashboard of standard wallet. I would expect to go back to receive screen instead.

suite-native/module-authorize-device/src/screens/connect/ConnectingDeviceScreen.tsx
Show resolved
Hide resolved
suite-native/device-authorization/src/deviceAuthorizationSlice.ts
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.
FIXED
And one inconsistency:
- If I click on 'X' while entering passhprase in app, it navigate somewhere else than the same button while entering passhprase on Trezor
Passhprase in app navigate back to top level (dashboard/My assets/Receive)
Passhprase on device just closing passphrase form and stay on Receive page
Fix here: 73fa108 |
I believe this should fix that. Could you please try to retest it? 🙏 |
suite-native/device-authorization/src/hooks/useAuthorizationGoBack.ts
Outdated
Show resolved
Hide resolved
b58ba58
to
6a65d5b
Compare
feat(suite-native): create navigation handler
6a65d5b
to
7cd6fb8
Compare
7cd6fb8
to
94f10c4
Compare
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.
It works great now! 🎉 👏
/rebase |
Description
This PR enables device communication during locked & remembered passphrase device. In that case, device doesn't allow communication until device is unlocked via pin + passphrase. With how the code looked previous to these changes, navigation and cancelling authorization flow was quite problematic.
Modules for passphrase and device connection were merged into one:
module-authorize-device
. This was done so that these authorization screens are together within one stack so that we can go back to previous stack, without having to define it, once the flow is finished, be it success or fail.Commits:
TrezorConnect.on()
listeners into a redux state logic as it's more flexible and allows for better cooperation with already existing pin logic, which was previously refactored into redux as wellmodule-passphrase
intomodule-connect-device
and merge stacks into oneisCreatingNewPassphraseWallet
flag in redux state so it allows us to treat these flows differently - specifically for exiting themmodule-connect-device
tomodule-authorize-device
module-authorize-device
to fit package name (separated commits for better code review readability)module-passphrase
has been removed, I also removed packagepassphrase
. Without this, we would have circular dependencies in future, so the logic was moved todevice-authorization
package.Related Issue
Resolve #12132
Resolve #12689
Screenshots:
Zaznam.obrazovky.2024-07-04.v.12.48.20.mov
Error state visible here (copy and styles to be changed in a follow up PR):
Zaznam.obrazovky.2024-07-04.v.13.27.38.mov