-
Notifications
You must be signed in to change notification settings - Fork 46
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) #2094
base: master
Are you sure you want to change the base?
Conversation
Deployed to Cloudflare Pages
|
The Ledger flow is already not ideal, and this change makes it even less user-friendly. I discussed this with @donouwens, and here are some of his suggestions: In "Grant access to your Ledger" window when user connects a device, nothing happens in popup so it is harder for user to understand what action has been completed. Can we:
|
ah, yeah |
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
e358564
to
c2953ff
Compare
what about message passing instead of state sync ? This way we can keep self-closing popup up to date with user actions |
I'd still rather avoid that complexity |
Extracted from #2084
Related to #2084 (comment)
Previous flow:
New flow:
(I don't have a test ledger device right now. Please check if some of these notes are incorrect)