-
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-926] Improve error handling for incorrect passphrase / incorrect hardware wallet device #2860
Merged
Merged
Changes from 11 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
a49b2b3
[DDW-926] Potential fix for incorrect phrase error handling
45cc72f
[DDW-926] Potential fix for incorrect phrase error handling
d2e782f
[DDW-926] Potential fix for incorrect phrase error handling
d9b2cdb
[DDW-926] Improve translations
d194e23
[DDW-926] Handle one more case when incorrect passphrase can be provided
eb8fea0
[DDW-926] Revert unrelated change
5f48a4f
[DDW-926] Fixes
d9880ad
Merge remote-tracking branch 'origin/develop' into fix/ddw-926-trezor…
25938be
[DDW-926] Fill in changelog
d6883af
Merge branch 'develop' into fix/ddw-926-trezor-error-handling
danielmain ea549b7
Merge remote-tracking branch 'origin/develop' into fix/ddw-926-trezor…
22e2834
[DDW-926] Update translations
f68c61d
[DDW-926] Update translations
d3027aa
[DDW-926] Update translations
64db538
Merge remote-tracking branch 'origin/develop' into fix/ddw-926-trezor…
4e0cc5c
[DDW-926] Add a CLI param to stop reloading Electron on changes in code
1a30326
[DDW-926] Manage translations
f39df36
[DDW-926] Clean up getHardwareWalletChannel.ts and add logging for Tr…
e47cdd8
Merge remote-tracking branch 'origin/develop' into fix/ddw-926-trezor…
4a562e6
[DDW-926] Manage translations
4952375
[DDW-926] Remove passing null path param to fix missing Trezor valida…
bfda600
Merge remote-tracking branch 'origin/develop' into fix/ddw-926-trezor…
de38049
Merge remote-tracking branch 'origin/develop' into fix/ddw-926-trezor…
889080d
Revert "[DDW-926] Remove passing null path param to fix missing Trezo…
a662ac0
[DDW-926] Ensure null is not passed as device path
5e4659d
[DDW-926] Add logging for changing paths to debug Ledger issues
2f86d73
[DDW-926] Improve translations
68fa148
[DDW-926] Apply UNRECOGNIZED_WALLET status for all cases where the cu…
b65c17b
Merge remote-tracking branch 'origin/develop' into fix/ddw-926-trezor…
07a541a
[DDW-926] Reinitialize Trezor Connect session in order to let user sw…
3bafb81
Merge remote-tracking branch 'origin/develop' into fix/ddw-926-trezor…
e17610d
[DDW-926] Fix translations
4182c72
Trigger build
e466617
Merge remote-tracking branch 'origin/develop' into fix/ddw-926-trezor…
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,6 +47,7 @@ | |
} | ||
|
||
.clearIcon { | ||
flex-shrink: 0; | ||
height: 14px; | ||
margin-right: 6px; | ||
object-fit: contain; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Should this be camel case?
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.
Here, I followed the existing pattern where we map the HwDeviceStatus enum values directly to translations. The enum uses snake_case therefore we have this mapping which doesn't follow JavaScript naming conventions. Would you like me to refactor this? I would have to introduce an additional map to map statuses to translation keys.
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.
Ah ok, sounds good.
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.
How about using lodash's camelCase for mapping enum values to translations? This way we could kill two birds with one stone. (btw it is a funny sentence)
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.
This would work, however I'm afraid that it will make it harder to refactor and track which translations are actually in use. Currently you can just find translations by a string, with camelCase function it's not going to be that easy anymore.