Commit fb50a03
chore(runway): cherry-pick fix(predict): cp-7.63.0 general UI fixes to live games (#25171)
- fix(predict): cp-7.63.0 general UI fixes to live games (#25130)
## **Description**
This PR makes UI adjustments to the Predict feature's game markets:
1. **Removed team gradient background** from game market cards and game
details screen - the gradient that used team colors as a background is
no longer needed
2. **Adjusted padding** around the "Your picks" section in game details
- increased top padding from `py-2` to `pt-8` for better visual spacing
### Changes:
- `PredictGameDetailsContent.tsx`: Removed `PredictSportTeamGradient`
wrapper, now uses `SafeAreaView` directly
- `PredictGameDetailsFooter.tsx`: Removed gradient logic and unused
`awayColor`/`homeColor` props
- `PredictMarketSportCard.tsx`: Replaced gradient with simple `Box`
using `bg-muted rounded-xl`
- `PredictPicks.tsx`: Adjusted padding from `py-2` to `pt-8`
- Updated tests and types to reflect the removal of gradient-related
code
## **Changelog**
CHANGELOG entry: null
## **Related issues**
Fixes: https://consensyssoftware.atlassian.net/browse/PRED-541
## **Manual testing steps**
```gherkin
Feature: Predict game market UI
Scenario: User views game market card in feed
Given the user is on the Predict feed
When the user views a sports game market card
Then the card displays with a muted background (no team color gradient)
Scenario: User views game details screen
Given the user taps on a sports game market
When the game details screen opens
Then the screen displays without a team color gradient background
And the "Your picks" section has proper spacing from the chart above
```
## **Screenshots/Recordings**
### **Before**
<!-- Team gradient backgrounds visible on cards and details screen -->
### **After**
<!-- Clean muted backgrounds, improved spacing -->
<img width="360" height="760" alt="Screenshot 2026-01-23 at 1 00 33 PM"
src="https://github.com/user-attachments/assets/82a14a45-e491-414f-8ad5-e2af5cf25c2a"
/>
<img width="370" height="764" alt="Screenshot 2026-01-23 at 1 00 18 PM"
src="https://github.com/user-attachments/assets/4879dc50-6a2c-4d71-8e86-03c9b187d3d1"
/>
## **Pre-merge author checklist**
- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I've included tests if applicable
- [x] I've documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I've applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.
## **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.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Replaces team color gradients with neutral containers and cleans up
related props/tests.
>
> - Remove `PredictSportTeamGradient` from `PredictGameDetailsContent`,
`PredictGameDetailsFooter`, and `PredictMarketSportCard`; use
`SafeAreaView`/`Box` with `bg-muted` and rounded corners
> - Drop `awayColor`/`homeColor` props and gradient logic from footer
(`PredictGameDetailsFooter.tsx` and `.types.ts`)
> - Adjust "Your picks" heading spacing in `PredictPicks.tsx` from
`py-2` to `pt-8`
> - Update tests and snapshots to reflect no-gradient UI and removed
props
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
12abe81. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
[06a4e3c](06a4e3c)
Co-authored-by: Luis Taniça <matallui@gmail.com>1 parent 0b330b5 commit fb50a03
8 files changed
Lines changed: 292 additions & 421 deletions
File tree
- app/components/UI/Predict/components
- PredictGameDetailsContent
- __snapshots__
- PredictMarketSportCard
- PredictPicks
Lines changed: 0 additions & 47 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | 69 | | |
94 | 70 | | |
95 | 71 | | |
| |||
461 | 437 | | |
462 | 438 | | |
463 | 439 | | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | 440 | | |
488 | 441 | | |
489 | 442 | | |
| |||
Lines changed: 70 additions & 80 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
| |||
62 | 61 | | |
63 | 62 | | |
64 | 63 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
70 | 68 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
75 | 75 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
82 | 81 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
88 | 95 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
95 | 99 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
| 100 | + | |
| 101 | + | |
106 | 102 | | |
107 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
108 | 117 | | |
109 | 118 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
125 | 122 | | |
126 | | - | |
127 | | - | |
128 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
129 | 127 | | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
134 | 137 | | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
145 | 143 | | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
| 144 | + | |
| 145 | + | |
156 | 146 | | |
157 | 147 | | |
158 | 148 | | |
| |||
0 commit comments