Skip to content

fix(wallet): resolve analytics and UX regressions#27670

Merged
PatrykLucka merged 4 commits into
mainfrom
fix/tmcu-auto-fix-manual
Mar 20, 2026
Merged

fix(wallet): resolve analytics and UX regressions#27670
PatrykLucka merged 4 commits into
mainfrom
fix/tmcu-auto-fix-manual

Conversation

@PatrykLucka

@PatrykLucka PatrykLucka commented Mar 19, 2026

Copy link
Copy Markdown
Contributor

Description

This PR resolves three tickets in wallet/cash/multichain flows:

  • TMCU-565: fixed Token Details Opened source for aggregated mUSD row to home_section.
  • TMCU-556: added missing cta_click_target: 'cta_button' to mUSD Conversion CTA Clicked.
  • TMCU-429: standardized multichain address-copy toast text to Address copied to clipboard.

Changelog

CHANGELOG entry: Fixed several wallet regressions affecting mUSD analytics tracking and address copy messaging consistency

Related issues

Refs: TMCU-565
Refs: TMCU-556
Refs: TMCU-429

Manual testing steps

Feature: Wallet segment regressions

  Scenario: mUSD aggregated row tracks correct source
    Given user is on Wallet Home with Cash section visible
    When user taps the mUSD aggregated row
    Then token details opens
    And source is tracked as home_section

  Scenario: Get mUSD CTA includes click target
    Given user sees Get mUSD CTA in Cash section
    When user taps Get mUSD
    Then MUSD_CONVERSION_CTA_CLICKED is tracked
    And payload includes cta_click_target with value cta_button

  Scenario: Multichain address copy shows consistent toast
    Given user opens Multichain Address List
    When user copies an address
    Then toast shows Address copied to clipboard

Screenshots/Recordings

Before

Screenshot 2026-03-20 at 10 45 36

After

Screenshot 2026-03-20 at 10 44 20

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

Low Risk
Low risk: changes are limited to analytics payload/source attribution and a toast string, with small navigation param updates covered by tests.

Overview
Fixes wallet analytics regressions by introducing TokenDetailsSource.HomeSection and using it when navigating to Token Details from the homepage Cash mUSD aggregated row; Token Details open tracking now treats this source like token-list entry points for A/B attribution.

Adds missing cta_click_target: 'cta_button' to the MUSD_CONVERSION_CTA_CLICKED event from the Cash “Get mUSD” CTA (and updates tests accordingly). Standardizes the multichain address-copy toast message to notifications.address_copied_to_clipboard.

Written by Cursor Bugbot for commit 12a5ade. This will update automatically on new commits. Configure here.

@PatrykLucka PatrykLucka added the team-mobile-ux Mobile UX team label Mar 19, 2026
@PatrykLucka PatrykLucka self-assigned this Mar 19, 2026
@github-actions github-actions Bot added size-S risk-low Low testing needed · Low bug introduction risk labels Mar 19, 2026
@PatrykLucka PatrykLucka changed the title fix(wallet): resolve auto-fix analytics and UX regressions fix(wallet): resolve analytics and UX regressions Mar 19, 2026
@PatrykLucka PatrykLucka marked this pull request as ready for review March 19, 2026 07:57
@PatrykLucka PatrykLucka requested review from a team as code owners March 19, 2026 07:57
Comment thread app/components/UI/TokenDetails/Views/TokenDetails.tsx
Comment thread app/components/Views/MultichainAccounts/AddressList/AddressList.tsx
Comment thread app/components/UI/TokenDetails/Views/TokenDetails.tsx
cursoragent and others added 3 commits March 19, 2026 21:24
Co-authored-by: Patryk Łucka <PatrykLucka@users.noreply.github.com>
Co-authored-by: Patryk Łucka <PatrykLucka@users.noreply.github.com>
Co-authored-by: Patryk Łucka <PatrykLucka@users.noreply.github.com>
@PatrykLucka PatrykLucka force-pushed the fix/tmcu-auto-fix-manual branch from a20d356 to 79c60fc Compare March 19, 2026 20:25
@github-actions github-actions Bot added risk-low Low testing needed · Low bug introduction risk and removed risk-low Low testing needed · Low bug introduction risk labels Mar 19, 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 2 potential issues.

There are 3 total unresolved issues (including 1 from previous review).

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.

Comment thread app/components/Views/Homepage/Sections/Cash/MusdAggregatedRow.test.tsx Outdated
@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.

@github-actions github-actions Bot added risk-low Low testing needed · Low bug introduction risk and removed risk-low Low testing needed · Low bug introduction risk labels Mar 20, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔍 Smart E2E Test Selection

  • Selected E2E tags: SmokeAccounts, SmokeWalletPlatform
  • Selected Performance tags: None (no tests recommended)
  • Risk Level: low
  • AI Confidence: 85%
click to see 🤖 AI reasoning details

E2E Test Selection:
The changes in this PR are minor and low-risk:

  1. TokenDetails/constants/constants.ts + TokenDetails.tsx: Added a new HomeSection = 'home_section' enum value to TokenDetailsSource and updated analytics tracking to include it as a valid "from token list" source. This is a pure analytics/tracking change with no functional impact.

  2. Homepage/Sections/Cash/MusdAggregatedRow.tsx: Changed the source parameter from MobileTokenListPage to HomeSection when navigating to the Asset/TokenDetails screen from the mUSD row in the Cash section on the Homepage. This is a tracking/analytics fix to correctly identify the navigation source.

  3. Homepage/Sections/Cash/CashGetMusdEmptyState.tsx: Added cta_click_target: 'cta_button' to analytics event properties. Pure analytics enhancement.

  4. MultichainAccounts/AddressList/AddressList.tsx: Fixed a toast message string key from multichain_accounts.address_list.copied (which doesn't exist in the codebase) to notifications.address_copied_to_clipboard (which does exist). This is a bug fix for a missing i18n string that would have caused a broken/missing toast message when copying an address in the multichain accounts address list.

  5. Test files: Unit test updates matching the above changes.

Tag selection rationale:

  • SmokeAccounts: The AddressList fix affects the multichain accounts address list copy functionality, which is part of account management. The AddressList is used in MultichainAccountActions and AccountGroupDetails components.
  • SmokeWalletPlatform: The Cash section mUSD changes are on the Homepage, and the TokenDetails source tracking affects wallet platform features. The Cash/mUSD section is part of the homepage wallet experience.

No other tags are needed as there are no changes to confirmations, network management, trading flows, or other feature areas. The changes are isolated to analytics tracking and a minor string key fix.

Performance Test Selection:
No performance impact expected. Changes are limited to analytics event properties, an enum value addition, and a string key fix for a toast message. None of these affect rendering performance, data loading, or critical user flow timing.

View GitHub Actions results

@github-actions

Copy link
Copy Markdown
Contributor

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

@sonarqubecloud

Copy link
Copy Markdown

@PatrykLucka PatrykLucka enabled auto-merge March 20, 2026 09:41
@PatrykLucka PatrykLucka added this pull request to the merge queue Mar 20, 2026
Merged via the queue into main with commit 1ba34e2 Mar 20, 2026
99 checks passed
@PatrykLucka PatrykLucka deleted the fix/tmcu-auto-fix-manual branch March 20, 2026 10:09
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 20, 2026
@metamaskbot metamaskbot added the release-7.72.0 Issue or pull request that will be included in release 7.72.0 label Mar 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-7.72.0 Issue or pull request that will be included in release 7.72.0 risk-low Low testing needed · Low bug introduction risk size-S team-mobile-ux Mobile UX team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants