chore: remove pinned swap token from asset picker#40211
Merged
Conversation
chore: remove pinned swap token from asset picker
Contributor
✨ Files requiring CODEOWNER review ✨🔄 @MetaMask/swaps-engineers (3 files, +61 -72)
|
Contributor
Builds ready [0842ec5]
UI Startup Metrics (1451 ± 103 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs
|
SteP-n-s
approved these changes
Feb 18, 2026
ghgoodreau
approved these changes
Feb 18, 2026
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
Preserves the selected asset's sorting order instead of pinning it to the top of the list
Changelog
CHANGELOG entry: chore: remove pinned swap token from asset picker
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/SWAPS-3982
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Low Risk
Small behavioral change scoped to asset-picker token inclusion/sorting plus corresponding test/snapshot updates; low risk outside of potential UX ordering regressions.
Overview
The bridge asset picker no longer injects the currently selected token into the
assetsToIncludelist used for fetching/populating tokens, so the selected asset keeps its natural sort position instead of being pinned.Updates
BridgeInputGroupunit tests and snapshots to match the new request payloads and list ordering expectations, relaxes one fetch call-count assertion, and adjusts Jest console baselines for a new React unmounted-state-update warning.Written by Cursor Bugbot for commit 0842ec5. This will update automatically on new commits. Configure here.