Repository navigation
fix(assets): place the token ticker under the token name - #47552
Conversation
ASSETS-4256: the token details header now uses the token name as the title and shows the ticker with a compact contract address on the line beneath it, matching the mobile token details layout. Co-authored-by: Cursor <cursoragent@cursor.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. |
Builds ready [7c2c613]
⚡ Performance Benchmarks (Total: 🟢 5 pass · 🟡 5 warn · 🔴 3 fail)
Bundle Size Diffs
|
Capture the running token details header for ERC-20, Solana, Tron, and native assets so the ASSETS-4256 layout can be reviewed on the pull request. Co-authored-by: Cursor <cursoragent@cursor.com>
The details header was falling back to the ticker when asset metadata was ignored, so a distinct name never appeared above the symbol. Co-authored-by: Cursor <cursoragent@cursor.com>
Screenshots are hosted in the pull request description instead of the repository. Co-authored-by: Cursor <cursoragent@cursor.com>
The avatar wrapper aligned to the top of the name and ticker. Center it on that text block. Co-authored-by: Cursor <cursoragent@cursor.com>
Builds ready [0629cd1]
⚡ Performance Benchmarks (Total: 🟢 6 pass · 🟡 4 warn · 🔴 3 fail)
Bundle Size Diffs
|
|
|
No release label on PR. Adding release label release-13.57.0 on PR, as PR was added to branch 13.57.0 when release was cut. |



Description
The token details header used the ticker as its title. ASSETS-4256 settles the layout as the token name on the title line, with the ticker directly beneath it. This mirrors the mobile change in MetaMask/metamask-mobile#38497.
What changed:
Pepe/PEPEshows both.0x..plus the last four characters. Other addresses render as the first and last four characters. The copy control is unchanged.ETH), the ticker line is omitted so the symbol is not repeated.Only presentation changes. Data, copy behavior, and badges are unchanged.
Changelog
CHANGELOG entry: Showed the token ticker under the token name on the token details page
Related issues
Fixes:
Refs: https://consensyssoftware.atlassian.net/browse/ASSETS-4256
Manual testing steps
Screenshots/Recordings
Captured from a running test build, opened through asset deeplinks.
Before
The previous header used the ticker as the title and a longer address truncation.
After
The title is the token name. The ticker sits on the line beneath it, in the title color, next to the compact address. When the metadata name is the ticker itself, that second ticker is omitted.
Token details header screenshots (ERC-20, Solana, Tron, native)
Chainlink: title Chainlink Token, ticker LINK, address
0x..86CAUniswap: title Uniswap, ticker UNI, address
0x..F984Pepe: title Pepe, ticker PEPE, address
0x..1933USDC: title USDC, address
0x..eB48(name matches ticker, so no second ticker line)Solana Bonk: title Bonk, ticker BONK, address
DezX..B263Tron Tether: title Tether, ticker USDT, address
TR7N..Lj6tNative ETH: title Ethereum, ticker ETH, no address
Native SOL: title SOL, no address (name matches ticker)
Native TRX: title TRON, ticker TRX, no address
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Low Risk
Presentation-only changes on the asset details header; copy behavior and asset data paths are unchanged aside from display-name selection.
Overview
The token details header no longer uses the ticker as the main title. It now shows the token name (from metadata via new
resolveTokenDisplayName, with symbol fallback) and, when the symbol differs from that title (case-sensitive, trimmed), a subtitle row with the ticker plus the contract copy control on one line.Contract addresses switch from
shortenAddressto a compact format: EVM as0x..+ last four characters; Solana/Tron-style as first four +..+ last four. Long tickers ellipsize while the address stays fully visible; duplicate name/ticker (e.g. ETH) drops the extra ticker line. The avatar badge is vertically centered against the name block.AssetPage,native-asset, andtoken-assetpassnamethrough; copy-on-click still uses the full address. Tests cover header layout, address formatting, and name resolution.Reviewed by Cursor Bugbot for commit 0629cd1. Bugbot is set up for automated code reviews on this repo. Configure here.