Skip to content

Conversation

@hmalik88
Copy link
Contributor

@hmalik88 hmalik88 commented Jul 17, 2025

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? The AddressQRCode component currently uses a history.push call to navigate to its respective account details page. This is erroneous because account details uses history.goBack which just picks the page it came from which is AddressQRCode.
  2. What is the improvement/solution? Use history.goBack in the AddressQRCode component.

Manual testing steps

  1. Build from this branch.
  2. Navigate to an account's address qr code page, navigate back to the account details page, hit back again.
  3. Observe that the navigation leads you back to the home page.

Screenshots/Recordings

Before

Screen.Recording.2025-07-17.at.4.13.13.PM.mov

After

Screen.Recording.2025-07-17.at.4.23.26.PM.mov

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.

@hmalik88 hmalik88 requested a review from a team as a code owner July 17, 2025 20:29
@github-actions
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.

@metamaskbot metamaskbot added team-accounts-framework Accounts Framework team INVALID-PR-TEMPLATE PR's body doesn't match template labels Jul 17, 2025
@hmalik88 hmalik88 added the no-changelog no-changelog Indicates no external facing user changes, therefore no changelog documentation needed label Jul 17, 2025
@metamaskbot
Copy link
Collaborator

metamaskbot commented Jul 17, 2025

✨ Files requiring CODEOWNER review ✨

🔑 @MetaMask/accounts-engineers (2 files, +5 -11)
  • 📁 ui/
    • 📁 pages/
      • 📁 multichain-accounts/
        • 📁 address-qr-code/
          • 📄 address-qr-code.test.tsx +4 -9
          • 📄 address-qr-code.tsx +1 -2

@metamaskbot
Copy link
Collaborator

Builds ready [8edef27]
UI Startup Metrics (1274 ± 86 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1274112719458612981354
load108797017148111221157
domContentLoaded108096017098111131147
domInteractive191489111742
firstPaint66172115544110871141
backgroundConnect2131992418215233
firstReactRender21154162139
getState11388121125
initialActions506611319
loadScripts874751149681908946
setupStore74253714
WebpackHomeuiStartup23211786260015224162540
load18351274214416019242087
domContentLoaded18281267214016019192074
domInteractive1912115161558
firstPaint1496338764180259
backgroundConnect3410290492959
firstReactRender1628834270183332
getState163299381324
initialActions12224534735
loadScripts18241264213816019162068
setupStore206251341840
FirefoxBrowserifyHomeuiStartup15951367237917016241938
load1363118216688213971519
domContentLoaded1363118216688213971519
domInteractive1203948282113335
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect3116240243063
firstReactRender302269103064
getState163194341364
initialActions417010317
loadScripts1339116716448113751489
setupStore12426628748
WebpackHomeuiStartup17641537247921118692167
load14851290196815815901848
domContentLoaded14851290196715815901847
domInteractive102374437394321
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect311997173381
firstReactRender52417265564
getState143250331232
initialActions8023832416
loadScripts14601269192715315651816
setupStore1952594412118
Benchmark value 1275 exceeds gate value 1234 for chrome browserify home mean uiStartup
Benchmark value 1088 exceeds gate value 1070 for chrome browserify home mean load
Benchmark value 1080 exceeds gate value 1061 for chrome browserify home mean domContentLoaded
Benchmark value 213 exceeds gate value 10 for chrome browserify home mean backgroundConnect
Benchmark value 5 exceeds gate value 1 for chrome browserify home mean initialActions
Benchmark value 874 exceeds gate value 830 for chrome browserify home mean loadScripts
Benchmark value 42 exceeds gate value 41 for chrome browserify home p95 domInteractive
Benchmark value 233 exceeds gate value 18 for chrome browserify home p95 backgroundConnect
Benchmark value 19 exceeds gate value 1.2 for chrome browserify home p95 initialActions
Benchmark value 947 exceeds gate value 940 for chrome browserify home p95 loadScripts
Benchmark value 2322 exceeds gate value 2192 for chrome webpack home mean uiStartup
Benchmark value 1835 exceeds gate value 1711 for chrome webpack home mean load
Benchmark value 1829 exceeds gate value 1704 for chrome webpack home mean domContentLoaded
Benchmark value 13 exceeds gate value 7 for chrome webpack home mean initialActions
Benchmark value 1824 exceeds gate value 1699 for chrome webpack home mean loadScripts
Benchmark value 2540 exceeds gate value 2454 for chrome webpack home p95 uiStartup
Benchmark value 2087 exceeds gate value 2030 for chrome webpack home p95 load
Benchmark value 2074 exceeds gate value 2005 for chrome webpack home p95 domContentLoaded
Benchmark value 59 exceeds gate value 57 for chrome webpack home p95 domInteractive
Benchmark value 35 exceeds gate value 7 for chrome webpack home p95 initialActions
Benchmark value 2069 exceeds gate value 1970 for chrome webpack home p95 loadScripts
Benchmark value 1595 exceeds gate value 1405 for firefox browserify home mean uiStartup
Benchmark value 1364 exceeds gate value 1245 for firefox browserify home mean load
Benchmark value 1363 exceeds gate value 1239 for firefox browserify home mean domContentLoaded
Benchmark value 121 exceeds gate value 110 for firefox browserify home mean domInteractive
Benchmark value 31 exceeds gate value 25 for firefox browserify home mean backgroundConnect
Benchmark value 30 exceeds gate value 25 for firefox browserify home mean firstReactRender
Benchmark value 16 exceeds gate value 11 for firefox browserify home mean getState
Benchmark value 5 exceeds gate value 1 for firefox browserify home mean initialActions
Benchmark value 1339 exceeds gate value 1230 for firefox browserify home mean loadScripts
Benchmark value 13 exceeds gate value 9 for firefox browserify home mean setupStore
Benchmark value 1938 exceeds gate value 1660 for firefox browserify home p95 uiStartup
Benchmark value 1519 exceeds gate value 1495 for firefox browserify home p95 load
Benchmark value 1519 exceeds gate value 1495 for firefox browserify home p95 domContentLoaded
Benchmark value 335 exceeds gate value 195 for firefox browserify home p95 domInteractive
Benchmark value 64 exceeds gate value 55 for firefox browserify home p95 firstReactRender
Benchmark value 64 exceeds gate value 24 for firefox browserify home p95 getState
Benchmark value 17 exceeds gate value 2 for firefox browserify home p95 initialActions
Benchmark value 1489 exceeds gate value 1475 for firefox browserify home p95 loadScripts
Benchmark value 48 exceeds gate value 27 for firefox browserify home p95 setupStore
Benchmark value 1764 exceeds gate value 1615 for firefox webpack home mean uiStartup
Benchmark value 1486 exceeds gate value 1380 for firefox webpack home mean load
Benchmark value 1485 exceeds gate value 1380 for firefox webpack home mean domContentLoaded
Benchmark value 102 exceeds gate value 100 for firefox webpack home mean domInteractive
Benchmark value 31 exceeds gate value 26 for firefox webpack home mean backgroundConnect
Benchmark value 53 exceeds gate value 38 for firefox webpack home mean firstReactRender
Benchmark value 9 exceeds gate value 1 for firefox webpack home mean initialActions
Benchmark value 1461 exceeds gate value 1360 for firefox webpack home mean loadScripts
Benchmark value 19 exceeds gate value 13 for firefox webpack home mean setupStore
Benchmark value 2167 exceeds gate value 1935 for firefox webpack home p95 uiStartup
Benchmark value 1848 exceeds gate value 1660 for firefox webpack home p95 load
Benchmark value 1847 exceeds gate value 1660 for firefox webpack home p95 domContentLoaded
Benchmark value 321 exceeds gate value 156 for firefox webpack home p95 domInteractive
Benchmark value 81 exceeds gate value 49 for firefox webpack home p95 backgroundConnect
Benchmark value 64 exceeds gate value 50 for firefox webpack home p95 firstReactRender
Benchmark value 16 exceeds gate value 2 for firefox webpack home p95 initialActions
Benchmark value 1816 exceeds gate value 1630 for firefox webpack home p95 loadScripts
Benchmark value 118 exceeds gate value 28 for firefox webpack home p95 setupStore
Sum of mean exceeds: 1913ms | Sum of p95 exceeds: 2254.8ms
Sum of all benchmark exceeds: 4167.8ms

Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 38 Bytes (0%)
  • ui: -113 Bytes (0%)
  • common: 15 Bytes (0%)

@metamaskbot
Copy link
Collaborator

Builds ready [6a85988]
UI Startup Metrics (1299 ± 67 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1299115515916713361416
load111499813256011501210
domContentLoaded110699213176011441193
domInteractive19146381841
firstPaint72270126244811311175
backgroundConnect2172032538219233
firstReactRender21155362136
getState1043271224
initialActions20184212
loadScripts897791110659936983
setupStore74213712
WebpackHomeuiStartup23461930261313224282531
load18461433214815219432111
domContentLoaded18401426214415219332106
domInteractive2312239361571
firstPaint1566367490169326
backgroundConnect41132906330270
firstReactRender1728635374206338
getState184256411425
initialActions10218225733
loadScripts18331423214215219282104
setupStore186213271731
FirefoxBrowserifyHomeuiStartup14311275212614714541758
load1239112216189012681435
domContentLoaded1239112216179012681435
domInteractive1043734458101290
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2514192192449
firstReactRender26206672932
getState12320026761
initialActions4017117215
loadScripts1218110215958512491400
setupStore11418223633
WebpackHomeuiStartup17271490240019118072168
load14581271195913915381749
domContentLoaded14581270195913915381749
domInteractive97334076590300
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect301777163573
firstReactRender51417155561
getState163257411226
initialActions9022933317
loadScripts14341249192213515141703
setupStore174257391045
Benchmark value 1300 exceeds gate value 1234 for chrome browserify home mean uiStartup
Benchmark value 1115 exceeds gate value 1070 for chrome browserify home mean load
Benchmark value 1106 exceeds gate value 1061 for chrome browserify home mean domContentLoaded
Benchmark value 217 exceeds gate value 10 for chrome browserify home mean backgroundConnect
Benchmark value 3 exceeds gate value 1 for chrome browserify home mean initialActions
Benchmark value 897 exceeds gate value 830 for chrome browserify home mean loadScripts
Benchmark value 1416 exceeds gate value 1365 for chrome browserify home p95 uiStartup
Benchmark value 1210 exceeds gate value 1190 for chrome browserify home p95 load
Benchmark value 1193 exceeds gate value 1180 for chrome browserify home p95 domContentLoaded
Benchmark value 233 exceeds gate value 18 for chrome browserify home p95 backgroundConnect
Benchmark value 12 exceeds gate value 1.2 for chrome browserify home p95 initialActions
Benchmark value 983 exceeds gate value 940 for chrome browserify home p95 loadScripts
Benchmark value 2347 exceeds gate value 2192 for chrome webpack home mean uiStartup
Benchmark value 1847 exceeds gate value 1711 for chrome webpack home mean load
Benchmark value 1840 exceeds gate value 1704 for chrome webpack home mean domContentLoaded
Benchmark value 23 exceeds gate value 21 for chrome webpack home mean domInteractive
Benchmark value 41 exceeds gate value 40 for chrome webpack home mean backgroundConnect
Benchmark value 11 exceeds gate value 7 for chrome webpack home mean initialActions
Benchmark value 1833 exceeds gate value 1699 for chrome webpack home mean loadScripts
Benchmark value 2531 exceeds gate value 2454 for chrome webpack home p95 uiStartup
Benchmark value 2111 exceeds gate value 2030 for chrome webpack home p95 load
Benchmark value 2107 exceeds gate value 2005 for chrome webpack home p95 domContentLoaded
Benchmark value 72 exceeds gate value 57 for chrome webpack home p95 domInteractive
Benchmark value 270 exceeds gate value 90 for chrome webpack home p95 backgroundConnect
Benchmark value 33 exceeds gate value 7 for chrome webpack home p95 initialActions
Benchmark value 2105 exceeds gate value 1970 for chrome webpack home p95 loadScripts
Benchmark value 1432 exceeds gate value 1405 for firefox browserify home mean uiStartup
Benchmark value 1240 exceeds gate value 1239 for firefox browserify home mean domContentLoaded
Benchmark value 26 exceeds gate value 25 for firefox browserify home mean backgroundConnect
Benchmark value 27 exceeds gate value 25 for firefox browserify home mean firstReactRender
Benchmark value 12 exceeds gate value 11 for firefox browserify home mean getState
Benchmark value 5 exceeds gate value 1 for firefox browserify home mean initialActions
Benchmark value 12 exceeds gate value 9 for firefox browserify home mean setupStore
Benchmark value 1758 exceeds gate value 1660 for firefox browserify home p95 uiStartup
Benchmark value 290 exceeds gate value 195 for firefox browserify home p95 domInteractive
Benchmark value 61 exceeds gate value 24 for firefox browserify home p95 getState
Benchmark value 15 exceeds gate value 2 for firefox browserify home p95 initialActions
Benchmark value 33 exceeds gate value 27 for firefox browserify home p95 setupStore
Benchmark value 1727 exceeds gate value 1615 for firefox webpack home mean uiStartup
Benchmark value 1458 exceeds gate value 1380 for firefox webpack home mean load
Benchmark value 1458 exceeds gate value 1380 for firefox webpack home mean domContentLoaded
Benchmark value 31 exceeds gate value 26 for firefox webpack home mean backgroundConnect
Benchmark value 52 exceeds gate value 38 for firefox webpack home mean firstReactRender
Benchmark value 16 exceeds gate value 15 for firefox webpack home mean getState
Benchmark value 10 exceeds gate value 1 for firefox webpack home mean initialActions
Benchmark value 1434 exceeds gate value 1360 for firefox webpack home mean loadScripts
Benchmark value 17 exceeds gate value 13 for firefox webpack home mean setupStore
Benchmark value 2168 exceeds gate value 1935 for firefox webpack home p95 uiStartup
Benchmark value 1749 exceeds gate value 1660 for firefox webpack home p95 load
Benchmark value 1749 exceeds gate value 1660 for firefox webpack home p95 domContentLoaded
Benchmark value 300 exceeds gate value 156 for firefox webpack home p95 domInteractive
Benchmark value 73 exceeds gate value 49 for firefox webpack home p95 backgroundConnect
Benchmark value 61 exceeds gate value 50 for firefox webpack home p95 firstReactRender
Benchmark value 17 exceeds gate value 2 for firefox webpack home p95 initialActions
Benchmark value 1703 exceeds gate value 1630 for firefox webpack home p95 loadScripts
Benchmark value 45 exceeds gate value 28 for firefox webpack home p95 setupStore
Sum of mean exceeds: 1414ms | Sum of p95 exceeds: 1912.8ms
Sum of all benchmark exceeds: 3326.8ms

Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 38 Bytes (0%)
  • ui: -113 Bytes (0%)
  • common: 15 Bytes (0%)

@hmalik88 hmalik88 added this pull request to the merge queue Jul 18, 2025
Merged via the queue into main with commit 380da05 Jul 18, 2025
145 checks passed
@hmalik88 hmalik88 deleted the hm/mul-442 branch July 18, 2025 13:35
@metamaskbot metamaskbot added the release-13.1.0 Issue or pull request that will be included in release 13.1.0 label Jul 18, 2025
gantunesr pushed a commit that referenced this pull request Jul 28, 2025
…vigation (#34381)

## **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? The `AddressQRCode` component
currently uses a `history.push` call to navigate to its respective
account details page. This is erroneous because account details uses
`history.goBack` which just picks the page it came from which is
`AddressQRCode`.
2. What is the improvement/solution? Use `history.goBack` in the
`AddressQRCode` component.

## **Manual testing steps**

1. Build from this branch.
2. Navigate to an account's address qr code page, navigate back to the
account details page, hit back again.
3. Observe that the navigation leads you back to the home page.

## **Screenshots/Recordings**

### **Before**


https://github.com/user-attachments/assets/e238f5fc-4dc4-4901-b137-984b06d85130

### **After**


https://github.com/user-attachments/assets/da2e140e-9455-4612-93ef-66ec730e4dc1

## **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.
DDDDDanica pushed a commit that referenced this pull request Jul 29, 2025
…vigation cherry-pick cp-13.0.0 (#34679)

## **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? The `AddressQRCode` component
currently uses a `history.push` call to navigate to its respective
account details page. This is erroneous because account details uses
`history.goBack` which just picks the page it came from which is
`AddressQRCode`.
2. What is the improvement/solution? Use `history.goBack` in the
`AddressQRCode` component.

Cherry-pick from:
#34381

Fixes: #34607

## **Manual testing steps**

1. Build from this branch.
2. Navigate to an account's address qr code page, navigate back to the
account details page, hit back again.
3. Observe that the navigation leads you back to the home page.

## **Screenshots/Recordings**

### **Before**


https://github.com/user-attachments/assets/e238f5fc-4dc4-4901-b137-984b06d85130

### **After**


https://github.com/user-attachments/assets/da2e140e-9455-4612-93ef-66ec730e4dc1

## **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: Hassan Malik <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

INVALID-PR-TEMPLATE PR's body doesn't match template no-changelog no-changelog Indicates no external facing user changes, therefore no changelog documentation needed release-13.1.0 Issue or pull request that will be included in release 13.1.0 team-accounts-framework Accounts Framework team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants