Skip to content

feat(glance): follow the operator's teams on Sports & Markets - #1777

Merged
Gerrrt merged 1 commit into
mainfrom
feat/glance-my-teams
Nov 27, 2026
Merged

Gerrrt merged 1 commit into
mainfrom
feat/glance-my-teams

Conversation

@Gerrrt

@Gerrrt Gerrrt commented Nov 27, 2026

Copy link
Copy Markdown
Owner

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+b multireddits) and raises each YouTube tab's limit to 40. Neither of those changes a repository file other than secrets/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-glance on trinity only. The new requests are server-side to site.api.espn.com, which the scoreboards already call. The browser fetches nothing new: the kickoff script is inline and only rewrites text.

  • No change to network segmentation or firewall rules
  • No new port published to a VLAN that could not already reach the service
  • No credential added outside secrets/*.sops.yaml (GLANCE_TEAMS is 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 ran config:validate against this branch's glance/ 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, each data-kickoff was rewritten to local time.

  • make validate not run locally (no Docker here): left to CI.

  • The encrypted diff is the three keys plus lastmodified and mac.

  • make validate passes

  • Deployed to the lab and confirmed working

  • Docs updated (docs/, service README, or docs/roadmap.md)

🤖 Generated with Claude Code

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>
@Gerrrt
Gerrrt enabled auto-merge (squash) November 27, 2026 03:44
@Gerrrt
Gerrrt merged commit 3ccd4ae into main Nov 27, 2026
9 checks passed
@Gerrrt
Gerrrt deleted the feat/glance-my-teams branch November 27, 2026 03:54
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