feat(predict): update World Cup banner#30480
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. |
|
Fixed Cursor Bugbot feedback. Updated the component-level and helper tests to use a configured aspect ratio of 3 instead of 2, so the configured-dimensions path is distinct from the default fallback aspect ratio. |
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 3b2fd8b. Configure here.
f17a728 to
3b2fd8b
Compare
|
Fixed latest Cursor Bugbot feedback. Removed the ineffective |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
Tag selection rationale:
No changes to core controllers, Engine, navigation infrastructure, or shared components that would warrant broader test coverage. Performance Test Selection: |
|




Description
Updates the Predict World Cup main feed banner to match the latest Figma card design. The banner now renders as a muted card with the World Cup image, title, description, and a filled icon button in the footer.
Also updates the Predict World Cup feature flag image override from a single URL to a structured
bannerImageobject containing{ url, width, height }, so remote images can preserve their intended aspect ratio while still falling back to a safe default aspect ratio when dimensions are missing or invalid.Changelog
CHANGELOG entry: null
Related issues
Fixes: PRED-895
Manual testing steps
Screenshots/Recordings
Before
N/A
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
Testing
Result: 3 test suites passed, 53 tests passed.
Note
Medium Risk
Moderate risk because it changes the remote feature-flag schema/type for the World Cup banner image (from
bannerImageUrlto structuredbannerImage) and updates banner sizing logic based on provided dimensions, which could impact rendering if remote config is malformed.Overview
Updates the Predict World Cup main-feed banner to a card-style layout with footer copy (title/description) and a filled arrow
ButtonIcon, while keeping the same navigation/tracking behavior.Reworks the World Cup feature-flag image override from
bannerImageUrlto a structuredbannerImageobject ({ url, width, height }) and introducesgetPredictWorldCupBannerImageAspectRatioto compute banner height from configured dimensions with a safe default fallback; associated schema/type and unit tests are updated accordingly, and the English banner description string is revised.Reviewed by Cursor Bugbot for commit 580875f. Bugbot is set up for automated code reviews on this repo. Configure here.