You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Fix plan 835 Hid request dialog keep on prompting up during pagination. (#30384)
<!--
Please submit this PR as a draft initially.
Do not mark it as "Ready for review" until the template has been
completely filled out, and PR status checks have passed at least once.
-->
This PR is relative to solve the [plan
835](MetaMask/accounts-planning#835)
This PR including following change:
1. in actions.js file, change `connectHardware` method signature to has
extra `loadHid` boolean parameter to see whether we need to load HID
request prompt up.
2. change `connect-hardware/index.js` to and pass `loadHid = true`
parameter value to above actions.
3. change `connect-hardware/account-list.js` and all pagination feature
relative functions to pass `loadHid = false` to disable HID request
popup apear.
## **Description**
<!--
Write a short description of the changes included in this pull request,
also include relevant motivation and context. Have in mind the following
questions:
1. What is the reason for the change?
5. What is the improvement/solution?
-->
[](https://codespaces.new/MetaMask/metamask-extension/pull/30384?quickstart=1)
## **Related issues**
Fixes: MetaMask/accounts-planning#835
## **Manual testing steps**
This test requires a Ledger hardware device with more than 5 accounts:
1. Add hardware wallet
2. Connect to Ledger device
3. Verify 5 Ledger accounts are displayed
4. Click Next
5. Verify the HID popup is not displayed each time the user clicks Next
button
## **Screenshots/Recordings**
<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->
### **Before**
The following popup is displayed after each "Next" action

### **After**
The popup is not displayed repeatedly
## **Pre-merge author checklist**
- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.
## **Pre-merge reviewer checklist**
- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
---------
Co-authored-by: Michele Esposito <[email protected]>
0 commit comments