Skip to content

Add the ACA calculator to the Tools menu - #1599

Merged
DTrim99 merged 1 commit into
mainfrom
aca-calc-tools-menu
Nov 24, 2026
Merged

DTrim99 merged 1 commit into
mainfrom
aca-calc-tools-menu

Conversation

@DTrim99

@DTrim99 DTrim99 commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

What

Adds the ACA calculator (policyengine.org/us/aca-calc) to the US Tools menu.

  • Tools menu. The aca-calc entry in app/src/data/apps/apps.json gets "toolsMenu": { "label": "ACA calculator" }. That one field adds it to the website header's Tools menu, the calculator's header (app/src/utils/toolsMenu.ts) and the homepage's tools section. Sorted by label, it comes first after the PolicyEngine app.
  • Description and title. Both ACA entries (aca-calc and aca-reforms-calculator) described reforms the calculator no longer models: the IRA extension, the 700% FPL bill and CRFB's proposals. They now say what it does since Update the calculator for 2027: compare 2026 and 2027 current law with H.R. 1834 in the API, calculator and Overview ACA-Calc#37: "See what a household would pay for its benchmark marketplace plan in 2026 and 2027 under current law, and in 2027 under H.R. 1834, which would revive the enhanced premium tax credits." The homepage card shows this text. The title "ACA Reforms Calculator" becomes "ACA calculator", in sentence case.
  • Homepage icon. HomeToolsPreview gives the card a stethoscope icon. Without one, it would fall back to the generic apps icon.
  • Tests. The two tests that pin the US menu (website/src/__tests__/lib/toolsMenu.test.ts and app/src/tests/unit/components/shared/HomeHeader.test.tsx) now list "ACA calculator".

Why it fits the rule

The menu lists calculators that work for any household under current law. The ACA calculator takes any household's ages, state and county, then shows its benchmark premium, premium tax credit and premium after the credit in 2026 and 2027 under current law. A checkbox adds 2027 under H.R. 1834; current law is the default.

Follow-ups outside this repo

  • Zone headers. ui-kit keeps its own copy of the Tools list (src/layout/PolicyEngineTools.ts), and zone apps' headers use that copy. Its toolsMenuParity check compares the copy with this file's main, so it will fail after this merges until ui-kit adds aca-calc and publishes a release.
  • The ACA calculator's own header. It pins @policyengine/ui-kit at ^0.12.0, which has no Tools menu. A separate ACA-Calc PR bumps it to ^0.13.0.

Layout note

The US homepage tools section goes from 8 cards to 9. At the lg breakpoint it has 4 columns, so the ninth card sits alone on a third row.

Checks

On Node 26: make format (no changes), make lint, make typecheck and make test all pass. That's 567 app test files with 7,603 tests, plus 69 website files with 799 tests and the packages' tests.

🤖 Generated with Claude Code

The ACA calculator at /us/aca-calc now shows what any household would pay
for its benchmark marketplace plan in 2026 and 2027 under current law, so it
meets the Tools menu's rule. Its apps.json entry gets a toolsMenu label,
which adds it to the website header's Tools menu, the calculator's header
and the homepage's tools section. Both of its entries get a description of
the 2027 calculator and a sentence-case title.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
policyengine-calculator-next Ready Ready Preview Nov 24, 2026 3:32pm UTC
policyengine-website Ready Ready Preview Nov 24, 2026 3:32pm UTC

Request Review

@DTrim99
DTrim99 merged commit d27867f into main Nov 24, 2026
12 checks passed
DTrim99 added a commit to PolicyEngine/policyengine-ui-kit that referenced this pull request Nov 24, 2026
policyengine.org lists the ACA calculator (/us/aca-calc) as a tool
(PolicyEngine/policyengine-app-v2#1599). ui-kit's copy of the list gets
the same entry, first in the US menu after the PolicyEngine app, so zone
headers match the website's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch was successfully deployed

2 active deployments
Preview – policyengine-website — 84a76d5f Deployed Nov 24, 2026 by vercel[bot]
Preview – policyengine-calculator-next — 84a76d5f Deployed Nov 24, 2026 by vercel[bot]
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