Skip to content
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

Attempt Web3 Unlock OnClick #683

Merged
merged 1 commit into from
Jan 1, 2018

Conversation

dternyak
Copy link
Contributor

@dternyak dternyak commented Dec 29, 2017

Why?

MEW + MetaMask is now single click in the happy path (🎉 to the UX) with no degradation to UX on the sad path.

Happy

2017-12-28 21 51 18

Sad

2017-12-28 21 51 55

What could be better

  • 250ms is chosen as the magical number to give time for web3 decryption. This works well enough on my machine, but time to unlock may (likely slightly) vary for others. If the unlock time exceeds 250ms, the secondary unlock screen will be shown and then disappear without user action as soon as the wallet is unlocked. I've found 250ms to work well on my testing, but open to feedback on how to increase robustness (hopefully without the corresponding increase in complexity). This can be solved concretely by using sagas and dispatching state updates based on the web3 unlock response, and I may end up implementing that if this doesn't sit right after a night of sleep 😁)

  • (Minor) Notifications are currently broken (recently updated in Fix UI Access by Software modal MyEtherWallet/MyEtherWallet#645), so the current build would have an unclose-able error notification until notifications are fixed.

@dternyak dternyak requested a review from wbobeirne December 29, 2017 04:09
@dternyak dternyak changed the title Attempt to unlock MetaMask onClick Attempt Web3 Unlock OnClick Dec 31, 2017
Copy link
Contributor

@wbobeirne wbobeirne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great. Would be nice if after the 250ms, it canceled the unlock, but I understand that would be a huge amount of work. I think this fine as-is.

As discussed, at some point we'll probably want to look at supporting multiple web3 addresses, which may change how this works, but for now it's fine.

@wbobeirne wbobeirne merged commit 20f8430 into wallet-decrypt-redesign Jan 1, 2018
@dternyak dternyak deleted the redesign-ux-improvement branch January 1, 2018 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants