Skip to content

feat: Fix plan 835 Hid request dialog keep on prompting up during pagination. #30384

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

Merged
merged 18 commits into from
Mar 19, 2025

Conversation

dawnseeker8
Copy link
Contributor

@dawnseeker8 dawnseeker8 commented Feb 18, 2025

This PR is relative to solve the plan 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

Open in GitHub Codespaces

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:

  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

Before

The following popup is displayed after each "Next" action

412918093-ba1553a7-e3ba-42f6-bf7d-99b84473fcab

After

The popup is not displayed repeatedly

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • 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.

Copy link
Contributor

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.

@dawnseeker8 dawnseeker8 changed the title feat: First draft fix for HID request keep promping up. feat: Fix plan 835 Hid request dialog keep on prompting up during pagination. Feb 18, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [2dcab12]
Page Load Metrics (1832 ± 91 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint14782222183719393
domContentLoaded14722198179718890
load14772216183218991
domInteractive28143553316
backgroundConnect9200394320
firstReactRender1578372512
getState468202010
initialActions01000
loadScripts10661628131915976
setupStore858242010
uiStartup174426602089222106
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 17 Bytes (0.00%)
  • common: 5 Bytes (0.00%)

@dawnseeker8 dawnseeker8 marked this pull request as ready for review February 19, 2025 01:06
@metamaskbot
Copy link
Collaborator

Builds ready [cf89481]
Page Load Metrics (1654 ± 42 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint45718581591277133
domContentLoaded1468184716309043
load1520185716548842
domInteractive257838189
backgroundConnect971282110
firstReactRender1475402512
getState55611147
initialActions00000
loadScripts1005133711788641
setupStore66014157
uiStartup1718208718869948
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 17 Bytes (0.00%)
  • common: 5 Bytes (0.00%)

@dawnseeker8 dawnseeker8 added the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Feb 21, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [d5a8a67]
Page Load Metrics (1954 ± 101 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint28525841785538258
domContentLoaded162725011920217104
load163925071954211101
domInteractive24139503115
backgroundConnect1284432512
firstReactRender1786522412
getState65314115
initialActions00000
loadScripts12171893143617785
setupStore87017168
uiStartup188128292227236113

@metamaskbot
Copy link
Collaborator

Builds ready [1359e03]
Page Load Metrics (2033 ± 127 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint24727641761629302
domContentLoaded160327151997268129
load166727412033264127
domInteractive22127543014
backgroundConnect984432210
firstReactRender1577402110
getState86222178
initialActions01000
loadScripts119621221516232111
setupStore95620157
uiStartup183631462312310149
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 17 Bytes (0.00%)
  • common: 5 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [a438e07]
Page Load Metrics (1585 ± 33 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint52616941537242116
domContentLoaded1441167615677134
load1463169615856833
domInteractive226837178
backgroundConnect85828178
firstReactRender1470422512
getState44612126
initialActions00000
loadScripts1026126711616330
setupStore75012115
uiStartup1615195817838139
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 17 Bytes (0.00%)
  • common: 5 Bytes (0.00%)

@dawnseeker8 dawnseeker8 requested a review from gantunesr March 10, 2025 10:45
gantunesr
gantunesr previously approved these changes Mar 12, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [1900595]
Page Load Metrics (2215 ± 184 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint180928342189336161
domContentLoaded175825732087237114
load180830282215383184
domInteractive26138493316
backgroundConnect967513117584
firstReactRender15135413416
getState7270616631
initialActions01000
loadScripts13161951157416579
setupStore968222010
uiStartup201349902746883424
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 17 Bytes (0.00%)
  • common: 5 Bytes (0.00%)

@vivek-consensys
Copy link

Tested on Chrome and working as expected. HID popup is not displayed when switching different pages on the account list or when switching HD paths. See below:
Private Zenhub Video

@dawnseeker8 dawnseeker8 requested a review from gantunesr March 14, 2025 04:37
@metamaskbot
Copy link
Collaborator

Builds ready [567ef59]
Page Load Metrics (4752 ± 2268 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint190221121449647822296
domContentLoaded178921004423748002305
load192221026475247232268
domInteractive2549010512660
backgroundConnect291719495450216
firstReactRender24179864823
getState2961620516077
initialActions01000
loadScripts135720549353847602286
setupStore1043611411857
uiStartup225121226681648202314
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 17 Bytes (0.00%)
  • common: 5 Bytes (0.00%)

gantunesr
gantunesr previously approved these changes Mar 17, 2025
gantunesr
gantunesr previously approved these changes Mar 18, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [a0600d4]
Page Load Metrics (3805 ± 1897 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint173720342355139511897
domContentLoaded158119423315538031826
load172920444380539511897
domInteractive27258957134
backgroundConnect1261436613341164
firstReactRender202071084120
getState3459326616378
initialActions01000
loadScripts115117953242135991728
setupStore103361399646
uiStartup203421991659642222027
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 17 Bytes (0.00%)
  • common: 5 Bytes (0.00%)

@github-project-automation github-project-automation bot moved this from Needs dev review to Review finalised - Ready to be merged in PR review queue Mar 19, 2025
@dawnseeker8 dawnseeker8 added this pull request to the merge queue Mar 19, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 19, 2025
@Akaryatrh Akaryatrh added this pull request to the merge queue Mar 19, 2025
Merged via the queue into main with commit 9576f7c Mar 19, 2025
76 checks passed
@Akaryatrh Akaryatrh deleted the feat/plan-836-ledger-hid-prompt-up-issue branch March 19, 2025 16:14
@github-project-automation github-project-automation bot moved this from Review finalised - Ready to be merged to Merged, Closed or Archived in PR review queue Mar 19, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Mar 19, 2025
@github-actions github-actions bot removed the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Mar 19, 2025
@metamaskbot metamaskbot added the release-12.16.0 Issue or pull request that will be included in release 12.16.0 label Mar 19, 2025
@angelcheung22 angelcheung22 added the Sev2-normal Normal severity; minor loss of service or inconvenience. label Apr 2, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
hardware-ledger QA Passed release-12.16.0 Issue or pull request that will be included in release 12.16.0 Sev2-normal Normal severity; minor loss of service or inconvenience. team-hardware-wallets
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

8 participants