feat: batch sell loading and stablecoin selection#29879
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. |
d5df801 to
e2f836c
Compare
a5990ec to
cc7a1ab
Compare
e2f836c to
db33140
Compare
7e9ad0c to
d05d956
Compare
|
Duplication is intentional as they are constants. Skipping the quality check |
e5ba722 to
b5fb119
Compare
d05d956 to
219c754
Compare
1364451 to
10cc80f
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 10cc80f. Configure here.
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #29879 +/- ##
==========================================
+ Coverage 81.54% 81.74% +0.20%
==========================================
Files 5343 5393 +50
Lines 142128 143632 +1504
Branches 32411 32790 +379
==========================================
+ Hits 115899 117414 +1515
+ Misses 18299 18194 -105
- Partials 7930 8024 +94 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
SmokeSwap is the primary tag as all changes are within the Bridge/Swap feature area. The bridge Redux slice changes and navigation flow modifications could affect existing swap/bridge E2E tests. SmokeConfirmations is required per SmokeSwap tag description: "When selecting SmokeSwap, also select SmokeConfirmations (transaction confirmations are part of the flow)." No other tags are warranted as changes are isolated to the Bridge/Swap feature area with no impact on accounts, identity, network management, snaps, browser, or other features. Performance Test Selection: |
|
weitingsun
left a comment
There was a problem hiding this comment.
platform codeowner files LGTM



Description
Adds the Batch Sell review-screen loading and control states for Unified Swaps behind the
MM_BATCH_SELL_ENABLEDgate. This focuses the pre-quote review experience on skeleton placeholders, percent allocation controls, and destination stablecoin selection.The review screen now shows quote-dependent skeleton loaders for total received and per-token amounts, exposes discrete percent sliders that snap to supported allocation points, and lets users choose a destination stablecoin through a routed picker modal with fiat balance rows when available.
Changelog
CHANGELOG entry: Added Batch Sell review loading states, percent sliders, and destination stablecoin selection
Related issues
Refs: SWAPS-4439
Manual testing steps
Screenshots/Recordings
Before
N/A
After
Screen.Recording.2026-05-12.at.12.08.07.PM.mov
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist
Note
Medium Risk
Adds new navigation routes and Redux state for Batch Sell destination token selection, plus new gesture-driven slider UI; risk is moderate due to new flow wiring and asset-id normalization that could affect token filtering/selection across chains.
Overview
Introduces a new Batch Sell review screen with skeleton loading UI, per-token percentage allocation controls (snapping to 0/25/50/75/100 via a new gesture-based
BatchSellPercentageSlider), and a destination stablecoin pill that opens a new bottom-sheet selector modal.Updates Batch Sell token selection to reset Batch Sell handoff state on entry, exclude destination stablecoins using normalized CAIP-19 asset IDs, and navigate multi-token flows to the new
Routes.BRIDGE.BATCH_SELL_REVIEWroute (while single-token flows still open the high-rate alert).Extends the bridge Redux slice with
batchSellDestToken, adds selectors for destination stablecoins (now returned as localBridgeTokenmetadata with checksum-insensitive matching), expandsBridgeTokenMetadatacoverage, and addsformatTokenBalance/asset-id normalization utilities with accompanying tests.Reviewed by Cursor Bugbot for commit 4956b5e. Bugbot is set up for automated code reviews on this repo. Configure here.