fix(activity): show account name and avatar for owned accounts in activity list#33390
fix(activity): show account name and avatar for owned accounts in activity list#33390vinnyhoward wants to merge 1 commit into
Conversation
…ivity list The redesigned activity list row subtitle rendered the send/receive counterparty as a short hex address only. Sends between the user's own accounts now resolve the counterparty against the account tree and render "To: <avatar> <account name>" (and "From: ..." on receives), matching the name resolution the transaction details screen already does. - useActivityListItemRowContent resolves the counterparty via useAccountNames and returns a structured subtitleAccount - useSubtitleAccountParts builds the AvatarAccount subtitle node shared by the resolved and pending row variants (queued prefix preserved) - Unowned addresses keep the existing short-address subtitle
|
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. |
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. |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
SmokeWalletPlatform is selected because it explicitly covers "transaction history: displaying incoming/outgoing ETH transactions, token transfer details" - which is exactly what these changes affect. The activity list is a core wallet platform feature. SmokeConfirmations is selected because it tests transaction sending for native tokens (ETH) and ERC-20 tokens, and the activity list is where confirmed transactions appear. The send/receive flow is directly impacted by the subtitle changes. The changes are UI-only (no controller logic, no network changes, no security changes), so the risk is medium. The feature is additive (showing account names instead of hex addresses for own-account transfers), but it touches the core activity list rendering path used across the app. Performance Test Selection: |
|



Description
When sending to (or receiving from) another account the user owns, the redesigned Activity list row subtitle showed a raw short hex address (
To: 0xAa609...40973). Since the user owns that account and it has a name everywhere else in the app, this could scare them into thinking they sent to the wrong address.This PR resolves the send/receive counterparty against the user's own accounts (the same account-group name resolution the redesigned transaction details screen already uses via
useAccountNames) and renders the subtitle asTo: <account avatar> <account name>— e.g.To: 🟦 ETH DeFi— matching the names and avatars shown in the Accounts list. Receive rows get the same treatment forFrom:. Addresses the user doesn't own keep the existing short-address subtitle.Implementation notes:
useActivityListItemRowContentresolves the counterparty viauseAccountNamesand returns a structuredsubtitleAccount(prefix, address, name) alongside the plain-textsubtitlefallbackuseSubtitleAccountPartshook builds theAvatarAccount(16px, honors the user's avatar style setting) subtitle node, shared by the resolved and pending row variants; queued rows keep theirQueued •prefixActivityListItemRowLayoutrenders the structured subtitle row; all other rows are untouchedChangelog
CHANGELOG entry: Fixed the Activity list showing a hex address instead of the account name when transferring between your own accounts
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/TMCU-1065
Manual testing steps
Screenshots/Recordings
Before
To: 0xAa609...40973(hex address shown for an owned account)After
To: <avatar> ETH DeFi(account name + avatar, matching the Accounts list)Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist