-
Notifications
You must be signed in to change notification settings - Fork 45
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 how extension requests ledger access (don't rely on state sync) and close popup #2118
Conversation
Deployed to Cloudflare Pages
|
dd89392
to
f47c859
Compare
This is based only on the first two commits of #2094. Here's the small diff between those two (rebased) and this PR: https://github.com/oasisprotocol/wallet/compare/966dbf312e67564246dd11019ff4d735f9703b7a..f47c85967c540108f2e07d9e5eebaf0e5ac13dbf |
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.
translations issues addressed in #2119
Before: - redux was shared between persistent popup (can request USB permissions) and default popup - persistent popup listed ledger accounts into store - when reopening default popup listed accounts were kept - when reopening default popup after clearing listed accounts: all steps repeat After: - persistent popup requests permissions - this gives permissions to default popup too - when reopening default popup: use new permissions to list accounts from ledger
Ledger doesn't even need to be unlocked to grant USB access.
This makes it clearer what user should interact with.
Improves UX after ConnectDevice popup closes and user has to re-open the normal popup to continue the flow.
f47c859
to
7ed4a6e
Compare
Supersedes #2094
Extracted from #2084
Related to #2084 (comment)
Previous flow:
New flow: