You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Predict Feed Viewed event tracks where users navigate from via an entry_point property. When users tapped into the Predict Feed from the homepage Predictions section (trending markets carousel, no active positions), no entry_point value was being passed. The property was absent from the event.
This PR adds a new home_section entry point value and wires it into the homepage navigation handler that leads to the Predict Feed.
Feature: Predict Feed Viewed entry_point from homepageScenario: user navigates to Predict Feed from homepage with no positionsGiven the user has no active Predict positions
And the user is on the Wallet homepage
When user taps the "Predictions" section header title
Then the Predict Feed opens
And a "Predict Feed Viewed" event is fired with entry_point: "home_section"
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
Small analytics/navigation parameter change scoped to the Predict homepage entry point with unit test coverage; minimal functional impact beyond event attribution.
Overview
Ensures the Predict Feed Viewed analytics entry_point is populated when users enter the Predict market list from the homepage Predictions section.
This introduces a new PredictEventValues.ENTRY_POINT.HOME_SECTION value, extends the PredictEntryPoint type to include it, and updates the homepage Predictions navigation handler to pass entryPoint: home_section when tapping the section title (with tests updated/added to assert the new navigation params).
Reviewed by Cursor Bugbot for commit c366553. Bugbot is set up for automated code reviews on this repo. Configure here.
Selected Performance tags: None (no tests recommended)
Risk Level: low
AI Confidence: 92%
click to see 🤖 AI reasoning details
E2E Test Selection:
The changes are focused and low-risk:
eventNames.ts: Adds a new HOME_SECTION constant ('home_section') to PredictEventValues.ENTRY_POINT — purely additive, no breaking changes.
navigation.ts: Extends the PredictEntryPoint type union to include the new HOME_SECTION value — additive type change.
PredictionsSection.tsx: Updates handleViewAllPredictions to pass entryPoint: PredictEventValues.ENTRY_POINT.HOME_SECTION as a navigation param when navigating from the homepage Predictions section to the market list. This is an analytics/tracking enhancement — the navigation itself still works the same way.
PredictionsSection.test.tsx: Unit tests updated to verify the new entry point param is passed correctly.
Tag selection rationale:
SmokePredictions: Directly covers the Predictions feature, including navigation to the market list from entry points. The change modifies how the homepage Predictions section navigates to the market list (adding an entry point param), which should be validated by Predictions E2E tests.
SmokeWalletPlatform: The PredictionsSection is embedded in the Trending tab (Homepage), which is explicitly covered by SmokeWalletPlatform. Per the SmokePredictions tag description, changes to Predictions views affect Trending, so SmokeWalletPlatform is required as a dependent tag.
No other tags are needed — this change doesn't affect confirmations, accounts, networks, swaps, or other features. The PredictionsSection is only imported by its index file and test file, confirming the narrow scope.
Performance Test Selection:
The changes are purely additive — adding an analytics entry point constant and passing it as a navigation param. There is no UI rendering change, no new data fetching, no state management modification, and no component structure change that would affect performance. No performance tests are warranted.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The
Predict Feed Viewedevent tracks where users navigate from via anentry_pointproperty. When users tapped into the Predict Feed from the homepage Predictions section (trending markets carousel, no active positions), noentry_pointvalue was being passed. The property was absent from the event.This PR adds a new
home_sectionentry point value and wires it into the homepage navigation handler that leads to the Predict Feed.Changelog
CHANGELOG entry:null
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/TMCU-609
Manual testing steps
Screenshots/Recordings
Screen.Recording.2026-04-16.at.1.02.34.PM.mov
Before
~After
~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
Small analytics/navigation parameter change scoped to the Predict homepage entry point with unit test coverage; minimal functional impact beyond event attribution.
Overview
Ensures the
Predict Feed Viewedanalyticsentry_pointis populated when users enter the Predict market list from the homepage Predictions section.This introduces a new
PredictEventValues.ENTRY_POINT.HOME_SECTIONvalue, extends thePredictEntryPointtype to include it, and updates the homepage Predictions navigation handler to passentryPoint: home_sectionwhen tapping the section title (with tests updated/added to assert the new navigation params).Reviewed by Cursor Bugbot for commit c366553. Bugbot is set up for automated code reviews on this repo. Configure here.