Repository navigation
homegame: skip the tile when no game is scheduled - #978
Merged
Merged
Conversation
Return [] instead of rendering the "NO GAME" notice when ESPN answers but the team has nothing on the schedule, so the app drops out of the rotation during the off-season and comes back once a game is scheduled. Removes the now-unused render_notice helper and updates the README. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
When ESPN answers but the chosen team has nothing on the schedule,
mainnow returns[]instead of rendering the amber NO GAME / Nothing scheduled notice. The app drops out of the rotation for the off-season and reappears by itself once a game is scheduled.The app already returned
[]when ESPN couldn't be reached, so both "nothing to show" cases now behave the same way.homegame.star: the no-game path returns[]; removed the now-unusedrender_noticehelper; updated the scoreboard fallback's docstring.README.md: the "No game" state now describes the skipped tile.Why
An off-season "nothing scheduled" screen takes up a rotation slot for months without telling the viewer anything useful.
Testing
pixlet format/lint/check(v0.55.1)nextEventon ESPN todayTEX vs UGA, AWAY band,Dec 5 3:00PMNot covered
homegame.webpis unchanged. The default team has no game right now, so a fresh render would be empty.🤖 Generated with Claude Code