No reviewers
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sneak/AutistMask#30
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/address-title-consistency"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fixes #26, #27, #28: Three views were showing raw addresses instead of wallet/address titles for local wallet addresses.
Changes
src/popup/views/send.js(#26)addressTitlefrom helpersupdateSendBalance()now shows wallet title above ENS name and addresssrc/popup/views/txStatus.js(#27)addressTitlefrom helperstoAddressHtml()shows wallet title when the To address belongs to a local walletsrc/popup/views/home.js(#28)addressTitlefrom helpersTesting
make checkpasses (14 tests + prettier).fix: show wallet/address titles in send, txStatus, and home tx list (closes #26, closes #27, closes #28)to fix: show wallet/address titles across all views (closes #26, closes #27, closes #28, closes #29)Added
2abb720for #29: addressDetail and addressToken tx lists now also show wallet titles for counterparties. All five views (send, txStatus, home, addressDetail, addressToken) now useaddressTitle()consistently.make checkpasses.Code Review
LGTM — consistent
addressTitle()usage across all 5 views:Display priority is consistent everywhere:
title || ensName || truncateMiddle(address). Dot always next to address (not title). Formatting clean.Assigning to sneak.
Code Review
LGTM — consistent fix across all 5 views.
Pattern:
addressTitle(address, state.wallets)checked first, then ENS name, then truncated hex. Matches the established convention fromtransactionDetail.js,confirmTx.js, andapproval.js.addressDetail.js✅ counterparties in tx listaddressToken.js✅ counterparties in tx listhome.js✅ counterparties in tx listsend.js✅ From address (title > ENS > bare address)txStatus.js✅ To addressFormatting clean. Assigning to sneak.