Repository navigation
feat(glance): the TSP L 2060 fund with a year's sparkline, from a Google Sheet - #1748
Merged
Merged
Conversation
…gle Sheet Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Gerrrt
marked this pull request as ready for review
November 25, 2026 18:50
Gerrrt
enabled auto-merge (squash)
November 25, 2026 18:55
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
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
trinitythrough 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_IDandGLANCE_GOOGLE_API_KEY, wired throughcompose.yaml,render-config.shandseed-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.yamlrequires both new values, so the encrypted file with both is in this PR, so they arrive together. The same file bringsGLANCE_MARKETSto ten tickers. The key is restricted to the Sheets API and reads only link-shared sheets.secrets/*.sops.yamlVerification
On
trinity, on this branch:./scripts/check_glance_config.shpassed against glance:v0.8.8,python3 scripts/check_docs.pypassed, and./scripts/lint.shpassed 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% dayand+9.13% over 261 days, which match by hand, and noZgotmplZ.Against the real sheet and key on
trinity(values passed from SOPS into a throwaway container, never printed):$22.8299on 2026-11-24, matching TSP Talk's 22.8299,-0.15% day,+9.15% over 261 daysand 261 sparkline points.The 10 tickers in
GLANCE_MARKETSare live ontrinityaftermake up; Glance healthy.make validatepassesDeployed to the lab and confirmed working
Docs updated (
docs/, service README, ordocs/roadmap.md)🤖 Generated with Claude Code