Skip to content

chore(runway): cherry-pick fix(predict): cp-7.63.0 override team colors for Super Bowl#25208

Merged
joaoloureirop merged 1 commit intorelease/7.63.0from
runway-cherry-pick-7.63.0-1769450791
Jan 26, 2026
Merged

chore(runway): cherry-pick fix(predict): cp-7.63.0 override team colors for Super Bowl#25208
joaoloureirop merged 1 commit intorelease/7.63.0from
runway-cherry-pick-7.63.0-1769450791

Conversation

@runway-github
Copy link
Contributor

@runway-github runway-github bot commented Jan 26, 2026

Description

Override team colors for Super Bowl teams to ensure correct branding
display. The Polymarket API returns incorrect team colors for the New
England Patriots and Seattle Seahawks, so we apply manual overrides when
caching team data.

Changes:

  • Added TEAM_COLOR_OVERRIDES constant with corrected colors for NE
    (Patriots blue) and SEA (Seahawks green)
  • Applied color overrides during team cache population

Changelog

CHANGELOG entry: null

Related issues

Fixes: https://consensyssoftware.atlassian.net/browse/PRED-545

Manual testing steps

Feature: Predict team colors display

  Scenario: user views Super Bowl market with correct team colors
    Given user has navigated to a Super Bowl prediction market

    When user views the market details
    Then Patriots (NE) should display with color #1D4E9B
    And Seahawks (SEA) should display with color #69BE28

Screenshots/Recordings

Before

After

Screenshot 2026-01-26 at 9 50 42 AM
Screenshot 2026-01-26 at 9 50 29 AM

Pre-merge author checklist

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.

Note

Ensures correct branding colors for specific teams when ingesting Polymarket data.

  • Adds TEAM_COLOR_OVERRIDES with NE #1D4E9B and SEA #69BE28
  • Applies overrides in TeamsCache.fetchAndCacheTeams before storing teams in cache

Written by Cursor Bugbot for commit 4640b44. This will update automatically on new commits. Configure here.

903f214

…rs for Super Bowl (#25204)

## **Description**

Override team colors for Super Bowl teams to ensure correct branding
display. The Polymarket API returns incorrect team colors for the New
England Patriots and Seattle Seahawks, so we apply manual overrides when
caching team data.

**Changes:**
- Added `TEAM_COLOR_OVERRIDES` constant with corrected colors for NE
(Patriots blue) and SEA (Seahawks green)
- Applied color overrides during team cache population

## **Changelog**

CHANGELOG entry: null

## **Related issues**

Fixes: https://consensyssoftware.atlassian.net/browse/PRED-545

## **Manual testing steps**

```gherkin
Feature: Predict team colors display

  Scenario: user views Super Bowl market with correct team colors
    Given user has navigated to a Super Bowl prediction market

    When user views the market details
    Then Patriots (NE) should display with color #1D4E9B
    And Seahawks (SEA) should display with color #69BE28
```

## **Screenshots/Recordings**

<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->

### **Before**

<!-- [screenshots/recordings] -->

### **After**

<!-- [screenshots/recordings] -->
<img width="373" height="772" alt="Screenshot 2026-01-26 at 9 50 42 AM"
src="https://github.com/user-attachments/assets/0e9cde1a-2179-491c-b592-b55ea260ded7"
/>
<img width="367" height="764" alt="Screenshot 2026-01-26 at 9 50 29 AM"
src="https://github.com/user-attachments/assets/5558cf8f-86b9-4fa6-8125-dc85a9c51d7a"
/>




## **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]
> Ensures correct team branding colors in Predict for Polymarket teams.
> 
> - Introduces `TEAM_COLOR_OVERRIDES` with corrected hex colors for `ne`
and `sea`
> - Applies overrides in `TeamsCache.fetchAndCacheTeams` when populating
the league cache
> - Adds file-level ESLint disable for hex color tokens
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
ad4835d. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
@runway-github runway-github bot requested a review from a team as a code owner January 26, 2026 18:06
@github-actions
Copy link
Contributor

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.

@metamaskbot metamaskbot added the team-bots Bot team (for MetaMask Bot, Runway Bot, etc.) label Jan 26, 2026
@github-actions
Copy link
Contributor

🔍 Smart E2E Test Selection

⏭️ Smart E2E selection skipped - base branch is not main (base: release/7.63.0)

All E2E tests pre-selected.

View GitHub Actions results

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.


for (const team of teams) {
if (team.abbreviation) {
team.color = TEAM_COLOR_OVERRIDES[team.abbreviation] ?? team.color;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Case-sensitive key lookup prevents color override from working

High Severity

The TEAM_COLOR_OVERRIDES constant uses lowercase keys (ne, sea), but team.abbreviation from the Polymarket API is uppercase (NE, SEA). The lookup TEAM_COLOR_OVERRIDES[team.abbreviation] returns undefined because JavaScript object keys are case-sensitive. The override falls back to the original team.color via the nullish coalescing operator, defeating the entire purpose of this fix.

Additional Locations (1)

Fix in Cursor Fix in Web

@sonarqubecloud
Copy link

@joaoloureirop joaoloureirop merged commit 655dac3 into release/7.63.0 Jan 26, 2026
97 of 98 checks passed
@joaoloureirop joaoloureirop deleted the runway-cherry-pick-7.63.0-1769450791 branch January 26, 2026 20:28
@github-actions github-actions bot locked and limited conversation to collaborators Jan 26, 2026
@metamaskbot metamaskbot added the release-7.63.0 Issue or pull request that will be included in release 7.63.0 label Jan 30, 2026
@metamaskbot
Copy link
Collaborator

No release label on PR. Adding release label release-7.63.0 on PR, as PR was cherry-picked in branch 7.63.0.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-7.63.0 Issue or pull request that will be included in release 7.63.0 size-XS team-bots Bot team (for MetaMask Bot, Runway Bot, etc.)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants