fix: hide chain avatar beside Popular Networks (#29948)#30263
Conversation
…filters The filter label uses global enabled network count while the avatar used only popular-EVM "all selected", so one deselected popular chain or added custom network could show an Ethereum icon next to Popular Networks. Fixes #29948
ff44e7a to
e0a3038
Compare
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
Both changes are purely UI display fixes for the network filter avatar in the control bar. No controller changes, no navigation changes, no security implications. SmokeWalletPlatform is selected because:
No other tags are needed since:
Performance Test Selection: |
|



Description
When multiple networks are enabled, the token list and Activity tabs show the Popular Networks label using
totalEnabledNetworksCount > 1. The network avatar was still gated on!areAllNetworksSelectedfor popular EVM rows only. After adding a custom network (e.g. Tempo) or leaving one popular chain off, that mismatch showed an Ethereum (or first-enabled) icon next to Popular Networks, which is incorrect per product expectation (issue #29948).Change: show the filter avatar only when we are not in the Popular Networks label state and not all popular EVM networks are selected—aligned in
BaseControlBar(Tokens / DeFi control bar) andActivityView(Activity tab).Changelog
CHANGELOG entry: Fixed Popular Networks filter incorrectly showing a chain icon after enabling additional networks (e.g. Tempo).
Related issues
Fixes: #29948
Manual testing steps
Screenshots/Recordings
Before
icon_before.mp4
After
icon_after.mp4
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
Note
Low Risk
Low risk UI-only conditional rendering change that affects when the network filter avatar is shown; main risk is minor visual regression across network-selection edge cases.
Overview
Prevents the network filter from showing a chain
Avatarwhen the label iswallet.popular_networks(i.e., whentotalEnabledNetworksCount > 1) in bothBaseControlBarandActivityView.Updates unit tests to assert no avatar beside “Popular networks” in multi-network scenarios, while still rendering an avatar for single-network filters when not all popular networks are selected.
Reviewed by Cursor Bugbot for commit e0a3038. Bugbot is set up for automated code reviews on this repo. Configure here.