-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
feat: Fix plan 835 Hid request dialog keep on prompting up during pagination. #30384
base: main
Are you sure you want to change the base?
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Builds ready [2dcab12]
Page Load Metrics (1832 ± 91 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [cf89481]
Page Load Metrics (1654 ± 42 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [d5a8a67]
Page Load Metrics (1954 ± 101 ms)
|
@@ -185,9 +185,9 @@ class ConnectHardwareForm extends Component { | |||
}, SECOND * 5); | |||
} | |||
|
|||
getPage = (device, page, hdPath) => { | |||
getPage = (device, page, hdPath, loadHid) => { |
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.
lets improve the unit tests to cover the cases of loadHid
to be true
or false
and avoid regressions
@@ -599,6 +599,7 @@ export function connectHardware( | |||
deviceName: HardwareDeviceNames, | |||
page: string, | |||
hdPath: string, | |||
loadHid: boolean, |
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.
Same thing here regarding connectHardware
, we should update the unit test to reflect this cases too
… all possible cases.
Builds ready [1359e03]
Page Load Metrics (2033 ± 127 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
This PR is relative to solve the plan 835
This PR including following change:
connectHardware
method signature to has extraloadHid
boolean parameter to see whether we need to load HID request prompt up.connect-hardware/index.js
to and passloadHid = true
parameter value to above actions.connect-hardware/account-list.js
and all pagination feature relative functions to passloadHid = false
to disable HID request popup apear.Description
Related issues
Fixes: https://github.com/MetaMask/accounts-planning/issues/835
Manual testing steps
This test requires a Ledger hardware device with more than 5 accounts:
Screenshots/Recordings
Before
The following popup is displayed after each "Next" action
After
The popup is not displayed repeatedly
Pre-merge author checklist
Pre-merge reviewer checklist