Skip to content

feat(sensitive): Glance charts the 401(k) fund's twin and shows the 529 portfolio - #1824

Merged
Gerrrt merged 2 commits into
mainfrom
gerrrt/glance-backups-certs-funds
Nov 29, 2026
Merged

Gerrrt merged 2 commits into
mainfrom
gerrrt/glance-backups-certs-funds

Conversation

@Gerrrt

@Gerrrt Gerrrt commented Nov 29, 2026

Copy link
Copy Markdown
Owner

What changed

  • Sports & Markets, new 401(k) card: the plan's fund is BlackRock's LifePath Index 2060 as a collective trust, which has no ticker and no public price. The card charts its mutual-fund twin, LIZKX, from Yahoo's chart API with no key, in the TSP card's layout: price, the day, the year, and a year's line. The title says "LIZKX twin" so the price isn't read as the statement's.
  • Sports & Markets, new 529 card: reads a new 529 tab of the same link-shared price sheet the TSP card reads, holding the plan's own line of text for one portfolio. It shows the unit value, the day's change, year-to-date and the date. The portfolio's name comes from the sheet, not from this repository.
  • secrets/sensitive.example.yaml: the formula for that tab, beside the TSP sheet's steps.
  • Stack README: the Sports & Markets bullet and the Google Sheet note mention both cards.

Why

The operator wanted cards like the TSP one for the household's other two retirement and college funds. Neither is on Yahoo under its own name: one is a trust, the other a plan portfolio whose daily values the operator's sheet already scrapes.

Blast radius

One Glance page file on trinity. No new credential and no compose change: the 529 card uses the existing GLANCE_TSP_SHEET_ID and GLANCE_GOOGLE_API_KEY, and Yahoo and Google Sheets are already in docs/security.md's list of hosts Glance fetches from. Until the operator adds the 529 tab, that card says "No unit value: the sheet answered 400" and nothing else is affected. Each card makes one request every 6 hours.

Verification

  • python3 scripts/check_docs.py passes. ./scripts/lint.sh passes, with 11 tools skipped locally because Docker isn't available here; CI runs them.
  • Rendered Sports & Markets in a throwaway Glance on trinity, with the live image, network and CA:
    • The 401(k) card showed $27.61, +1.69% day and +6.07% over the year, dated 11/27/2026, with the line drawn.
    • The 529 card answered 400. Google's message for that range is the one it gives for a tab that does not exist; the same quoted-range form returned 200 for the sheet's existing tab.
    • A test-only copy of the 529 card, fed today's real text from the plan's scrape with the day made negative, showed the unit value, the portfolio's name, the day in red, year-to-date and the date. It was not committed.
  • No other widget on the page errored.

🤖 Generated with Claude Code

…29 portfolio

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Gerrrt
Gerrrt enabled auto-merge (squash) November 29, 2026 05:09
@Gerrrt
Gerrrt merged commit 52b6224 into main Nov 29, 2026
9 checks passed
@Gerrrt
Gerrrt deleted the gerrrt/glance-backups-certs-funds branch November 29, 2026 05:29
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