-
Notifications
You must be signed in to change notification settings - Fork 8
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 Connect wallet #3827
base: development
Are you sure you want to change the base?
Refactor Connect wallet #3827
Conversation
use wallet key from window.env
create the post login logic
- add form to the login, this will handle the stats tabs more effictive, - remove the emits that change the field status not needed
add connect wallet
… before mnemonics to avoid conflicts and losing entred data
- getting a grid checking a twin should be in validate mnemonic, moved and marked as asyncRule - load email only getting email and set it - also the reload validation now only if there is an issue with getting the grid, in validate mnemonic
- getting a grid checking a twin should be in validate mnemonic, moved and marked as asyncRule - load email only getting email and set it - also the reload validation now only if there is an issue with getting the grid, in validate mnemonic
- passing the mnemonic or hex to profile - disable password on logning - add emit to update loading
add disabled prop
support create and activate account flow
…into development_rewriteProfileManager
- enhance getting credentials logic
- enhance getting credentials logic
- disable auto complete - set the session password in handlePostLogin
add suspense to fallback to the skeletonLoader if one of the commponents is still loading
remove logs and enhance errors pass the email to postlogin method: to not check if the email is stored; as we already have a new one to store
I think this needs docs to be promoted first before we merge it. |
Test scenarios to Add:
|
there is no changes in the UI or the current flow, we just refactored the current code |
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.
…into development_rewriteProfileManager
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.
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.
tested:
- creating new account, works
- importing account, works
- logging in, works
- clearing local storage and getting only the register tab, works
removed on ef37dee will update the pr body |
Description
Refactor login and connect wallet
Changes
move the logic of connect and login to separate components and use them in Dtab
remove all the conditional elements that rely on active tab
this means if the entered mnemonic is valid but we couldn't load the grid except
TwinNotExistError
something like connection error, then we enable the reloadRelated Issues
Tested Scenarios
sr25519
works fineed25519
will show an errorDocumentation PR
For UI changes, Please provide the Documentation PR on info_grid
To consider
Preliminary Checks:
UI Checks:
Code Quality Checks:
Testing Checklist
General Checklist