-
Notifications
You must be signed in to change notification settings - Fork 452
Restore Account with JSON Backup #336
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
Conversation
|
I seem to have got it working:
A few things here:
|
|
@jacogr can you help me fix the linting issues? I am unable to get the lint error to appear locally, and tbh not quite sure how to solve all of them correctly. |
|
Yes, will help fix, no issues. (With the recent bump to typescript-eslint 3 there are actually some linter bugs, so happy to help fix.) Will get to this shortly, really excited to have it - things have just been a bit hectic elsewhere, so this hasn't gotten the attention it deserves. |
Co-authored-by: Jaco Greeff <[email protected]>
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.
Thanks a lot for this. I made some small adjustments -
- some async functions converted to .then/catch - just aligning the code with elsewhere (nothing wrong as-is)
- made the open window take a param (instead of adding another)
- go back to root when we have imported
- added a back button on the import
- only open new window when we are a popup
It works great. So will get it in as-is, however there are probably a couple of this that should be looked at sometime (not here)
- when we cannot decode, just display the message (like we have with invalid seed). I removed the message as of now since it was a bit inconsistent with the rest
- since we operate in window mode, we may as well have a top-level button on-screen (like we have in QR - i would only make it visible in full-screen mode, hence it is not in. We probably want full-screen mode to take up more horizontal space and make it "nice", so not now)
- am not crazy about the "JSON link", but atm don't have immediate better ideas. Maybe import should toggle between the types like we have in the create new seed page - but we have the window issue, otherwise drag-and-drop and open is just broken
|
PS: Once again, sorry it took me absolute ages to get to this, not making excuses, but it was a "bit tight" lately. |
|
Awesome! Can't wait to use this feature :) |
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |









This is an early draft of enabling the Polkadot.JS extension to restore accounts using the JSON backup created by the Polkadot JS Apps.
TODO: