-
Notifications
You must be signed in to change notification settings - Fork 295
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
[DDW-105] Force setting password on passwordless wallets #1957
[DDW-105] Force setting password on passwordless wallets #1957
Conversation
…asswordless-wallets
…word-on-passwordless-wallets' into chore/ddw-105-force-setting-password-on-passwordless-wallets
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.
@DeeJayElly this is not a good direction. Let's discuss this once you start today.
The implementation needs to be similar to this: https://github.com/input-output-hk/daedalus/blob/chore/ddw-105-force-setting-password-on-passwordless-wallets/source/renderer/app/components/wallet/not-responding/NotResponding.js
Fixed |
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.
@DeeJayElly I have found two issues with storybook:
- The general context handling of wallets is wrong and when I change wallets on the "Wallet Summary" story I don't see the wallet balances getting updated nor does the "Set password" overlay gets shown for the wallets with no password set.
- The "Set password" story shows the "Change wallet password" instead of "Set wallet password" dialog once you update the knob...
storybook/stories/_support/utils.js
Outdated
@@ -44,7 +45,7 @@ export const generateWallet = ( | |||
reward: new BigNumber(reward).dividedBy(LOVELACES_PER_ADA), | |||
createdAt: new Date(), | |||
name, | |||
hasPassword: false, | |||
hasPassword: hasPassword || true, |
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.
@DeeJayElly this line will always make hasPassword
to be true
as even if you pass in hasPassword
as false hasPassword || true
will turn it to true
.
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.
Sorry, its a leftover i forgot to revert back this part. Its fixed now.
…asswordless-wallets
…llets' of github.com:input-output-hk/daedalus into chore/ddw-105-force-setting-password-on-passwordless-wallets
@DeeJayElly please fix the flow issue 🙏 |
…asswordless-wallets
|
…word-on-passwordless-wallets' into chore/ddw-105-force-setting-password-on-passwordless-wallets
@DeeJayElly @daniloprates I have asked @tomothespian to fix the two remaining Todos: |
…asswordless-wallets
… wallet password creation
…llets' of github.com:input-output-hk/daedalus into chore/ddw-105-force-setting-password-on-passwordless-wallets
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.
Works great now! Thanks @DeeJayElly @tomothespian <3
This PR forces setting password on password less wallets by showing the dialog which informs the user that needs to set the password for his wallet.
Todos
Screenshots
Testing Checklist
Review Checklist
Basics
feature
/bug
/chore
,release-x.x.x
)yarn test
)yarn dev
)yarn package
/ CI builds)yarn flow:test
)yarn lint
)yarn prettier:check
)yarn manage:translations
produces no changes)yarn storybook
)yarn.lock
file is updatedCode Quality
Testing
After Review
done
column on the YouTrack board