Conversation
|
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. |
Medium severityM1 — Claim-pending row is missing an accessibility role/label (tappable financial row)In <TouchableOpacity
onPress={handlePress}
style={tw.style('flex-row items-start justify-between w-full p-2', containerStyle)}
testID={getPredictPositionsHistoryListSelector.claimPendingRow(position.id)}
>The existing M2 — Claim-pending history is not gated by the
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #30900 +/- ##
==========================================
+ Coverage 82.70% 82.73% +0.03%
==========================================
Files 5561 5576 +15
Lines 143081 143593 +512
Branches 33051 33204 +153
==========================================
+ Hits 118336 118803 +467
- Misses 16863 16877 +14
- Partials 7882 7913 +31 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…-module-into-current-predict-feed-behind-feature-flag
Medium severityM1 —
|
…-module-into-current-predict-feed-behind-feature-flag
…to predict/PRED-904-integrate-predict-portfolio-module-into-current-predict-feed-behind-feature-flag # Conflicts: # app/components/UI/Predict/components/PredictPositionsHistoryList/PredictPositionsHistoryList.test.tsx # app/components/UI/Predict/views/PredictTransactionsView/PredictTransactionsView.test.tsx
There was a problem hiding this comment.
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.
Reviewed by Cursor Bugbot for commit c8b3058. Configure here.
High severityH1 — "Claim pending" section is fed the unfiltered
|
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: Key changes:
Tags selected:
SmokeConfirmations is NOT selected because these changes are purely UI/display changes - no new transaction flows are introduced. The existing claim flow was already tested; this PR adds a "Claim pending" display section and a navigation button. No other tags are affected as the changes are isolated to the Predictions feature area with no shared component modifications (no BrowserTab, TabBar, navigation infrastructure, or controller changes). Performance Test Selection: |

Description
This PR integrates the Predict Positions screen into the existing Predict feed balance card for PRED-904.
It adds a feature-flagged
Positionsaction to the Predict balance card. WhenpredictPortfolio.enabledis on, the balance action row uses the compact three-button layout from the portfolio/positions design and the Positions button navigates toRoutes.PREDICT.POSITIONS. When the flag is off, the existing Add funds / Withdraw layout remains unchanged.This also updates the Positions history experience so claimable positions can be shown as a
Claim pendingsection before the date-grouped activity history. The claim-pending section is opt-in through the optionalclaimPendingPositionsprop and supports privacy mode.Changelog
CHANGELOG entry: Added a Positions button to the Predict balance card and surfaced claim-pending predictions in Positions history.
Related issues
Fixes: PRED-904
Manual testing steps
Screenshots/Recordings
Before
N/A
After
Screen.Recording.2026-06-01.at.17.08.29.mov
Testing performed
yarn jest app/components/UI/Predict/components/PredictBalance/PredictBalance.test.tsxyarn jest app/components/UI/Predict/views/PredictTransactionsView/PredictTransactionsView.test.tsxyarn jest app/components/UI/Predict/components/PredictPositionsHistoryList/PredictPositionsHistoryList.test.tsxyarn jest app/components/UI/Predict/views/PredictPositionsView/PredictPositionsView.test.tsxyarn eslint app/components/UI/Predict/Predict.testIds.ts app/components/UI/Predict/components/PredictPositionsHistoryList/PredictPositionsHistoryList.tsx app/components/UI/Predict/components/PredictPositionsHistoryList/PredictPositionsHistoryList.test.tsx app/components/UI/Predict/views/PredictPositionsView/PredictPositionsView.tsx app/components/UI/Predict/views/PredictPositionsView/PredictPositionsView.test.tsx app/components/UI/Predict/views/PredictTransactionsView/PredictTransactionsView.tsx app/components/UI/Predict/views/PredictTransactionsView/PredictTransactionsView.test.tsxyarn lint:tscgit diff --checkNote: ESLint exits successfully with existing warnings in
PredictTransactionsView.tsxfor deprecatedTabEmptyStateusage and an existingno-voidwarning.Pre-merge author checklist
Performance checks (if applicable)
Pre-merge reviewer checklist
Note
Medium Risk
Touches portfolio/claimable value math and multi-screen Predict navigation behind a flag; changes are UI-focused with broad test coverage and no direct payment or auth logic.
Overview
Adds a
predictPortfolio-gated Positions action on the Predict feed balance card: compact three-button layout when enabled, navigation toRoutes.PREDICT.POSITIONS, unchanged Add funds / Withdraw when the flag is off.Positions History can show an opt-in Claim pending section ahead of date-grouped activity: won positions with positive value, privacy-hidden amounts, row tap to market details, and combined pull-to-refresh / retry with portfolio refetch.
PredictPositionsViewonly passes claim-pending data when the portfolio flag is on.Claimable totals on the homepage and in portfolio logic now count won positions with positive
currentValueonly (lost or zero-value claimables excluded), with tests and new transaction copy / test IDs.Reviewed by Cursor Bugbot for commit 069e55b. Bugbot is set up for automated code reviews on this repo. Configure here.