Skip to content

fix: render "Dapp Connections" pages with constrained max width#39801

Merged
jeffsmale90 merged 1 commit intomainfrom
fix/permissions-layout
Feb 4, 2026
Merged

fix: render "Dapp Connections" pages with constrained max width#39801
jeffsmale90 merged 1 commit intomainfrom
fix/permissions-layout

Conversation

@jeffsmale90
Copy link
Contributor

@jeffsmale90 jeffsmale90 commented Feb 4, 2026

Description

When reviewing Dapp Connections, the user must navigate the page hierarchy to refine the permissions list. Some of these interim pages were rendered fullscreen instead of with an appropriate max width constraint.

This PR fixes that by updating the "layout" to "DefaultLayout" (previously "LegacyLayout").

Also:

  • remove unused ref from first permissions page
  • rename page variables in routes component for clarity (GatorPermissions prefix)

Open in GitHub Codespaces

Changelog

CHANGELOG entry: fixes fullscreen rendering of Dapp Connections pages by updating layout from "LegacyLayout" to "DefaultLayout"

Related issues

Fixes:

Manual testing steps

The following should be tested in Popup, Fullscreen, and side panel modes.

Via "Sites"

  1. Navigate to "Dapp Connections" page (previously "All Permissions")
  2. Click "Sites"
  3. Click any connected site
  4. Click any listed network

Via "Token transfer" permissions

  1. Navigate to "Dapp Connections" page (previously "All Permissions")
  2. Click "Token transfer"
  3. Click any listed network

Note that all pages are rendered with the appropriate max width constraint consistent with the rest of the wallet interface.

Screenshots/Recordings

Before

Note this page is rendered in full width

image

After

Note that all pages are now constrained to an appropriate max width

dapp.connections.with.constrained.max.width.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.

Note

Low Risk
Low risk UI routing/layout change; main risk is unintended styling/navigation regressions on the GATOR_PERMISSIONS/token-transfer/review routes due to layout swap and route component renames.

Overview
Ensures the Dapp Connections (Gator Permissions) route set renders with the standard max-width constraints by switching these routes from LegacyLayout to RootLayout (including token transfer and review subpages).

Cleans up related plumbing by removing an unused useRef/placeholder Box in GatorPermissionsPage and renaming the lazy-loaded route variables with a GatorPermissions prefix; updates the Jest snapshot accordingly.

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

@github-actions
Copy link
Contributor

github-actions bot commented Feb 4, 2026

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 the team-delegation MetaMask Delegation Team label Feb 4, 2026
@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Feb 4, 2026

✨ Files requiring CODEOWNER review ✨

👨‍🔧 @MetaMask/core-extension-ux (2 files, +2 -9)
  • 📁 ui/
    • 📁 components/
      • 📁 multichain/
        • 📁 pages/
          • 📁 gator-permissions/
            • 📁 __snapshots__/
              • 📄 gator-permissions-page.test.tsx.snap +0 -3
              • 📄 gator-permissions-page.tsx +2 -6

…riate fixed width

- remove unused ref from first permissions page
- rename page variables in routes component for clarity (GatorPermissions prefix)
@jeffsmale90 jeffsmale90 force-pushed the fix/permissions-layout branch from dd0be9d to e794234 Compare February 4, 2026 20:16
@jeffsmale90 jeffsmale90 marked this pull request as ready for review February 4, 2026 20:16
@jeffsmale90 jeffsmale90 requested a review from a team as a code owner February 4, 2026 20:16
@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Feb 4, 2026

Builds ready [e794234]
UI Startup Metrics (1385 ± 85 ms)
PlatformBuildTypePageMetricTest Title (ms)Persona (ms)Mean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--1385117316428514411509
load--118598514258512411303
domContentLoaded--117998013828312321297
domInteractive--261695182281
firstPaint--1536735366195299
backgroundConnect--23421330416238262
firstReactRender--17103851827
initialActions--105112
loadScripts--96176911498310161085
setupStore--1272841519
numNetworkReqs--231590201582
19--------
BrowserifyPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--18291491331924618822285
load--11981051228021111731754
domContentLoaded--11821047218120411591717
domInteractive--37191342435106
firstPaint--225751849258241591
backgroundConnect--33629341932354410
firstReactRender--23155472541
initialActions--105113
loadScripts--92979718601898981447
setupStore--1583751731
numNetworkReqs--1204628251143266
19--------
WebpackStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--84266510611039151028
load--715593970103793938
domContentLoaded--710589963102785933
domInteractive--251598182277
firstPaint--1166065483136299
backgroundConnect--311694163468
firstReactRender--15103451728
initialActions--103112
loadScripts--707587961101776931
setupStore--1153751223
numNetworkReqs--231592211585
19--------
WebpackPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--1206894181020513121704
load--69360613021286821042
domContentLoaded--68459912931276681033
domInteractive--35172293534121
firstPaint--141651039123154356
backgroundConnect--16512837856158318
firstReactRender--21173332328
initialActions--102111
loadScripts--68159712851256661023
setupStore--1142131317
numNetworkReqs--1194328455145263
19--------
FirefoxBrowserifyStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--15531277213517416461891
load--13091113178813913801547
domContentLoaded--13071108178814013801547
domInteractive--73321593894142
firstPaint--------
backgroundConnect--63262103961150
firstReactRender--1292421216
initialActions--102012
loadScripts--12781092174713113441523
setupStore--1145881029
numNetworkReqs--241295221793
19--------
BrowserifyPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--29572027534166831974458
load--17061304330341919012489
domContentLoaded--17051297330341919002489
domInteractive--140351688189126417
firstPaint--------
backgroundConnect--34111313652883561026
firstReactRender--211485102132
initialActions--213122
loadScripts--16491269326939518282345
setupStore--14291204218126699
numNetworkReqs--65351673284136
19--------
WebpackStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--16281342236618117511953
load--13911147190213014551601
domContentLoaded--13901147190113114541601
domInteractive--952923744130173
firstPaint--------
backgroundConnect--62251923966167
firstReactRender--14112931522
initialActions--102122
loadScripts--13581132187012014191550
setupStore--2141893513128
numNetworkReqs--231279171875
19--------
WebpackPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--26602061417945327633834
load--14971171253228916312154
domContentLoaded--14961171253128916302154
domInteractive--11932633127106498
firstPaint--------
backgroundConnect--2941181353234285863
firstReactRender--21167482229
initialActions--203123
loadScripts--14541148251526315942011
setupStore--14861265219162630
numNetworkReqs--64341453393134
19--------
📊 Page Load Benchmark Results

Current Commit: e794234 | Date: 2/4/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.04s (±44ms) 🟡 | historical mean value: 1.03s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 721ms (±40ms) 🟢 | historical mean value: 723ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 76ms (±11ms) 🟢 | historical mean value: 80ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 44ms 1.00s 1.33s 1.06s 1.33s
domContentLoaded 721ms 40ms 695ms 992ms 749ms 992ms
firstPaint 76ms 11ms 56ms 160ms 84ms 160ms
firstContentfulPaint 76ms 11ms 56ms 160ms 84ms 160ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs
  • background: 58 Bytes (0%)
  • ui: -681 Bytes (-0.01%)
  • common: 20 Bytes (0%)

@jeffsmale90 jeffsmale90 added this pull request to the merge queue Feb 4, 2026
Merged via the queue into main with commit c22bdf1 Feb 4, 2026
361 of 364 checks passed
@jeffsmale90 jeffsmale90 deleted the fix/permissions-layout branch February 4, 2026 22:12
@github-actions github-actions bot locked and limited conversation to collaborators Feb 4, 2026
@metamaskbot metamaskbot added the release-13.18.0 Issue or pull request that will be included in release 13.18.0 label Feb 4, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-13.18.0 Issue or pull request that will be included in release 13.18.0 size-S team-delegation MetaMask Delegation Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants