feat: Add A/B test for bridge token selector balance layout#27690
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. |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
Tag selection rationale:
No other tags are needed - these changes are isolated to the Bridge/Swap feature area with no impact on accounts, networks, identity, snaps, ramps, or other features. Performance Test Selection: |
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.
|
|
✅ E2E Fixture Validation — Schema is up to date |




Description
This PR adds an A/B test for the bridge token selector balance layout.
Control keeps the current presentation by showing fiat balance on the top row and keeping the ticker in the token balance text. Treatment moves the token balance to the top row, removes the duplicate ticker from the token balance text, and keeps the top and bottom rows aligned with the intended size and color hierarchy.
The PR also passes the active experiment through the bridge page-view and submit analytics paths using
active_ab_testsso the treatment can be evaluated against downstream conversion metrics.Changelog
CHANGELOG entry: Added an experiment for the bridge token selector balance layout.
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
Control variant:

After
Treatment variant:

Pre-merge author checklist
Pre-merge reviewer checklist
Note
Medium Risk
Moderate risk: changes token list balance rendering logic and adds new
activeAbTestspayloads to bridge submit/page-view analytics paths, which could affect UI presentation and event schemas if mismatched.Overview
Adds a new A/B experiment (
swapsSWAPS4242AbtestTokenSelectorBalanceLayout) to vary the Bridge token selector balance layout: control keeps fiat on the top row with the token ticker included, while treatment moves token balance to the top row and optionally removes the ticker.Updates bridge analytics plumbing to include a consolidated
active_ab_testsarray on swap page-view events and to forwardactiveAbTeststhroughuseSubmitBridgeTxintoBridgeStatusController.submitTx/submitIntent, with expanded unit tests covering both control/treatment behavior and payload propagation.Written by Cursor Bugbot for commit 2508c8c. This will update automatically on new commits. Configure here.