1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00
metamask-extension/ui/pages
Dan J Miller 9d70c60c22
Connect Ledger via WebHID (#12411)
* Connect ledger via webhid if that option is available

* Explicitly setting preference for webhid

* Use ledgerTransportType enum instead of booleans for ledger live and webhid preferences

* Use single setLEdgerTransport preference methods and property

* Temp

* Lint fix

* Unit test fix

* Remove async keyword from setLedgerTransportPreference function definition in preferences controller

* Fix ledgelive setting toggle logic

* Migrate useLedgerLive preference property to ledgerTransportType

* Use shared constants for ledger transport type enums

* Use constant for ledger usb vendor id

* Use correct property to check if ledgerLive preference is set when deciding whether to ask for webhid connection

* Update eth-ledger-bridge-keyring to v0.9.0

* Only show ledger live transaction helper messages if using ledger live

* Only show ledger live part of tutorial if ledger live setting is on

* Fix ledger related prop type errors

* Explicitly use u2f enum instead of empty string as a transport type; default transport type to webhid if available; use constants for u2f and webhid

* Cleanup

* Wrap ledger webhid device request in try/catch

* Clean up

* Lint fix

* Ensure user can easily connect their ledger wallet when they need to.

* Fix locales

* Fix/improve locales changes

* Remove unused isFirefox property from confirm-transaction-base.container.js

* Disable transaction and message signing confirmation if ledger webhid requires connection

* Ensure translation keys for ledger connection options in settings dropdown can be properly detected by verify-locales

* Drop .component from ledger-instruction-field file name

* Move renderLedgerLiveStep to module scope

* Remove ledgerLive from function and message names in ledger-instruction-field

* Wrap ledger connection logic in ledger-instruction-field in try catch

* Clean up signature-request.component.js

* Check whether the signing address, and not the selected address, is a ledger account in singature-request.container

* Ensure ledger instructions and webhid connection button are shown on signature-request-original signatures

* Improve webhid selection handling in select-ledger-transport-type onChange handler

* Move metamask redux focused ledger selectors to metamask duck

* Lint fix

* Use async await in checkWebHidStatusRef.current

* Remove unnecessary use of ref in ledger-instruction-field.js

* Lint fix

* Remove unnecessary try/catch in ledger-instruction-field.js

* Check if from address, not selected address, is from a ledger account in confirm-approve

* Move findKeyringForAddress to metamask duck

* Fix typo in function name

* Ensure isEqualCaseInsensitive handles possible differences in address casing

* Fix Learn More link size in advanced settings tab

* Update app/scripts/migrations/066.js

Co-authored-by: Mark Stacey <markjstacey@gmail.com>

* Update ui/pages/settings/advanced-tab/advanced-tab.component.test.js

Co-authored-by: Mark Stacey <markjstacey@gmail.com>

* Add jsdoc comments for new selectors

* Use jest.spyOn for mocking navigator in ledger webhid migration tests

* Use LEDGER_TRANSPORT_TYPES values to set proptype of ledgerTransportType

* Use LEDGER_TRANSPORT_TYPES values to set proptype of ledgerTransportType

* Fix font size of link in ledger connection description in advanced settings

* Fix return type in setLedgerTransportPreference comment

* Clean up connectHardware code for webhid connection in actions.js

* Update app/scripts/migrations/066.test.js

Co-authored-by: Mark Stacey <markjstacey@gmail.com>

* Update ui/ducks/metamask/metamask.js

Co-authored-by: Mark Stacey <markjstacey@gmail.com>

* Add migration test for when useLedgerLive is true in a browser that supports webhid

* Lint fix

* Fix inline-link size

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2021-10-21 16:47:03 -02:30
..
asset Add target object word to "View on Etherscan" links (#12100) 2021-09-24 21:14:07 +04:00
confirm-add-suggested-token UX Papercuts Epic: Create a consistent representation of the Buttons (#12096) 2021-10-05 15:20:42 -04:00
confirm-approve Connect Ledger via WebHID (#12411) 2021-10-21 16:47:03 -02:30
confirm-decrypt-message UX Papercuts Epic: Create a consistent representation of the Buttons (#12096) 2021-10-05 15:20:42 -04:00
confirm-deploy-contract CI - add metamaskbot comment "highlights" section for showing relevant storybook changes (#12095) 2021-09-15 08:55:48 -10:00
confirm-encryption-public-key UX Papercuts Epic: Create a consistent representation of the Buttons (#12096) 2021-10-05 15:20:42 -04:00
confirm-import-token UX Papercuts Epic: Create a consistent representation of the Buttons (#12096) 2021-10-05 15:20:42 -04:00
confirm-send-ether CI - add metamaskbot comment "highlights" section for showing relevant storybook changes (#12095) 2021-09-15 08:55:48 -10:00
confirm-send-token CI - add metamaskbot comment "highlights" section for showing relevant storybook changes (#12095) 2021-09-15 08:55:48 -10:00
confirm-token-transaction-base CI - add metamaskbot comment "highlights" section for showing relevant storybook changes (#12095) 2021-09-15 08:55:48 -10:00
confirm-transaction Hardening property check for stopPropagation in ConfirmTxScreen (#12158) 2021-09-21 11:58:39 -07:00
confirm-transaction-base Connect Ledger via WebHID (#12411) 2021-10-21 16:47:03 -02:30
confirm-transaction-switch Replace hardcoded sent ether label on confirm screen (#11802) 2021-09-15 16:54:51 -05:00
confirmation UX Papercuts Epic: Create a consistent representation of the Buttons (#12096) 2021-10-05 15:20:42 -04:00
connected-accounts CI - add metamaskbot comment "highlights" section for showing relevant storybook changes (#12095) 2021-09-15 08:55:48 -10:00
connected-sites CI - add metamaskbot comment "highlights" section for showing relevant storybook changes (#12095) 2021-09-15 08:55:48 -10:00
create-account Connect Ledger via WebHID (#12411) 2021-10-21 16:47:03 -02:30
error remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
first-time-flow Use ternary conditionals instead of && (#12406) 2021-10-21 11:11:31 -05:00
home Integrate TokensController (#11552) 2021-09-10 12:37:19 -05:00
import-token Fixing invalid prop type for ActionableMessage (ImportToken) (#12377) 2021-10-18 09:28:56 -07:00
keychains Adding copy to SRP import screen to warn users (#12400) 2021-10-21 06:20:17 -02:30
lock remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
mobile-sync UX Papercuts Epic: Create a consistent representation of the Buttons (#12096) 2021-10-05 15:20:42 -04:00
onboarding-flow Onboarding V2 Cleanups (#12417) 2021-10-20 13:55:59 -05:00
permissions-connect UX Papercuts Epic: Create a consistent representation of the Buttons (#12096) 2021-10-05 15:20:42 -04:00
routes Use ternary conditionals instead of && (#12406) 2021-10-21 11:11:31 -05:00
send Use ternary conditionals instead of && (#12406) 2021-10-21 11:11:31 -05:00
settings Connect Ledger via WebHID (#12411) 2021-10-21 16:47:03 -02:30
swaps Use ternary conditionals instead of && (#12406) 2021-10-21 11:11:31 -05:00
unlock-page UX Papercuts Epic: Create a consistent representation of the Buttons (#12096) 2021-10-05 15:20:42 -04:00
index.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
pages.scss Establish onboarding-flow wrapper/router base and feature flag env variable (#12247) 2021-09-30 16:34:11 -05:00