chore: remove explore feature flag#26275
Conversation
This feature was shipped a month ago, this is a cleanup since we will not be reverting this feature now.
|
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. |
There was a problem hiding this comment.
I'm really not a fan of this test file. We are testing and asserting against mocks 🤦🏾
I timeboxed some time to see if we can refactor this, but testing the @react-navigation navigation stack is not trivial.
I think this can be something we pencil down once we migrate/upgrade our navigation libraries.
|
@cursor READ AND FOLLOW THESE MEMORY FILES: Can you please resolve merge conflicts, thanks |
|
I've successfully resolved the merge conflicts and pushed the changes. Summary of changes:
All MainNavigator tests pass (8/8). The pre-existing TypeScript errors in the codebase (related to migrations and termsOfUse files) are unrelated to this PR's changes. Reflection Statement: No memory update required - this was a routine merge conflict resolution applying the PR's feature flag removal intent while preserving new features from main branch. |
- Kept MarketInsightsView feature (new from main) - Removed selectAssetsTrendingTokensEnabled feature flag (as per PR intent) - Made explore/trending screens unconditional Co-authored-by: Prithpal Sooriya <prithpal.sooriya@gmail.com>
- Remove unused queryByTestId in 'shows Trending tab' test - Rename 'should show Rewards tab' to follow naming convention Co-authored-by: Prithpal Sooriya <prithpal.sooriya@gmail.com>
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
Why these tags:
The test infrastructure already uses Performance Test Selection: |
| describe('MainNavigator', () => { | ||
| beforeEach(() => { | ||
| jest.clearAllMocks(); | ||
| selectAssetsTrendingTokensEnabled.mockReturnValue(false); |
There was a problem hiding this comment.
New assertion uses weak toBeDefined() matcher
Low Severity
The newly added assertion expect(getByTestId('tab-bar-item-Trending')).toBeDefined() uses the weak toBeDefined() matcher instead of toBeOnTheScreen(). This is inconsistent with the same file's test at line 154 which correctly uses toBeOnTheScreen() for the identical tab-bar-item-Trending element. Per the unit testing guidelines, toBeOnTheScreen() is the mandatory matcher for asserting element presence — toBeDefined() doesn't actually verify the element rendered properly.
Triggered by project rule: Unit Testing Guidelines
|







Description
This feature was shipped a month ago, this is a cleanup since we will not be reverting this feature now.
Changelog
CHANGELOG entry: chore: remove explore feature flag
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/ASSETS-2736
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Medium Risk
Changes core navigation/tab registration and back/close routing behavior, which can impact user flows if any routes assumed the old flag-gated Browser tab behavior.
Overview
Removes the
assetsTrendingTokens/Explore feature flag and makes Trending/Explore navigation unconditional.TabBarnow always navigates toRoutes.TRENDING_VIEW, andMainNavigatoralways registers the Explore tab plus a hiddenRoutes.BROWSER.HOMEtab and always registers Explore-related stack screens (EXPLORE_SEARCH,SITES_FULL_VIEW,BROWSER.HOME).BrowserTabclose behavior is simplified to always route back to Trending when not opened from Trending/Perps, and unit tests/snapshots are updated while the now-deadassetsTrendingTokensselector + tests are deleted.Written by Cursor Bugbot for commit 5499952. This will update automatically on new commits. Configure here.