Skip to content

fix: money account selection on perps page#32007

Merged
jpuri merged 1 commit into
mainfrom
perps_sel_fix
Jun 18, 2026
Merged

fix: money account selection on perps page#32007
jpuri merged 1 commit into
mainfrom
perps_sel_fix

Conversation

@jpuri

@jpuri jpuri commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Description

Fix money account selection on perps page

Changelog

CHANGELOG entry:

Related issues

Fixes: https://consensyssoftware.atlassian.net/browse/CONF-1577

Manual testing steps

NA

Screenshots/Recordings

NA

Pre-merge author checklist

Performance checks (if applicable)

  • I've tested on Android
    • Ideally on a mid-range device; emulator is acceptable
  • I've tested with a power user scenario
    • Use these power-user SRPs to import wallets with many accounts and tokens
  • I've instrumented key operations with Sentry traces for production performance metrics

For performance guidelines and tooling, see the Performance Guide.

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

Note

Low Risk
Small UI branching change in confirmation pay-with row with expanded unit tests; no auth or payment execution changes.

Overview
Pay with row routing now treats controller PaymentOverride.MoneyAccount and flag-based money account default separately.

An explicit money account override always renders the money account row, including on the review step when isResultReady is true (e.g. perps deposit). The feature-flag default still shows the money account row only before results are ready; on review it falls back to the interactive token row unless the user explicitly chose money account.

Tests were updated to match and a case was added for flag-only default on review vs explicit override.

Reviewed by Cursor Bugbot for commit 957fd9e. Bugbot is set up for automated code reviews on this repo. Configure here.

@jpuri jpuri requested a review from a team as a code owner June 18, 2026 14:16
@jpuri jpuri added team-confirmations Push issues to confirmations team no-changelog no-changelog Indicates no external facing user changes, therefore no changelog documentation needed labels Jun 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

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.

@jpuri jpuri enabled auto-merge June 18, 2026 14:16
@github-actions github-actions Bot added pr-not-ready-for-e2e Skip E2E and block merging. Remove this label once the PR is ready to run the E2E tests. size-S labels Jun 18, 2026
@jpuri jpuri removed 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 Jun 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔍 Smart E2E Test Selection

  • Selected E2E tags: SmokeConfirmations, SmokeMoney, SmokePerps, SmokePredictions, SmokeWalletPlatform
  • Selected Performance tags: None (no tests recommended)
  • Risk Level: medium
  • AI Confidence: 88%
click to see 🤖 AI reasoning details

E2E Test Selection:
The PR changes the PayWithRow component logic in the confirmations area. The fix separates two behaviors:

  1. Explicit PaymentOverride.MoneyAccount (always show Money Account row, regardless of isResultReady)
  2. Flag-based default (only show Money Account row when results are NOT ready yet)

Previously, both cases were combined in one condition, causing the explicit override to incorrectly defer to the interactive row when isResultReady was true.

This change directly affects:

  • SmokeConfirmations: The PayWithRow is a confirmation UI component used in transaction confirmation screens
  • SmokeMoney: Money Account/Card deposit flows use this component for the "Pay With" selection
  • SmokePerps: Perps deposit flows use custom-amount-info which includes PayWithRow; per tag description, SmokePerps also requires SmokeWalletPlatform and SmokeConfirmations
  • SmokePredictions: Predictions deposit/withdrawal flows use custom-amount-info which includes PayWithRow; per tag description, SmokePredictions also requires SmokeWalletPlatform and SmokeConfirmations
  • SmokeWalletPlatform: Required as a dependent tag for both SmokePerps and SmokePredictions (Trending section)

The change is a targeted logic fix with clear scope — it only affects the PayWithRow rendering decision, not the broader confirmation infrastructure.

Performance Test Selection:
The changes are limited to a UI logic fix in the PayWithRow component (a conditional rendering decision). This does not affect app launch, asset loading, account list rendering, onboarding, login, swaps, or any other performance-sensitive flow. No performance tests are warranted.

View GitHub Actions results

@matthewwalsh0 matthewwalsh0 requested a review from vinistevam June 18, 2026 14:22
@jpuri jpuri added the skip-sonar-cloud Only used for bypassing sonar cloud when failures are not relevant to the changes. label Jun 18, 2026
@jpuri

jpuri commented Jun 18, 2026

Copy link
Copy Markdown
Contributor Author

Skipping sonar as its not working currently

@jpuri jpuri added this pull request to the merge queue Jun 18, 2026
Merged via the queue into main with commit f7be515 Jun 18, 2026
226 of 254 checks passed
@jpuri jpuri deleted the perps_sel_fix branch June 18, 2026 15:40
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 18, 2026
@metamaskbotv2 metamaskbotv2 Bot added the release-7.83.0 Issue or pull request that will be included in release 7.83.0 label Jun 18, 2026
@tommasini tommasini added release-8.0.0 Issue or pull request that will be included in release 8.0.0 and removed release-7.83.0 Issue or pull request that will be included in release 7.83.0 labels Jun 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

no-changelog no-changelog Indicates no external facing user changes, therefore no changelog documentation needed release-8.0.0 Issue or pull request that will be included in release 8.0.0 size-S skip-sonar-cloud Only used for bypassing sonar cloud when failures are not relevant to the changes. team-confirmations Push issues to confirmations team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants