feat: allow users to see payment method if they type 0#26717
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. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Resolved conflict in ProviderSelectionModal.tsx: kept the amount > 0 showQuotes guard from this branch while adding showBackButton and ordersProviders props from main.
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
These changes improve UX by allowing users to explore payment methods and providers before entering an amount, while optimizing API calls by not fetching quotes until an amount is provided. The SmokeRamps tag covers the on-ramp and off-ramp flows including payment method selection, which is exactly what these changes affect. Performance Test Selection: |
The committed fixture schema is out of date. To update, comment: |
Description
Changes
handlePaymentPillPressthat blocked modal navigation when amount was 0amount > 0check toquoteFetchParamsso quotes aren't fetched for $0amount > 0check toquoteFetchParamsandshowQuotespropChangelog
CHANGELOG entry: Allow users to select a payment method if their amount is 0
Related issues
https://consensyssoftware.atlassian.net/browse/TRAM-3190
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Medium Risk
Changes the on-ramp flow to allow opening selection modals with a $0 amount and alters quote-fetching conditions, which could surface edge cases if downstream screens assume a positive amount.
Overview
Users can now open the payment method selection modal even when the entered amount is
0(removed the zero-amount navigation guard inBuildQuoteand updated the related test expectation).Both
PaymentSelectionModalandProviderSelectionModalnow skip quote fetching and hide quote UI whenamount <= 0, including conditionally omitting the quote column inPaymentMethodListItemand disabling provider quote display viashowQuotes.Written by Cursor Bugbot for commit 28f9250. This will update automatically on new commits. Configure here.