style: tighten playoff card copy — uniform Game X of 7 header, leaner blurbs
CI / Lint (push) Successful in 10s
CI / Test (push) Successful in 11s
CI / Build & Push (push) Successful in 23s

Top row now always reads "Game N of 7" (round is already shown by the R1/R2/CONF FINAL/CUP FINAL badge). Bottom blurb drops the trailing period on "Series opener" and uses "{Team} lead X-Y" (plural verb, no "— Game N" suffix) when a leader is established.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-04-19 18:36:11 -04:00
parent f1e11a2dc4
commit 0f1c558493
3 changed files with 12 additions and 16 deletions
+4 -9
View File
@@ -106,9 +106,9 @@ def series_blurb(game):
if state["is_pivotal"]:
return f"Series tied 2\u20112 \u2014 pivotal Game {g}."
if state["is_opener"]:
return "Series opener."
return "Series opener"
if leader_name and trailer_name:
return f"{leader_name} leads {state['hi']}\u2011{state['lo']} \u2014 Game {g}."
return f"{leader_name} lead {state['hi']}\u2011{state['lo']}"
if state["hi"] == state["lo"]:
return f"Series even at {state['hi']}\u2011{state['lo']} \u2014 Game {g}."
return f"Game {g}."
@@ -135,14 +135,9 @@ def series_badges(game):
def series_summary(game):
"""Short series-score line rendered under the blurb, e.g. 'LAK leads 2-1'."""
"""Short line rendered above the card, e.g. 'Game 2 of 7'."""
state = series_state(game.get("seriesStatus", {}))
if state["is_opener"]:
return f"Game 1 of 7 \u00b7 Round {state['round']}"
leader_name = _leader_name(game, state)
if leader_name:
return f"{leader_name} leads {state['hi']}\u2011{state['lo']}"
return f"Series tied {state['hi']}\u2011{state['lo']}"
return f"Game {state['game_number']} of 7"
def is_pinned(game):