Skip to content

feat: driver wins, short constructor names, clearer wins in standings tiles - #41

Merged
JustMaris merged 1 commit into
masterfrom
feat/wins-and-team-names
Sep 24, 2026
Merged

JustMaris merged 1 commit into
masterfrom
feat/wins-and-team-names

Conversation

@JustMaris

Copy link
Copy Markdown
Member

Summary

  • drivers_standings now returns wins - Ergast already provides it per driver; only constructors had it before.
  • constructors_standings team drops Ergast's " F1 Team" suffix, so "RB F1 Team" / "Alpine F1 Team" / "Haas F1 Team" / "Cadillac F1 Team" read RB / Alpine / Haas / Cadillac, matching the drivers tile and the other tiles.
  • Widgets: the cryptic "(10W)" becomes a trophy + count in a fixed-width slot (points stay aligned), only shown when wins > 0, with a tooltip ("10 wins" / "1 win") - and drivers get it too.

Test plan

  • gofmt / go vet / go test ./... clean; drivers contract test asserts wins, constructors test asserts the short name
  • Rendered the whole F1 page on Glance v0.8.6 against a local build of this branch with live data: driver wins (Antonelli 8, Russell 2, ...), correct singular/plural tooltips, points stay aligned, constructors read short

… tiles

- drivers_standings now returns wins (Ergast already provides it per
  driver; only constructors had it before)
- constructors_standings `team` drops Ergast's " F1 Team" suffix so
  "RB F1 Team"/"Alpine F1 Team"/"Haas F1 Team"/"Cadillac F1 Team" read
  RB/Alpine/Haas/Cadillac, matching the drivers tile and other tiles
- widgets: the cryptic "(10W)" becomes a trophy + count in a fixed-width
  slot (points stay aligned), only shown when wins > 0, with a tooltip
  ("10 wins") - and drivers get it too
@JustMaris
JustMaris enabled auto-merge (squash) September 24, 2026 11:07
@JustMaris
JustMaris merged commit 3637752 into master Sep 24, 2026
7 checks passed
@JustMaris
JustMaris deleted the feat/wins-and-team-names branch September 24, 2026 11:08
@dnb-robot dnb-robot Bot mentioned this pull request Sep 24, 2026
JustMaris added a commit that referenced this pull request Sep 26, 2026
… tiles (#41)

- drivers_standings now returns wins (Ergast already provides it per
  driver; only constructors had it before)
- constructors_standings `team` drops Ergast's " F1 Team" suffix so
  "RB F1 Team"/"Alpine F1 Team"/"Haas F1 Team"/"Cadillac F1 Team" read
  RB/Alpine/Haas/Cadillac, matching the drivers tile and other tiles
- widgets: the cryptic "(10W)" becomes a trophy + count in a fixed-width
  slot (points stay aligned), only shown when wins > 0, with a tooltip
  ("10 wins") - and drivers get it too
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