feat: Add numpad quick-action A/B test and analytics#26343
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. |
# Conflicts: # app/components/UI/Bridge/Views/BridgeView/index.tsx # app/components/UI/Bridge/components/GaslessQuickPickOptions/index.tsx
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.
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
Why SmokeTrade: This tag covers token swaps and cross-chain bridging, which is exactly what these changes affect. The BridgeView component and GaslessQuickPickOptions are core parts of the swap/bridge flow. Why SmokeConfirmations: Per the tag description, "When selecting SmokeTrade for swap or bridge flows, also select SmokeConfirmations" since transaction confirmations are part of the swap/bridge flow. The changes are primarily refactoring and adding A/B testing capabilities without modifying core business logic, making this a medium risk change. Performance Test Selection: |
The committed fixture schema is out of date. To update, comment: |
Description
Implements SWAPS4135 for SwapBridge numpad quick actions with LaunchDarkly A/B treatment and analytics instrumentation updates.
Changes included:
swapsSWAPS4135AbtestNumpadQuickAmounts.control:25% / 50% / 75% / Maxtreatment:50% / 75% / 90% / Maxcontrol:25% / 50% / 75% / 90%treatment:50% / 75% / 85% / 95%active_ab_testsusing{ key, value }entries and stopped using the legacy explicitab_testskey for this experiment.Changelog
CHANGELOG entry: null
Related issues
Fixes: SWAPS4135
Manual testing steps
Screenshots/Recordings
Before
N/A
After
N/A
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Medium Risk
Changes SwapBridge keypad quick-pick amounts via a remote A/B test and updates analytics payloads, which can affect user input behavior and metrics. Risk is limited to UI presets/event instrumentation and is gated by feature flags.
Overview
Adds an A/B test (
swapsSWAPS4135AbtestNumpadQuickAmounts) that changes which percentage quick-actions appear in the SwapBridge numpad, with separate variant sets depending on whetherMaxis allowed.Refactors analytics instrumentation: quick-action presses now track
UnifiedSwapBridgeEventName.InputChangedwith string presets (e.g.,"25%","MAX") and includeactive_ab_testswhen the experiment is active, andSWAP_PAGE_VIEWEDtracking is moved out ofBridgeViewinto a newuseTrackSwapPageViewedhook (also emittingactive_ab_tests). Tests forGaslessQuickPickOptionsare updated to render with Redux context and to mock analytics.Written by Cursor Bugbot for commit 09b9ce9. This will update automatically on new commits. Configure here.