Skip to content

fix(football-scoreboard): stop scroll-card show_date/show_time blanking the full-screen scorebug - #342

Merged
ChuckBuilds merged 1 commit into
mainfrom
fix/switch-show-date-time
Aug 30, 2026
Merged

fix(football-scoreboard): stop scroll-card show_date/show_time blanking the full-screen scorebug#342
ChuckBuilds merged 1 commit into
mainfrom
fix/switch-show-date-time

Conversation

@ChuckBuilds

Copy link
Copy Markdown
Owner

What broke

On a switch-mode display whose config had scroll_card.show_date/show_time set to false, the full-screen upcoming scorebug drew nothing in its middle: switch_upcoming_center defaults to date_time, and both of its lines came back blanked. Observed live on a 256x64 device (2.29.0) — upcoming games rotated with logos and the "Next" header but no date or time.

Why

show_date/show_time predate the full-screen display reading the scroll_card block: they governed only the scroll and Vegas cards, so configs turned them off back when that was all they did. When the block was wired through to the switch scorebug, those old settings started silently blanking a display that has always drawn both lines — exactly the regression switch_upcoming_center / switch_date_format were introduced to prevent, and for the same reason "unset" is unobservable: the core merges schema defaults into the config on every load.

Fix

  • _upcoming_date_and_time_text() now reads switch_show_date / switch_show_time, both defaulting to true, so every existing panel renders what it rendered before.
  • Both keys added to config_schema.json under the scroll_card block, alongside the other switch_* overrides.
  • The scroll and Vegas cards keep following show_date/show_time exactly as before (game_renderer.py untouched).

Tests

  • test_switch_upcoming_center.py updated: the show/hide checks exercise the new keys, plus a new regression pin that a render with show_date: false, show_time: false is byte-identical to the default render.
  • All 33 checks pass; test_scroll_mode.py and test_config_reload.py pass. test_adaptive_layout_mode.py has 12 pre-existing failures identical on pristine main (local font-environment related), none introduced here.

🤖 Generated with Claude Code

https://claude.ai/code/session_01SWe8ZdMQ1itP25XyzrwnhW

…ng the full-screen scorebug

show_date/show_time predate the full-screen (switch mode) display reading
the scroll_card block: they governed only the scroll and Vegas cards, so a
config that had turned them off there — set back when that was all they
did — started silently blanking the stacked date and time in the middle of
the switch-mode upcoming scorebug once the block was wired through. With
switch_upcoming_center defaulting to date_time, both lines came back empty
and the middle drew nothing at all.

The full-screen display now has its own switch_show_date and
switch_show_time, both defaulting to true — the same back-compat rule that
gave it switch_upcoming_center and switch_date_format, because "leave it
alone when unset" is not observable once the core has merged schema
defaults in. The scroll and Vegas cards keep following show_date/show_time
exactly as before, and a regression check pins that the shared keys no
longer reach this display.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SWe8ZdMQ1itP25XyzrwnhW
@coderabbitai

coderabbitai Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 74f86035-c7c9-41d7-9db0-b3b8d09f1eae


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@ChuckBuilds
ChuckBuilds merged commit b821002 into main Aug 30, 2026
4 checks passed
@ChuckBuilds
ChuckBuilds deleted the fix/switch-show-date-time branch August 30, 2026 22:24
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