Skip to content

fix(ramp): keep amount input visible when opening provider picker (TRAM-3750)#33132

Draft
amitabh94 wants to merge 4 commits into
mainfrom
cursor/tram-3750-provider-amount-input-2d6a
Draft

fix(ramp): keep amount input visible when opening provider picker (TRAM-3750)#33132
amitabh94 wants to merge 4 commits into
mainfrom
cursor/tram-3750-provider-amount-input-2d6a

Conversation

@amitabh94

@amitabh94 amitabh94 commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Description

On UB2 BuildQuote, tapping Change provider from the payment selection sheet stacked a second modal on top of the first. That nested modal stack hid the amount input on the underlying BuildQuote screen (reported in production 8.3.0 / build #6000).

This change closes the payment bottom sheet before opening provider selection, matching the pattern already used by TokenNotAvailableModal. Only one ramp modal is active at a time, so the amount input remains visible in the background.

After the user selects a provider, they return to the payment selection sheet (not BuildQuote) so they can pick/confirm payment for the new provider. Dismissing the provider sheet (outside tap, swipe, or back) returns to BuildQuote — fixing production's incorrect dismiss → payment behavior.

Related issues

Fixes TRAM-3750

Manual testing

Feature: UB2 amount input stays visible when changing provider

  Scenario: User changes provider from the payment sheet
    Given the user is on the UB2 amount input screen with an amount entered
    And the user opens the payment method sheet
    When the user taps "Change provider"
    Then the provider list opens
    And the amount input remains visible behind the provider sheet
    When the user selects a different provider
    Then the payment selection sheet reopens for the new provider
    And the amount value is unchanged on BuildQuote behind the sheet
    When the user dismisses the provider sheet without selecting
    Then they return to BuildQuote (not payment sheet)

  Scenario: User dismisses provider sheet without selecting
    Given the user opened provider selection from the payment sheet
    When the user taps outside the provider sheet
    Then they return to BuildQuote
    And the amount input is visible

Validation

  • yarn jest app/components/UI/Ramp/Views/Modals/PaymentSelectionModal/PaymentSelectionModal.test.tsx --runInBand --silent --coverage=false
  • yarn jest app/components/UI/Ramp/Views/Modals/ProviderSelectionModal/ProviderSelectionModal.test.tsx --runInBand --silent --coverage=false
  • TEST_OS=ios yarn jest -c jest.config.view.js app/components/UI/Ramp/Views/BuildQuote/BuildQuote.view.test.tsx --runInBand --coverage=false
Open in Web Open in Cursor 

Close the payment selection bottom sheet before navigating to provider
selection instead of stacking both modals. Nested modal screens caused the
BuildQuote amount input to disappear behind the overlays (TRAM-3750).

Update payment modal and unified-buy component view tests to cover the
close-then-navigate flow and provider switch returning to BuildQuote.

Co-authored-by: Amitabh Aggarwal <amitabh94@users.noreply.github.com>
@github-actions github-actions Bot added the pr-not-ready-for-e2e Skip E2E and block merging. Remove this label once the PR is ready to run the E2E tests. label Jul 10, 2026
@mm-token-exchange-service mm-token-exchange-service Bot added team-money-movement issues related to Money Movement features INVALID-PR-TEMPLATE PR's body doesn't match template labels Jul 10, 2026
@mm-token-exchange-service

Copy link
Copy Markdown
Contributor

PR template — items to address before "Ready for review"

Warnings — informational, address before merging:

See docs/readme/ready-for-review.md for the full Definition of Ready for Review.

cursoragent and others added 3 commits July 10, 2026 16:32
Return provider-aware quote mocks from setupV2Hooks so MoonPay selection
on BuildQuote surfaces Powered by text instead of a no-quotes error.
Wait for the provider modal to dismiss before asserting BuildQuote state.

Co-authored-by: Amitabh Aggarwal <amitabh94@users.noreply.github.com>
Co-authored-by: Amitabh Aggarwal <amitabh94@users.noreply.github.com>
Pass returnToPaymentSelection when opening provider picker from the
payment sheet. On provider select, close the provider sheet and navigate
back to payment selection so the user can confirm payment for the new
provider. Dismiss (outside tap / swipe) still returns to BuildQuote.

Fixes TRAM-3750 while restoring the intended post-select UX without
re-stacking modal screens.

Co-authored-by: Amitabh Aggarwal <amitabh94@users.noreply.github.com>
@github-actions github-actions Bot added size-M and removed size-S labels Jul 10, 2026
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

INVALID-PR-TEMPLATE PR's body doesn't match template pr-not-ready-for-e2e Skip E2E and block merging. Remove this label once the PR is ready to run the E2E tests. size-M team-money-movement issues related to Money Movement features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants