Skip to content

feat: adding money account withdraw confirmation page#28181

Merged
jpuri merged 68 commits into
mainfrom
money_acc_withdraw
Apr 6, 2026
Merged

feat: adding money account withdraw confirmation page#28181
jpuri merged 68 commits into
mainfrom
money_acc_withdraw

Conversation

@jpuri

@jpuri jpuri commented Mar 31, 2026

Copy link
Copy Markdown
Contributor

Description

Adding money account withdraw page.

Changelog

CHANGELOG entry:

Related issues

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

Manual testing steps

Feature: my feature name

  Scenario: user [verb for user action]
    Given [describe expected initial app state]

    When user [verb for user action]
    Then [describe expected outcome]

Screenshots/Recordings

Screen.Recording.2026-04-01.at.9.44.18.PM.mov

Pre-merge author checklist

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

Medium Risk
Adds a new moneyAccountWithdraw confirmation path and updates editable tx recipient (to) from the UI, which affects transaction construction and user confirmation behavior.

Overview
Adds first-class support for Money Account Withdraw confirmations across the redesigned confirmation flow (full-screen handling, alert-banner suppression, post-quote token behavior, and default footer hiding).

Introduces a new MoneyAccountWithdrawInfo screen and updates CustomAmountInfo to render a recipient AccountSelector for withdraws, updating the transaction’s editable to field and blocking confirmation until a recipient is chosen.

Refactors the recipient picker by renaming/replacing MoneyAccountSelector with a reusable AccountSelector (case-insensitive selected address matching), updates developer tooling to pass an explicit withdraw recipient, and adds the corresponding en.json title string plus tests.

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

@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.

@metamaskbot metamaskbot added the team-confirmations Push issues to confirmations team label Mar 31, 2026
Base automatically changed from money_acc_account_select to main April 2, 2026 13:30
@jpuri jpuri enabled auto-merge April 2, 2026 13:36
@github-actions github-actions Bot added size-L risk-medium Moderate testing recommended · Possible bug introduction risk and removed size-M labels Apr 2, 2026
@github-actions github-actions Bot added size-M risk-medium Moderate testing recommended · Possible bug introduction risk and removed size-L risk-medium Moderate testing recommended · Possible bug introduction risk labels Apr 2, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

@jpuri

jpuri commented Apr 6, 2026

Copy link
Copy Markdown
Contributor Author

@metamaskbot update-mobile-fixture

@github-actions github-actions Bot added risk-medium Moderate testing recommended · Possible bug introduction risk and removed risk-medium Moderate testing recommended · Possible bug introduction risk labels Apr 6, 2026
@github-actions

github-actions Bot commented Apr 6, 2026

Copy link
Copy Markdown
Contributor

🔍 Smart E2E Test Selection

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

E2E Test Selection:
The PR introduces a new moneyAccountWithdraw transaction type and flow in the confirmations system, along with a rename of MoneyAccountSelectorAccountSelector. Key changes:

  1. New MoneyAccountWithdrawInfo component: New withdrawal flow for Money Account (Card feature), routed via info-root.tsx.
  2. CustomAmountInfo refactored: Layout changes (box gap changed from 25→16, afterPayWith prop removed, AccountSelector embedded directly for moneyAccountWithdraw). This component is shared across perps deposit/withdraw, predict deposit, and money account deposit/withdraw flows.
  3. Constants updated: moneyAccountWithdraw added to REDESIGNED_TRANSACTION_TYPES, FULL_SCREEN_CONFIRMATIONS, POST_QUOTE_TRANSACTION_TYPES, HIDE_FOOTER_BY_DEFAULT_TYPES, TRANSACTION_TYPES_DISABLE_ALERT_BANNER.
  4. AccountSelector rename: MoneyAccountSelector renamed to AccountSelector with test ID changes.
  5. Locales: New "Withdraw funds" string added.

Tag selection rationale:

  • SmokeCard: Directly affected - new withdraw flow, deposit info simplified, AccountSelector renamed
  • SmokeConfirmations: Affected - footer, confirm-component, info-root, and CustomAmountInfo layout changes affect the confirmation UI system broadly
  • SmokePerps: Affected - CustomAmountInfo layout refactoring (box gap, structure changes) could affect perps deposit/withdraw rendering
  • SmokePredictions: Affected - CustomAmountInfo is used by predict-deposit-info; layout changes could affect rendering
  • SmokeTrade: Required by SmokeCard description ("also select SmokeTrade and SmokeConfirmations")
  • SmokeWalletPlatform: Required by SmokePerps and SmokePredictions descriptions ("also select SmokeWalletPlatform")

The changes are scoped to the confirmations/Card/Money Account area with no impact on accounts, identity, network, or ramps features.

Performance Test Selection:
The changes are focused on the confirmations UI for the Money Account withdraw flow - a new transaction type routing, component rename, and layout refactoring of CustomAmountInfo. These are not performance-sensitive changes (no list rendering, no data loading changes, no startup/initialization impact). The CustomAmountInfo layout changes are minor structural adjustments that don't affect rendering performance metrics.

View GitHub Actions results

@github-actions

github-actions Bot commented Apr 6, 2026

Copy link
Copy Markdown
Contributor

E2E Fixture Validation — Schema is up to date
17 value mismatches detected (expected — fixture represents an existing user).
View details

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 79.16667% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.96%. Comparing base (62ea975) to head (a39a6d7).
⚠️ Report is 8 commits behind head on main.

Files with missing lines Patch % Lines
...nts/info/custom-amount-info/custom-amount-info.tsx 61.53% 3 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #28181      +/-   ##
==========================================
+ Coverage   82.93%   82.96%   +0.02%     
==========================================
  Files        4881     4878       -3     
  Lines      126469   126413      -56     
  Branches    28369    28374       +5     
==========================================
- Hits       104889   104877      -12     
+ Misses      14363    14327      -36     
+ Partials     7217     7209       -8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sonarqubecloud

sonarqubecloud Bot commented Apr 6, 2026

Copy link
Copy Markdown

@jpuri jpuri added this pull request to the merge queue Apr 6, 2026
Merged via the queue into main with commit 0d42616 Apr 6, 2026
79 of 82 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 6, 2026
@metamaskbot metamaskbot added the release-7.74.0 Issue or pull request that will be included in release 7.74.0 label Apr 6, 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-7.74.0 Issue or pull request that will be included in release 7.74.0 risk-medium Moderate testing recommended · Possible bug introduction risk size-M team-confirmations Push issues to confirmations team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants