feat(ramp): persist Transak native policy agreement for UB2 [TRAM-3340]#28952
Conversation
- Add fiatOrders.hasAgreedTransakNativePolicy with redux-persist - Skip verify-identity explainer when agreed; route to Enter Email - Set flag on explainer Continue; tests for reducer, BuildQuote, VerifyIdentity
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 2d649fc. Configure here.
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
The changes affect the on-ramp purchase flow (BuildQuote → VerifyIdentity → EnterEmail), which is exactly what SmokeRamps tests cover. No other feature areas are impacted:
SmokeRamps is the appropriate and sufficient tag to validate these changes. Performance Test Selection: |
|
|
✅ E2E Fixture Validation — Schema is up to date |




Description
Unified Buy V2 (Transak native) showed the verify-identity explainer on every visit when the user had no or expired Transak token (TRAM-3340).
This change stores
hasAgreedTransakNativePolicyon persisted ReduxfiatOrders. When the user taps Continue on the explainer, we dispatchsetHasAgreedTransakNativePolicy(true). On later continues with no token,BuildQuoteroutes straight to Enter Email ifselectHasAgreedTransakNativePolicyis true.Changelog
CHANGELOG entry: Unified Buy users who use Transak native only see the verify-identity policy screen once; later visits skip to email entry when not logged in to Transak.
Related issues
Fixes:
Refs: https://consensyssoftware.atlassian.net/browse/TRAM-3340
Manual testing steps
Screenshots/Recordings
Before
N/A
After
after.mp4
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
Low Risk
Small, isolated change to Unified Buy navigation and Redux state with test coverage; main risk is incorrect routing if the persisted flag is set/cleared unexpectedly.
Overview
Unified Buy V2 now persists whether the user has agreed to the Transak-native policy explainer via a new
fiatOrders.hasAgreedTransakNativePolicyflag, plussetHasAgreedTransakNativePolicyandselectHasAgreedTransakNativePolicy.VerifyIdentitydispatches the consent on Continue, andBuildQuoteuses the selector to route native-provider users without a token directly toEnterEmailinstead of repeatedly showingVerifyIdentity. Tests were updated/added to cover the new reducer state, selector behavior, and the updated navigation paths.Reviewed by Cursor Bugbot for commit 91e8cd1. Bugbot is set up for automated code reviews on this repo. Configure here.