feat(predict): cp-7.62.0 implement game details action buttons and about sheet #24540
feat(predict): cp-7.62.0 implement game details action buttons and about sheet #24540
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. |
app/components/UI/Predict/components/PredictActionButtons/PredictBetButton.tsx
Show resolved
Hide resolved
- Return null when market is closed/resolved and user has no claimable winnings - Hide 'Pick a winner' info row when showing claim button - Add tests for footer visibility logic
The size prop was defined but never used in PredictBetButton. Remove size prop, PredictBetButtonSize type, and BUTTON_SIZE_MAP constant.
app/components/UI/Predict/components/PredictGameDetailsFooter/PredictGameDetailsFooter.tsx
Outdated
Show resolved
Hide resolved
Derive hasClaimableWinnings from claimableAmount > 0 instead of passing both as separate props. This eliminates the edge case where they could disagree and simplifies the component API.
app/components/UI/Predict/views/PredictMarketDetails/PredictMarketDetails.tsx
Show resolved
Hide resolved
Show loading skeleton while claimable positions are being fetched to prevent jarring UI transition from bet buttons to claim button.
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsThis PR introduces new UI components and modifies existing ones within the Predict (Predictions) feature. The changes include:
All changes are self-contained within the No other features are impacted by these changes, so only the SmokePredictions tag is needed. |
|



Description
This PR implements the action buttons and about bottom sheet for the Predict NFL game details screen.
Key changes:
Architecture improvement: The about bottom sheet is rendered at the root level (inside
SafeAreaViewinPredictGameDetailsContent) rather than inside the footer to ensure the overlay covers the full screen, allowing tap-to-dismiss to work correctly.Changelog
CHANGELOG entry: null
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/PRED-480
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Implements game-specific actions and info surfaces on the Predict game details screen.
PredictActionButtons(bet YES/NO or team labels with colors; claim button; loading skeleton) and integrates into game viewsPredictGameDetailsFootershowing “Pick a winner”, volume, info button, and hosting action buttons; wired intoPredictGameDetailsContentPredictGameAboutSheetbottom sheet with market description and a terms link (POLYMARKET_TERMS_URL)usePredictBottomSheetto manage sheet visibility (simplified open/close behavior)PredictMarketDetailsandPredictGameDetailsContentWritten by Cursor Bugbot for commit 038c465. This will update automatically on new commits. Configure here.