chore: remove pinned swap token from asset picker#40204
Merged
micaelae merged 4 commits intoswaps/fix-bridge-input-flakyfrom Feb 18, 2026
Merged
chore: remove pinned swap token from asset picker#40204micaelae merged 4 commits intoswaps/fix-bridge-input-flakyfrom
micaelae merged 4 commits intoswaps/fix-bridge-input-flakyfrom
Conversation
Contributor
✨ Files requiring CODEOWNER review ✨🔄 @MetaMask/swaps-engineers (2 files, +8 -8)
|
Contributor
Builds ready [3bc6076]
UI Startup Metrics (1440 ± 106 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
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 UI/data-fetch parameter tweak limited to the bridge asset picker; main risk is subtle changes to token ordering and API caching behavior.
Overview
Updates the bridge asset picker to stop forcing the currently selected asset into the
assetsToIncludelist, so token fetches and resulting ordering are no longer influenced by the selected token.This removes
selectedAssetfrom theuseMemothat buildsassetsToInclude(and its dependency), and updates theBridgeInputGroupJest snapshots to reflect the changedincludeAssetsrequest bodies and cache keys.Written by Cursor Bugbot for commit 07fcfa9. This will update automatically on new commits. Configure here.