Skip to content

fix: consistent team names (McLaren, OpenF1 names matched) - #37

Merged
JustMaris merged 1 commit into
masterfrom
fix/team-names
Sep 24, 2026
Merged

JustMaris merged 1 commit into
masterfrom
fix/team-names

Conversation

@JustMaris

Copy link
Copy Markdown
Member

Summary

  • formatTeamName rebuilt names from Ergast constructor ids by capitalising each word, so mclaren rendered as "Mclaren" on the drivers standings tile. Added it to the existing override table alongside rb.
  • latest_session passed OpenF1's own team names through, so the same team read "Red Bull Racing" there but "Red Bull" everywhere else. Mapped the OpenF1 names that differ (Red Bull Racing, Racing Bulls, Haas F1 Team) onto the short names the rest of the API uses.

Found while render-testing the cluster's Glance page against a live API.

Test plan

  • gofmt / go vet / go test ./... clean, new TestTeamNames covers both mappings; latest-session contract test updated

…he rest

formatTeamName rebuilt names from Ergast constructor ids by capitalising
words, so "mclaren" came out as "Mclaren" on the drivers standings tile.
And latest_session passed OpenF1's own team names through, so the same
team read "Red Bull Racing" there but "Red Bull" everywhere else.
@JustMaris
JustMaris merged commit c44f2b0 into master Sep 24, 2026
7 checks passed
@JustMaris
JustMaris deleted the fix/team-names branch September 24, 2026 10:31
@dnb-robot dnb-robot Bot mentioned this pull request Sep 24, 2026
JustMaris added a commit that referenced this pull request Sep 26, 2026
…he rest (#37)

formatTeamName rebuilt names from Ergast constructor ids by capitalising
words, so "mclaren" came out as "Mclaren" on the drivers standings tile.
And latest_session passed OpenF1's own team names through, so the same
team read "Red Bull Racing" there but "Red Bull" everywhere else.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant