feat: track Token Details secondary action buttons (ASSETS-3212) cp-7.80.0#30379
Conversation
Implements ASSETS-3212 - tracks Send, Receive, More (menu open), Remove Token, View on Explorer, and Copy Token Address actions on the Token Details Page. Event schema: - action: send | receive | more_opened | remove_token | view_on_explorer | copy_token_address - token_symbol, token_address, chain_id, has_balance, severity, source Co-authored-by: Prithpal Sooriya <prithpal.sooriya@gmail.com>
Tests all 6 action types (send, receive, more_opened, remove_token, view_on_explorer, copy_token_address) and source fallback behavior. Co-authored-by: Prithpal Sooriya <prithpal.sooriya@gmail.com>
|
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. |
Co-authored-by: Prithpal Sooriya <prithpal.sooriya@gmail.com>
Renamed from 'Token Details Action Tapped' to 'Token Details Action Clicked' per schema alignment. Co-authored-by: Prithpal Sooriya <prithpal.sooriya@gmail.com>
Covers TokenDetailsActions (send/receive/more), MoreTokenActionsMenu (view_on_explorer/remove_token), and TokenDetailsList (copy address) to satisfy SonarQube 80% new-code coverage gate. Co-authored-by: Prithpal Sooriya <prithpal.sooriya@gmail.com>
|
…r/assets-3212-token-details-action-tapped-cea8
juanmigdr
left a comment
There was a problem hiding this comment.
LGTM! 🚀 Just missing link to segment
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 98b8149. Configure here.
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
All changes are additive with optional props - no existing behavior is modified. The token details screen is part of the wallet platform (asset overview/token list). SmokeWalletPlatform covers transaction history and wallet features which include token detail views. No confirmations, swaps, navigation infrastructure, or core controllers are affected. No dedicated E2E tests exist for the Token Details screen specifically. Performance Test Selection: |




Description
Adds
Token Details Action Clickedanalytics event instrumentation for the Token Details Page (TDP) secondary action buttons, enabling product to track how users interact with actions beyond the primary CTA.Segment Schema: https://github.com/Consensys/segment-schema/pull/577
What changed:
Token Details Action Clickedregistered inMetaMetrics.events.tsTokenDetailsActionwith values:send,receive,more_opened,remove_token,view_on_explorer,copy_token_addressuseTokenDetailsActionTracking— accepts token params, balance, and severity; returns a stable callback that fires the eventTokenDetailsActions— fires on Send, Receive, and More (menu open) button pressesMoreTokenActionsMenu— fires on Remove Token and View on Block ExplorerTokenDetailsList→ Copy Token Address buttonEvent properties:
actionsend,receive,more_opened,remove_token,view_on_explorer,copy_token_addresstoken_symboltoken_addresschain_idhas_balanceseveritysourceToken Details Openedsource enumChangelog
CHANGELOG entry: null
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/ASSETS-3212
Manual testing steps
Screenshots/Recordings
https://www.loom.com/share/73dce87dc6bc47b48a0d40588213c4e1
Pre-merge author checklist