Conversation
The rates card gains the number people actually pay: typical monthly usage (state residential sales divided by residential customers, from the same EIA retail-sales call, which now also requests sales and customers) and the bill that usage costs at the month's average rate, with the year-over-year dollar change and the US-average bill beside it. The derivation trusts only rows whose own units fields match the arithmetic, so a silent upstream unit change drops the number instead of shipping a wrong one. The facilities card header now places the state among states with tracked capacity (GW tracked, rank). Registry-derived, so it renders before any API key is configured. tsc 0, 487 tests, build green. Exercised in a real browser against real captured EIA data (the public 861M spreadsheet); live payloads still need the free EIA_API_KEY set on Replit. Claude-Session: https://claude.ai/code/session_019VHXaB2wsfodFneo1VvANN
The typical-usage/typical-bill derivation is out: it computed a number EIA does not publish directly, and the owner does not want computed consumer stats on the page. The rates card returns to the published series alone. What stays is real registry data: the facilities header places the state among states with tracked capacity. tsc 0, 484 tests, build green, rank verified keyless in a browser. Claude-Session: https://claude.ai/code/session_019VHXaB2wsfodFneo1VvANN
The Power Map's opening-year timeline gains an optional state scope and mounts inside the facilities card: pick Texas and the strip shows tracked capacity arriving 2025-2027, amber where every site that year is still a schedule, with the tap-a-year panel naming the sites. Same component, same query key, so the two pages share one cached fetch and one set of aggregation tests. tsc 0, 484 tests, build green. Driven in a real browser: state switch, year tap, panel contents checked for Texas and Virginia. Claude-Session: https://claude.ai/code/session_019VHXaB2wsfodFneo1VvANN
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.
Bottom line: two real additions to My Grid, both straight from the facility registry, no API key, no computed consumer stats.
Where your state stands. The facilities header places the chosen state among states with tracked capacity: "5.1 GW tracked · #1 of 18 states" for Texas.
When it arrives. The Power Map's opening-year timeline gains an optional state scope and mounts inside the facilities card. Texas reads as three bars, 2025 to 2027, all amber targets, and tapping 2027 names the sites (Stargate Milam County 1,500 MW, Stargate Abilene Phase 2 500 MW) with the cumulative line. Same component and query key as the Power Map, so both pages share one cached fetch and one tested aggregation.
The earlier "typical monthly bill" derivation is out by owner call (a computed number EIA does not publish); the rates card is untouched from main.
Verification: tsc 0, 484/484 tests, build green. Driven in a real browser: state switching, year taps, panel contents checked for Texas and Virginia; renders keyless.
Merge note: pairs fine with #28 (live demand + fuel mix); overlap in
my-grid.tsxis small.🤖 Generated with Claude Code
https://claude.ai/code/session_019VHXaB2wsfodFneo1VvANN