Skip to content

Conversation

@n3ps
Copy link
Contributor

@n3ps n3ps commented Oct 25, 2025

Description

Remove unassigned variables and dead code in Settings

Changelog

CHANGELOG entry: null

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

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.

Note

Removes unused breadcrumb-related props/markup from Settings and an unused error var in domain lookup, simplifying subheader rendering and updating stories/tests accordingly.

  • Settings UI:
    • Remove unused breadcrumb props (initialBreadCrumbKey, initialBreadCrumbRoute, breadCrumbTextKey) from settings.component.js, container, stories, and tests.
    • Simplify subheader: drop clickable breadcrumb/link logic and render plain Text heading; keep address trail for entry pages.
    • Pass through and use existing props unchanged; update Storybook/test fixtures to match new prop shape.
  • Domains:
    • Remove unused error var and stop passing it to lookupEnd in ui/ducks/domains.js (logic otherwise unchanged).

Written by Cursor Bugbot for commit 27e5d1c. This will update automatically on new commits. Configure here.

@metamaskbot metamaskbot added the team-core-extension-ux Core Extension UX team label Oct 25, 2025
@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
Copy link
Collaborator

📊 Page Load Benchmark Results

Current Commit: 73522dc | Date: 10/25/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.04s (±73ms) 🟡 | historical mean value: 1.05s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 729ms (±70ms) 🟢 | historical mean value: 737ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 75ms (±12ms) 🟢 | historical mean value: 78ms ⬇️ (historical data)
📈 Detailed Results
Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 73ms 1.00s 1.34s 1.26s 1.34s
domContentLoaded 729ms 70ms 693ms 1.02s 934ms 1.02s
firstPaint 75ms 12ms 60ms 180ms 84ms 180ms
firstContentfulPaint 75ms 12ms 60ms 180ms 84ms 180ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms

Results generated automatically by MetaMask CI

@metamaskbot
Copy link
Collaborator

Builds ready [73522dc]
UI Startup Metrics (1268 ± 86 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup1268109214968613231425
load109195713128411381250
domContentLoaded108595413068311341241
domInteractive19145081843
firstPaint57581131544710931197
backgroundConnect2312182517234245
firstReactRender28194473141
getState1975082333
initialActions607611618
loadScripts8607281083829081021
setupStore1072641020
BrowserifyPower User HomeuiStartup22581874350749425203507
load1186959189233616531892
domContentLoaded1176953188233116431882
domInteractive311784214784
firstPaint825159189151710251891
backgroundConnect25822136041279360
firstReactRender27224042740
getState226136664116221664
initialActions1621092712109
loadScripts930725153129813731531
setupStore1392651326
WebpackStandard HomeuiStartup8747401208768971044
load658599101673664836
domContentLoaded650593100772658824
domInteractive16126481437
firstPaint16756767139187608
backgroundConnect251199102837
firstReactRender27175383336
getState1354961522
initialActions4114359
loadScripts64659199771655813
setupStore1052331215
WebpackPower User HomeuiStartup18221497260340424002603
load77062414532379251453
domContentLoaded73260813182018921318
domInteractive201241103341
firstPaint4047213214069061321
backgroundConnect11725411126271411
firstReactRender24222512425
getState18411131038187310
initialActions919422494
loadScripts72860513061978801306
setupStore1861132523113
FirefoxBrowserifyStandard HomeuiStartup14801291188710915251705
load1262112514197113151393
domContentLoaded1261112414197113151393
domInteractive1193336252128228
firstPaint------
backgroundConnect4326144204992
firstReactRender25217772539
getState948611815
initialActions41839312
loadScripts1234110413956912721357
setupStore136136141225
BrowserifyPower User HomeuiStartup28212433399844429573998
load14261248171915216191719
domContentLoaded14261248171915116181719
domInteractive1374226563206265
firstPaint------
backgroundConnect2646011073203371107
firstReactRender41305884858
getState1617025652191256
initialActions62255625
loadScripts13711187161514215671615
setupStore3861103770110
WebpackStandard HomeuiStartup16171448206112316571881
load1383121417159914391579
domContentLoaded1383121417159914381578
domInteractive1123242768110266
firstPaint------
backgroundConnect4926118215989
firstReactRender28227472837
getState9413914917
initialActions518712319
loadScripts1353119616859614141537
setupStore13699111431
WebpackPower User HomeuiStartup30732622390639033533906
load17801557227020219242270
domContentLoaded17801556226920219242269
domInteractive20097659142218659
firstPaint------
backgroundConnect18938820221240820
firstReactRender433265105165
getState17911531156225311
initialActions823081530
loadScripts17311518224619318722246
setupStore30573235673
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: -64 Bytes (0%)
  • common: -6 Bytes (0%)

@n3ps n3ps requested a review from a team October 27, 2025 13:39
@n3ps n3ps enabled auto-merge October 27, 2025 13:59
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should these be removed from Settings page also?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Removing some more... 🪓

@github-actions github-actions bot added size-S and removed size-XS labels Oct 30, 2025
>
<Text
className={classnames({
'settings-page__subheader--link': initialBreadCrumbRoute,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with initialBreadCrumbRoute gone there was no point to the className and onClick

@n3ps n3ps requested a review from ameliejyc October 30, 2025 12:42
@n3ps n3ps changed the title chore: unused vars chore: unassigned variables Oct 30, 2025
@metamaskbot
Copy link
Collaborator

📊 Page Load Benchmark Results

Current Commit: 27e5d1c | Date: 10/30/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.06s (±78ms) 🟡 | historical mean value: 1.06s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 727ms (±92ms) 🟢 | historical mean value: 739ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 83ms (±45ms) 🟢 | historical mean value: 78ms ⬆️ (historical data)
📈 Detailed Results
Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.06s 78ms 1.02s 1.36s 1.29s 1.36s
domContentLoaded 727ms 92ms 682ms 1.31s 948ms 1.31s
firstPaint 83ms 45ms 64ms 528ms 92ms 528ms
firstContentfulPaint 83ms 45ms 64ms 528ms 92ms 528ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms

Results generated automatically by MetaMask CI

@metamaskbot
Copy link
Collaborator

Builds ready [27e5d1c]
UI Startup Metrics (1267 ± 78 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup1267111814567813311404
load108695012527111371192
domContentLoaded108094512437111301185
domInteractive201466101846
firstPaint61872125044510951204
backgroundConnect2302182537234247
firstReactRender28185583343
getState19104272238
initialActions50304614
loadScripts857727101370910972
setupStore1062741019
numNetworkReqs96327631
BrowserifyPower User HomeuiStartup22641798390768731983907
load1192956214936515692149
domContentLoaded1184948212236115582122
domInteractive341592234692
firstPaint57719321605129872160
backgroundConnect26222145271285452
firstReactRender26233022730
getState17413724822179248
initialActions813310533
loadScripts945721179332912691793
setupStore1382651526
numNetworkReqs395211732197692732
WebpackStandard HomeuiStartup815696132285834996
load60355190669605768
domContentLoaded59554588168598748
domInteractive15113661433
firstPaint19852922202183595
backgroundConnect241295112747
firstReactRender26167293135
getState1152241418
initialActions3015247
loadScripts59254283464596740
setupStore1052131214
numNetworkReqs106358833
WebpackPower User HomeuiStartup17291298266245322572662
load76461612892058321289
domContentLoaded71560611181517621118
domInteractive19124392943
firstPaint3616411213627651121
backgroundConnect15018558180393558
firstReactRender25222922529
getState15311717612159176
initialActions10176181076
loadScripts71160411071487521107
setupStore15581181581
numNetworkReqs384201735175586735
FirefoxBrowserifyStandard HomeuiStartup14661279191711115311678
load1246109115379013051433
domContentLoaded1245109115379013051432
domInteractive1193635153126228
firstPaint------
backgroundConnect4324188244794
firstReactRender28215792653
getState84416713
initialActions411631637
loadScripts1218106315229012741399
setupStore146202201218
numNetworkReqs96337729
BrowserifyPower User HomeuiStartup26902278357136230613571
load14401196196618515471966
domContentLoaded14401196196518415471965
domInteractive17710540284221402
firstPaint------
backgroundConnect17533524166416524
firstReactRender423064104964
getState13910819227165192
initialActions11153152153
loadScripts13901170176515314831765
setupStore301188254488
numNetworkReqs24917445083315450
WebpackStandard HomeuiStartup16291440207712516841909
load14021205174010314351648
domContentLoaded14011205174010314341648
domInteractive1144142370116332
firstPaint------
backgroundConnect4324101154972
firstReactRender322276133073
getState9414014815
initialActions51729316
loadScripts1375118817109914081608
setupStore137140141321
numNetworkReqs106358832
WebpackPower User HomeuiStartup27612272446251929334462
load16341275205825119122058
domContentLoaded16341275205725119112057
domInteractive1558232978195329
firstPaint------
backgroundConnect14140573128212573
firstReactRender433166104966
getState1367822937169229
initialActions816515865
loadScripts15811258201123118552011
setupStore44103909122390
numNetworkReqs269143550114351550
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 39.97 KiB (0.87%)
  • ui: 28.53 KiB (0.4%)
  • common: -27.36 KiB (-0.32%)

@n3ps n3ps added this pull request to the merge queue Oct 30, 2025
Merged via the queue into main with commit 972188b Oct 30, 2025
625 of 654 checks passed
@n3ps n3ps deleted the n3ps/rm-unused branch October 30, 2025 16:09
@github-actions github-actions bot locked and limited conversation to collaborators Oct 30, 2025
@metamaskbot metamaskbot added the release-13.8.0 Issue or pull request that will be included in release 13.8.0 label Oct 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-13.8.0 Issue or pull request that will be included in release 13.8.0 size-S team-core-extension-ux Core Extension UX team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants