-
Notifications
You must be signed in to change notification settings - Fork 5.5k
chore: confirmation routing improvement and cleanup #38933
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
Conversation
|
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. |
✨ Files requiring CODEOWNER review ✨🔑 @MetaMask/accounts-engineers (1 files, +18 -1)
✅ @MetaMask/confirmations (14 files, +40 -890)
👨🔧 @MetaMask/core-extension-ux (1 files, +18 -1)
🔐 @MetaMask/web3auth (1 files, +4 -0)
|
f4651ce to
ed7ba6e
Compare
Builds ready [70e6572]
UI Startup Metrics (1291 ± 106 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚀 Bundle size reduced!]
|
Builds ready [a85aea0]
UI Startup Metrics (1244 ± 101 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚀 Bundle size reduced!]
|
…k-extension into confirm_cleanup
Builds ready [93f25d1]
UI Startup Metrics (1275 ± 97 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚀 Bundle size reduced!]
|
|
@metamaskbot update-policies |
…k-extension into confirm_cleanup
|
No policy changes |
Builds ready [a0d7058]
UI Startup Metrics (1324 ± 104 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚀 Bundle size reduced!]
|
Builds ready [ce4c94a]
UI Startup Metrics (1302 ± 99 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚀 Bundle size reduced!]
|
Builds ready [e8f3314]
UI Startup Metrics (1273 ± 100 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚀 Bundle size reduced!]
|
Builds ready [c406e66]
UI Startup Metrics (1246 ± 94 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚀 Bundle size reduced!]
|
| if (!currentConfirmation) { | ||
| return null; | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found that reason for e2e breaking is that after removing the skeleton loaders from top level, footer was still rendered ion loading state and in e2e to check that page is loaded we check for footer buttons here. Adding this condition fixed the e2e.
Builds ready [9e541bc]
UI Startup Metrics (1343 ± 111 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚀 Bundle size reduced!]
|
|
|
||
| const handleTabClick = useCallback( | ||
| (tabName: AccountOverviewTabKey) => { | ||
| setActiveTabKey(tabName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is owned by wallet UX team so will defer to them to verify.
ccharly
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM for accounts:
ui/components/multichain/account-overview/account-overview-tabs.tsx
Builds ready [4a53ceb]
UI Startup Metrics (1265 ± 124 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚀 Bundle size reduced!]
|
Description
Remove confirm-transaction.** components which are no longer needed after confirmation re-design.
Changelog
CHANGELOG entry:
Related issues
Fixes: https://github.com/MetaMask/MetaMask-planning/issues/6077
Manual testing steps
NA
Screenshots/Recordings
NA
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Streamlines confirmation flow and cleans up legacy routes/components.
confirm-transaction/*rendering with newConfirmcomponent; add explicit routes fordecrypt-message-requestandencryption-public-key-request; remove legacy confirm-transaction subpaths/constantsconfirm-transactioncomponents, switches, and related tests/snapshotsConfirmContext, navigate toDEFAULT_ROUTEand set Activity tab when a confirmation disappears;FooterandGasFeeTokenIconreturnnullwhen nocurrentConfirmationAccountOverviewTabscontrolled viaactiveTabKey, syncing withdefaultHomeActiveTabNameand clicksWritten by Cursor Bugbot for commit 4a53ceb. This will update automatically on new commits. Configure here.