Repository navigation
refactor(ui): migrate block explorer toast - #47295
Conversation
✨ Files requiring CODEOWNER review ✨🔄 @MetaMask/swaps-engineers (3 files, +26 -57)
|
Builds ready [ac58a17] [reused from 0de5e00]
⚡ Performance Benchmarks (Total: 🟢 5 pass · 🟡 3 warn · 🔴 3 fail)
Bundle Size Diffs
|
Replace the bridge page's block explorer link copied notification with the new react-hot-toast system. This removes the old Toast/ToastContainer from components/multichain and uses the globally-mounted Toaster. - Import toast and ToastContent from #ui/components/ui/toast/toast - Remove showBlockExplorerToast, blockExplorerToken, and toastTriggerCounter state - Add handleBlockExplorerClick handler shared by both inputs - Use toast.success with stable id 'bridge-block-explorer-copied' - Fix bug: avatar now uses the clicked token's icon instead of always toToken - Add unit test that verifies toast is called with correct id and icon - Remove the absolutely positioned wrapper div and old toast markup Co-authored-by: Francis Nepomuceno <n3ps@users.noreply.github.com>
414f53b to
1dad54f
Compare
|
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. |
Builds ready [a3782e6]
⚡ Performance Benchmarks (Total: 🟢 6 pass · 🟡 5 warn · 🔴 2 fail)
Bundle Size Diffs
|
| justifyContent: 'center', | ||
| }} | ||
| > | ||
| <ToastContainer> |
Builds ready [d32dc82]
⚡ Performance Benchmarks (Total: 🟢 7 pass · 🟡 4 warn · 🔴 2 fail)
Bundle Size Diffs
|
d32dc82 to
d319ed4
Compare
Builds ready [d319ed4]
⚡ Performance Benchmarks (Total: 🟢 7 pass · 🟡 4 warn · 🔴 2 fail)
Bundle Size Diffs [🚀 Bundle size reduced!]
|
Builds ready [b7133ee] [reused from d319ed4]
⚡ Performance Benchmarks (Total: 🟢 7 pass · 🟡 4 warn · 🔴 2 fail)
Bundle Size Diffs [🚀 Bundle size reduced!]
|
|
|
No release label on PR. Adding release label release-13.56.0 on PR, as PR was added to branch 13.56.0 when release was cut. |


Description
Migrates the bridge page's "block explorer link copied" toast notification to the new system.
What is the reason for the change?
The old multichain Toast component is being phased out for consistency across the extension.
toast.success()callChangelog
CHANGELOG entry: null
Related issues
Fixes:
CEUX-1256
Manual testing steps
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Low Risk
UI-only feedback change on the bridge page with no auth, transaction, or data-path impact.
Reviewed by Cursor Bugbot for commit d319ed4. Bugbot is set up for automated code reviews on this repo. Configure here.