-
-
Notifications
You must be signed in to change notification settings - Fork 279
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: device modal updates #5363
Conversation
@trezor/qa pls could you test this with bridge 2.0.27 also? |
ac8b07b
to
d1d62b5
Compare
QA OK for 2.0.31 Bridge /that's embedded to Suite binary/ 2.0.27: When you cancel action via modal Suite reports: Info:
|
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.
packages/components/src/components/prompts/ConfirmOnDevice/index.tsx
Outdated
Show resolved
Hide resolved
packages/suite/src/components/suite/Modal/DevicePropmptModal.tsx
Outdated
Show resolved
Hide resolved
packages/suite/src/components/suite/modals/confirm/ConfirmActionModal.tsx
Outdated
Show resolved
Hide resolved
Yes, 2.0.27 can't do that.
I would love that, but unfortunately we can not do that at the moment, because the overall Trezor Bridge signing process is broken (trezor/trezord-go#204 and some other issues). We basically can't release a new standalone Bridge (built-in is just fine, as the app is notarised as a whole) so we are stuck at 27. This sucks tremendously and the plan is basically either to (a) fix it - but we need someone dedicate for Bridge and that is something we were discussing just on Monday together (b) kill standalone Bridge altogether (product discussion needed though!). Before we can decide for either (a) or (b) I would really like to know the result of #4770. Because if that works (b) might be an option (might!). So tl;dr: I do not think we can roll out this feature to web version of Suite 😞. So I would either postpone this feature or just make it desktop-only (which sounds more reasonable to me). We might theoretically also somehow hack it and make it work on older Bridge versions but I would definitely not spend our energy on that. |
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.
Works well on webusb.
- On touch devices, the button should probably not expand because it is shaking otherwise.
Screen.Recording.2022-05-18.at.11.22.42.mov
-
Actions in onboarding are not cancelable from UI.
Not sure, if it is good to show an error modal and error notification when the user cancels action from UI. (Moreover, I do not think it is good to allow cancelling backup as user has to reset the device if he does so)
https://user-images.githubusercontent.com/33235762/169007363-bf7fd6d2-0ee5-4b17-ae65-3a4821243c21.mov
packages/suite/src/components/suite/images/DeviceConfirmImage.tsx
Outdated
Show resolved
Hide resolved
packages/components/src/components/prompts/ConfirmOnDevice/index.tsx
Outdated
Show resolved
Hide resolved
|
Or maybe you could render the "x" button based on bridge version that is running. |
The other way around, v2.0.31 is the only one that supports it fully 🙂. I would simply make it >= v2.0.31 and that's it (future-ready when some new version gets released). Also cc-ing @ondracja for context when this moves to QA. |
@tsusanka Ok! I am removing the blocked label then. Are there plans to make it work in earlier versions, should I create an issue? |
Let's not worry about that, it is very minor part of our user base. |
cbd7670
to
2f93318
Compare
Wait, Suite should have 2.0.31 bundled inside. Make sure you do not have a standalone bridge running before launching Suite ( |
67feddd
to
fe25940
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.
LGTM
edit: already solved QA NOK Info:
Screen.Recording.2022-05-25.at.9.41.24.mov |
59f7342
to
eb3dfcf
Compare
eb3dfcf
to
9d06155
Compare
QA OK Info:
|
closes #5237
closes #1576