Skip to content

feat(glance): the TSP L 2060 fund with a year's sparkline, from a Google Sheet - #1748

Merged
Gerrrt merged 2 commits into
mainfrom
glance-tsp
Nov 25, 2026
Merged

Gerrrt merged 2 commits into
mainfrom
glance-tsp

Conversation

@Gerrrt

@Gerrrt Gerrrt commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

What changed

A TSP L 2060 widget on Sports & Markets, under the ticker list: the latest price, the day's change, the change over the sheet's year, and a sparkline of every day, drawn as inline SVG so the browser fetches nothing for it. Glance reads the prices from trinity through the Google Sheets API (sheets.googleapis.com), from a sheet shared by link that holds only the date and the fund's price. Two new SOPS values carry it, GLANCE_TSP_SHEET_ID and GLANCE_GOOGLE_API_KEY, wired through compose.yaml, render-config.sh and seed-validation-env.sh. The example file has the steps for both, and the stack README and the build runbook say where they come from.

Why

The ticker strip reads Yahoo, which has no TSP fund. The TSP's own price download answered a script with 403, and Glance reads JSON, not web pages. The operator's sheet already imports a year of daily prices from TSP Talk; a second, prices-only sheet keeps the portfolio sheet private.

Blast radius

Glance on trinity: one new widget, and one new outbound host from VLAN 99 over the existing Allow internet egress. compose.yaml requires both new values, so the encrypted file with both is in this PR, so they arrive together. The same file brings GLANCE_MARKETS to ten tickers. The key is restricted to the Sheets API and reads only link-shared sheets.

  • 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

Verification

  • On trinity, on this branch: ./scripts/check_glance_config.sh passed against glance:v0.8.8, python3 scripts/check_docs.py passed, and ./scripts/lint.sh passed with 4 skipped as unavailable there (ansible-lint among them).

  • The template was rendered by the pinned image against a stand-in for the Sheets API. With 261 random-walk rows it drew 261 points from x=300 to x=0. With known prices it printed $22.8299, -0.15% day and +9.13% over 261 days, which match by hand, and no ZgotmplZ.

  • Against the real sheet and key on trinity (values passed from SOPS into a throwaway container, never printed): $22.8299 on 2026-11-24, matching TSP Talk's 22.8299, -0.15% day, +9.15% over 261 days and 261 sparkline points.

  • The 10 tickers in GLANCE_MARKETS are live on trinity after make up; Glance healthy.

  • make validate passes

  • Deployed to the lab and confirmed working

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

🤖 Generated with Claude Code

Gerrrt and others added 2 commits November 25, 2026 10:08
…gle Sheet

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Gerrrt
Gerrrt marked this pull request as ready for review November 25, 2026 18:50
@Gerrrt
Gerrrt enabled auto-merge (squash) November 25, 2026 18:55
@Gerrrt
Gerrrt merged commit 10753d1 into main Nov 25, 2026
12 of 14 checks passed
@Gerrrt
Gerrrt deleted the glance-tsp branch November 25, 2026 19:16
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