Skip to content

refactor: Reverted selected state for explore tab icon cp-7.69.1 cp-7.70.0#27459

Merged
brianacnguyen merged 1 commit intomainfrom
fix/explore-selected
Mar 16, 2026
Merged

refactor: Reverted selected state for explore tab icon cp-7.69.1 cp-7.70.0#27459
brianacnguyen merged 1 commit intomainfrom
fix/explore-selected

Conversation

@brianacnguyen
Copy link
Contributor

@brianacnguyen brianacnguyen commented Mar 12, 2026

Description

Updates the Explore (Trending) tab icon in the main tab bar from the filled variant to the outline variant.

Changelog

CHANGELOG entry: Updated Explore tab icon in the main tab bar to use the outline style.

Related issues

Fixes: https://consensyssoftware.atlassian.net/browse/DSYS-578

Manual testing steps

Feature: Explore tab icon in tab bar

  Scenario: Explore tab shows outline search icon
    Given the app is open and the user is on any main tab

    When the user views the tab bar
    Then the Explore (Trending) tab shows the outline search icon (not the filled variant)
    And the icon is visible and correctly aligned with other tab icons

Screenshots/Recordings

Before

After

Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2026-03-12.at.16.21.02.mov

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

Note

Low Risk
Low risk visual-only change that swaps the selected-state icon for the Explore/Trending tab; no navigation, analytics, or data flows are affected.

Overview
Updates the TabBar selected-state icon mapping for the Explore/Trending tab to use the outline IconName.Search instead of the filled IconName.SearchFilled, reverting its “active” appearance to match the outline style.

Written by Cursor Bugbot for commit 829d018. This will update automatically on new commits. Configure here.

@brianacnguyen brianacnguyen self-assigned this Mar 12, 2026
@brianacnguyen brianacnguyen added the No QA Needed Apply this label when your PR does not need any QA effort. label Mar 12, 2026
@brianacnguyen brianacnguyen requested a review from a team as a code owner March 12, 2026 23:23
@brianacnguyen brianacnguyen added team-design-system All issues relating to design system in Mobile no changelog required No changelog entry is required for this change labels Mar 12, 2026
@github-actions
Copy link
Contributor

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.

@github-actions
Copy link
Contributor

🔍 Smart E2E Test Selection

  • Selected E2E tags: SmokeWalletPlatform
  • Selected Performance tags: None (no tests recommended)
  • Risk Level: low
  • AI Confidence: 70%
click to see 🤖 AI reasoning details

E2E Test Selection:
The only change is a visual update in TabBar.tsx: replacing the Trending tab filled icon from SearchFilled to Search. There are no logic, navigation, state management, or controller changes—only an icon mapping update.

However, TabBar is a global navigation component used across the app (Wallet, Activity, Trending, Rewards). The most directly impacted area is the Trending tab, which is covered under SmokeWalletPlatform (including Trending discovery tab and its integration with navigation). Running this suite ensures that tab navigation—especially to Trending—still works correctly and that no unintended UI regressions affect core wallet platform flows.

No controller, Engine, network, account, trade, or confirmation logic was modified, so broader domain-specific tags (e.g., SmokeAccounts, SmokeConfirmations, SmokeTrade, SmokeNetworkExpansion) are not required for adequate risk coverage.

Given this is a UI-only icon change with no behavioral modification, risk is low and a focused platform-level smoke suite is sufficient.

Performance Test Selection:
The change only updates an icon reference in the TabBar component and does not affect rendering complexity, list performance, startup flow, or data loading. There is no impact on performance-sensitive paths such as account lists, onboarding, swaps, predictions, perps, or app launch. Therefore, no performance tests are required.

View GitHub Actions results

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

[TabBarIconKey.Wallet]: IconName.HomeFilled,
[TabBarIconKey.Activity]: IconName.ClockFilled,
[TabBarIconKey.Trending]: IconName.SearchFilled,
[TabBarIconKey.Trending]: IconName.Search,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redundant FILLED_ICONS entry duplicates base icon value

Low Severity

The FILLED_ICONS entry for TabBarIconKey.Trending now maps to IconName.Search, which is identical to the base icon in ICON_BY_TAB_BAR_ICON_KEY. The fallback ?? baseIcon on line 62 already handles this case, making this entry functionally redundant. Keeping it in a map named FILLED_ICONS is also semantically misleading since it no longer points to a filled variant — a future developer may wonder why an outline icon appears in the "filled" map.

Fix in Cursor Fix in Web

@github-actions
Copy link
Contributor

E2E Fixture Validation — Schema is up to date
16 value mismatches detected (expected — fixture represents an existing user).
View details

@sonarqubecloud
Copy link

@chloeYue chloeYue changed the title refactor: Reverted selected state for explore tab icon refactor: Reverted selected state for explore tab icon cp-7.69.1 Mar 16, 2026
@chloeYue chloeYue changed the title refactor: Reverted selected state for explore tab icon cp-7.69.1 refactor: Reverted selected state for explore tab icon cp-7.69.1 cp-7.70.0 Mar 16, 2026
@brianacnguyen brianacnguyen enabled auto-merge March 16, 2026 14:38
@brianacnguyen brianacnguyen added this pull request to the merge queue Mar 16, 2026
Merged via the queue into main with commit 2d1ed07 Mar 16, 2026
236 of 238 checks passed
@brianacnguyen brianacnguyen deleted the fix/explore-selected branch March 16, 2026 15:04
@github-actions github-actions bot locked and limited conversation to collaborators Mar 16, 2026
@metamaskbot metamaskbot added the release-7.71.0 Issue or pull request that will be included in release 7.71.0 label Mar 16, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

no changelog required No changelog entry is required for this change No QA Needed Apply this label when your PR does not need any QA effort. release-7.71.0 Issue or pull request that will be included in release 7.71.0 size-XS team-design-system All issues relating to design system in Mobile

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants