Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- A coverage year setting, 2027 by default with 2026 selectable, sent to the API and kept in share links (year=). - H.R. 1834 replaces the "IRA Extension" label, and the enhanced credits capped at 700% FPL (a January 2026 draft variant) join the scenarios. The $5 minimum premium variant is built but hidden behind MIN_PREMIUM_AVAILABLE until the API's policyengine-us models it. Each description says the proposal's status. - Each result card shows what the benchmark plan costs after its credit, from the API's benchmark premium at each income. - Current law is labeled with the year, the browser cache key includes the year and a model version, and the page header no longer says 2025 vs 2026. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Until the backend that takes a year is deployed, the API answers for 2026 whatever the page asks. The results already label the year the answer reports; a notice now says when that isn't the year requested. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The API now pins policyengine-us 2.115.0, which models it, so the checkbox shows, and the browser cache key names that version. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
DTrim99
force-pushed
the
aca-2027-calculator
branch
from
November 9, 2026 16:46
7ebb80b to
b4fcebc
Compare
The calculator now makes one comparison: 2027 coverage under current law
and under H.R. 1834, with 2026 current law alongside. The year setting and
the scenario checkboxes go; old links still load their household.
- What You'd Pay charts the benchmark plan after the credit by income, and
Premium Tax Credits the credit, for the three scenarios (PremiumChart).
- Your Household shows, at the income entered, each scenario's benchmark
premium, credit and net premium, and the changes from 2026 and from
current law.
- HealthBenefitsChart goes back to main's version, keeping only the wording
("current law", "H.R. 1834") and the chart year in its title; the
Overview still uses it.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The chart's title already names what it shows; the longer label could run past a short chart. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Contributor
Author
This branch was successfully deployed
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.
Summary
This PR turns the calculator into one comparison: what a household would pay for its benchmark plan in 2026 and 2027 under current law, and in 2027 if H.R. 1834 revived the enhanced credits. It builds on #33, which gives the API the year and the 2026 comparison; merge that first.
What changes
year: 2027,show_ira,show_prior_year). The year setting and the scenario checkboxes go: the 700% FPL bill, CRFB's two brackets, and this PR's earlier draft variants (a 700% FPL cap and a $5 minimum premium). Share links keep only the household, and older links with a year or scenario choices still open their household.PremiumChart, a new chart for the three scenarios, which the Overview reuses in Update the calculator for 2027: compare 2026 and 2027 current law with H.R. 1834 in the API, calculator and Overview #37. It reads the API's fields (ptc_prior_year,ptc_baseline,ptc_iraand the benchmark premiums by income) and leaves out the 2026 line if an answer lacks it.HealthBenefitsChartgoes back to main's version, except for its wording ("current law", "H.R. 1834") and the chart year in its title. The AI explanation and, until Update the calculator for 2027: compare 2026 and 2027 current law with H.R. 1834 in the API, calculator and Overview #37, the Overview use it.CACHE_VERSIONto change with each policyengine-us pin.Previews
Until #33 is deployed, this PR's Vercel preview calls the production API. That API answers for 2026 whatever the page asks and doesn't return 2026 alongside, so the preview shows a notice saying the results are for 2026, and no 2026 line.
Checks
🤖 Generated with Claude Code