Repository navigation
feat(glance): follow the operator's teams on Sports & Markets - #1777
Merged
Merged
Conversation
A "My teams" widget at the top of Sports & Markets gives each followed team its record, last result and next game, or the score while one is on, from ESPN's public team schedules. The list is GLANCE_TEAMS in SOPS, like the operator's other lists. Soccer teams use ESPN's soccer/all league, which spans every competition and returns results and fixtures separately. The container has no time zones, so the template writes kickoff in UTC into data-kickoff and a second inline script in the page head rewrites it in the browser's own zone. The same SOPS edit merges the Reddit tabs into five category tabs and lets each YouTube tab show 40 videos. 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
Sports & Markets gets a My teams widget at the top: one line per followed team with its record, last result and next game, or the live score while one is on, from ESPN's public team schedules. The list is a new SOPS value,
GLANCE_TEAMS. It is wired into compose,render-config.sh, the validation seed, the example file, the stack README and the sensitive-tier runbook. A second inline script in the page head rewrites each kickoff time in the browser's own time zone, because the Alpine container has no tzdata.The same encrypted edit merges the Read page's Reddit tabs into five category tabs (
a+bmultireddits) and raises each YouTube tab's limit to 40. Neither of those changes a repository file other thansecrets/sensitive.sops.yaml.Why
Personalising the start page: the Sports page showed only league scoreboards, the Reddit tabs had grown to twelve, and with 15 videos per tab, frequent uploaders pushed everyone else off the Watch page.
Blast radius
sensitive-glanceontrinityonly. The new requests are server-side tosite.api.espn.com, which the scoreboards already call. The browser fetches nothing new: the kickoff script is inline and only rewrites text.secrets/*.sops.yaml(GLANCE_TEAMSis a list, not a credential, and is in SOPS)Verification
python3 scripts/check_docs.py: docs OK../scripts/lint.sh: passed, with 11 tools skipped locally for want of a Docker daemon (zizmor, packer, tofu, ansible-lint, editorconfig-checker). CI runs them.On
trinity, the pinned Glance image ranconfig:validateagainst this branch'sglance/with the real lists: valid.A throwaway Glance from this branch on
trinity's loopback, with the real lists: every team rendered its record, last result and next game. All five merged Reddit tabs had 25 or more posts, including posts from the smaller subreddits. In a browser, eachdata-kickoffwas rewritten to local time.make validatenot run locally (no Docker here): left to CI.The encrypted diff is the three keys plus
lastmodifiedandmac.make validatepassesDeployed to the lab and confirmed working
Docs updated (
docs/, service README, ordocs/roadmap.md)🤖 Generated with Claude Code