-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lw 9170 multi wallet integration (#892)
* fix(ui): use correct derivation path for displaying accounts * feat(ui): disable account delete btn for active or the only account * feat(ui): add onActivateClick handler for profile dropdown * fix(ui): do not fire onClick in profile dropdown when clicking on arrow * fix(core): start from account #0 in select account step * fix(extension): clear background page once finished with create wallet flow if create wallet flow finishes without explicitly calling setBackgroundPage() then it would break the routing, as background page would be defined forever * feat(extension): wire up multi-account components temporarily use native prompt dialog for password input; does not have a prompt to connect hardware wallet, or any error handling when deriving xpub * feat(extension): wire up add wallet components * fix(extension): connect to hw device asap when adding account If it takes more than some time (probably 50ms), Chrome will reject hardware device connection with an error that says WebHID connections must be initiated from user gesture. Apparently, fetching wallets from repository can sometimes take longer. This fix updates useWalletManager addAccount method to take in the entire AnyBip32Wallet object instead of just walletId, so that it doesn't have to fetch the wallet object from indexeddb in service worker. Consequently, some validations from addAccount can be removed, because it's signature no longer accepts walletId of a script wallet. Also it has to trust that wallet actually exists, otherwise it will reject with an error that comes from the WalletRepository (it is no longer a responsibility of this method to check the existence of the wallet). * feat(extension): do not copy address when clicking on active wallet clicking on a wallet in dropdown menu activates it removing copy feature makes the behavior more predictable * feat(ui): add colorScheme option to ExtraSmall also decouple button color scheme from size scheme and set minWidth for ExtraSmall button, which is currently only used for profile dropdown account item * feat: replace edit/delete buttons with a single Disable button temporary design until we apply a larger re-design * fix: remove all relative imports from cardano-sdk * fix(extension): connect trezor device before exporting xpub onboarding, adding wallet, adding accounts and dapp transacations are now working * chore: bump sdk packages required for correctly bundling trezor * chore: build service worker script in development mode after removing imports from dist/cjs, service worker no longer loads this is a temporary solution * test(extension): mock initializeTrezorTransport method --------- Co-authored-by: Piotr Czeglik <[email protected]>
- Loading branch information
1 parent
d1fda44
commit 472d7d5
Showing
53 changed files
with
1,202 additions
and
544 deletions.
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
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.