-
Notifications
You must be signed in to change notification settings - Fork 5.4k
fix: in UI implementation of dapp swap feature #37926
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. |
...confirmations/hooks/transactions/dapp-swap-comparison/useDappSwapComparisonLatencyMetrics.ts
Show resolved
Hide resolved
...confirmations/components/confirm/dapp-swap-comparison-banner/dapp-swap-comparison-banner.tsx
Show resolved
Hide resolved
...confirmations/hooks/transactions/dapp-swap-comparison/useDappSwapComparisonLatencyMetrics.ts
Show resolved
Hide resolved
Builds ready [f730c38]
UI Startup Metrics (1235 ± 89 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
|
Builds ready [f08c704]
UI Startup Metrics (1343 ± 95 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
|
...confirmations/hooks/transactions/dapp-swap-comparison/useDappSwapComparisonLatencyMetrics.ts
Show resolved
Hide resolved
...confirmations/hooks/transactions/dapp-swap-comparison/useDappSwapComparisonLatencyMetrics.ts
Show resolved
Hide resolved
...confirmations/hooks/transactions/dapp-swap-comparison/useDappSwapComparisonLatencyMetrics.ts
Show resolved
Hide resolved
Builds ready [85df878]
UI Startup Metrics (1222 ± 95 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
|
...confirmations/hooks/transactions/dapp-swap-comparison/useDappSwapComparisonLatencyMetrics.ts
Show resolved
Hide resolved
chaitanyapotti
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 web3auth related changes
Builds ready [7c18d46]
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Description
Updates in UI implementation of dapp swap feature. UI is not updated when user toggles between swaps.
Changelog
CHANGELOG entry:
Related issues
Fixes: https://github.com/MetaMask/MetaMask-planning/issues/6275
Fixes: https://github.com/MetaMask/MetaMask-planning/issues/6281
Fixes: https://github.com/MetaMask/MetaMask-planning/issues/6283
Manual testing steps
Screenshots/Recordings
TODO
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Adds context-managed MetaMask Swap quote selection, updates confirmation to apply quote/approval, and adjusts confirmation UI/alerts accordingly.
confirm(quoteSelectedForMMSwap,isQuotedSwapDisplayedInInfo, setters) and uses it across confirm UI.DappSwapComparisonBannernow toggles between current vs MetaMask quote by setting context; shows quote simulation +NetworkRowand removes redux transaction mutations.useTransactionConfirmapplies selected MM quote totxParams, adds swap approval asbatchTransactions, clearsnestedTransactionswhen quote is shown.TransactionDatadecodes from selected quote tradedatawhen present.BaseTransactionInfohides account/details sections when quote view is shown; always rendersGasFeesSection/AdvancedDetails.EditGasFeesRowandSelectedGasFeeTokenhide edit/arrow controls when quote view is shown.TransactionDetailsalways rendersOrigin/Recipientrows (non-batch);NetworkRowremains;AmountRowlogic unchanged.BatchSimulationDetailsno longer special-cases quoted swaps.useSwapCheck(removesisQuotedSwap); latency metric updates made unconditional where applicable.useResimulationAlertsuppresses alert when quote view is shown; metrics use quote selection to setswap_final_selected.useDappSwapComparisonInfono longer accepts nested tx param; parsing refined.mockBridgeQuotesfixture; snapshot headers updated.Written by Cursor Bugbot for commit 7c18d46. This will update automatically on new commits. Configure here.