-
-
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
Fix/check seed links #16144
Fix/check seed links #16144
Conversation
🚀 Expo preview is ready!
|
const installationWillChangeFirmwareVendorHeader = | ||
!!shouldSwitchFirmwareType && | ||
deviceModelInternal !== undefined && | ||
![DeviceModelInternal.T1B1, DeviceModelInternal.T2T1].includes(deviceModelInternal); |
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.
Maybe we shall add come explanation. I know there is some logic that some models have this change of vendor and other don't but I don't know any details and from the code itself its not obvious to me how this is designed (or reasons why it is the way it is)
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.
Good job, its very elegant actually. 👏
/rebase |
Start rebasing: https://github.com/trezor/trezor-suite/actions/runs/12597403708 |
…ayout, update syntax
48e164d
to
bd94a01
Compare
I noticed that in case
deviceWillBeWiped
during firmware update, user is sent to settings to create or check backup, but these settings are not available for firmwares unsupported by Suite. The links should lead right to the create/check backup modals instead. While this is only a problem with unsupported firmware (currently 1.6.1), redirecting right to the create/check backup modal is more convenient than having to go to settings first.Plus some cleanup and fixes along the way, in separate commits. For example, Suite warned users that device will be wiped even though it was not initialized.
TODO:
Related: #16094 - this PR adds Check backup button to
CheckSeedStep
for some cases. I decided to add the button to create or check backup toCheckSeedStep
for every case so that we are consistent.QA:
Some testing scenarios I can think of:
Screenshots
Before:
Notice how clicking on creating a wallet backup in Settings takes you to the empty page. You can click on the Check wallet backup button in the red banner, but:
After:
I don't have a 1.6.1 device so testing with firmware type switch on a TS3.
Without backup:
Screen.Recording.2025-01-03.at.10.22.11.mov
Backed up:
Screen.Recording.2025-01-03.at.10.25.08.mov