feat(card): embed Metal Card checkout flow into onboarding flow#27420
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. |
…mm-card-metal-card-onboarding-embedding
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: Per tag rules:
No core Engine, controller, network, identity, or multi-chain logic was modified. No changes affect onboarding, login, account list, swaps engine logic, predictions, perps, ramps, or snaps. Therefore, limiting execution to Card + its required dependent flows (Trade + Confirmations) provides adequate coverage with minimal risk. 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 embed the metal card checkout flow into the Card onboarding/sign-up flow.
Changelog
CHANGELOG entry: embed the metal card checkout flow into the Card onboarding/sign-up flow.
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Simulator.Screen.Recording.-.iPhone.17.-.2026-03-11.at.10.42.24.mov
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Medium Risk
Changes card onboarding navigation (including new
homeflow params and StackActions replacement) and adds new UI/animation behavior, which could affect user progression through card setup if eligibility logic or routing params are wrong.Overview
Eligible US users who press Enable Card from
CardHomeare now redirected toRoutes.CARD.CHOOSE_YOUR_CARD(newflow: 'home') instead of always starting delegation/spending-limit setup; the route passes throughshippingAddressplus token/delegation/external wallet context.ChooseYourCardis updated to support the newhomeflow, adds a swipe/peek affordance and an upgrade-to-metal link, refreshes metal/virtual copy, and routes virtual-card selection intoSPENDING_LIMITwithflow: 'manage'and the forwarded params.Post-order behavior changes so
OrderCompletedusesStackActions.replaceto take onboarding users directly toSPENDING_LIMIT(while upgrade users still go back toCARD.HOME), andSpendingLimitnow blocks back navigation during loading using a ref to avoid stale listener state. Tests and English strings are updated accordingly.Written by Cursor Bugbot for commit c52fcb5. This will update automatically on new commits. Configure here.