fix: render "Dapp Connections" pages with constrained max width#39801
Merged
jeffsmale90 merged 1 commit intomainfrom Feb 4, 2026
Merged
fix: render "Dapp Connections" pages with constrained max width#39801jeffsmale90 merged 1 commit intomainfrom
jeffsmale90 merged 1 commit intomainfrom
Conversation
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. |
Contributor
✨ Files requiring CODEOWNER review ✨👨🔧 @MetaMask/core-extension-ux (2 files, +2 -9)
|
5d6bc1d to
dd0be9d
Compare
…riate fixed width - remove unused ref from first permissions page - rename page variables in routes component for clarity (GatorPermissions prefix)
dd0be9d to
e794234
Compare
7 tasks
n3ps
approved these changes
Feb 4, 2026
mj-kiwi
approved these changes
Feb 4, 2026
Contributor
Builds ready [e794234]
UI Startup Metrics (1385 ± 85 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
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"
Via "Token transfer" permissions
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
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
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
LegacyLayouttoRootLayout(including token transfer and review subpages).Cleans up related plumbing by removing an unused
useRef/placeholderBoxinGatorPermissionsPageand renaming the lazy-loaded route variables with aGatorPermissionsprefix; updates the Jest snapshot accordingly.Written by Cursor Bugbot for commit e794234. This will update automatically on new commits. Configure here.