Skip to content

Add the ACA calculator to the Tools menu - #42

Merged
DTrim99 merged 2 commits into
PolicyEngine:mainfrom
DTrim99:aca-calc-tools-menu
Nov 24, 2026
Merged

DTrim99 merged 2 commits into
PolicyEngine:mainfrom
DTrim99:aca-calc-tools-menu

Conversation

@DTrim99

@DTrim99 DTrim99 commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

Merge after PolicyEngine/policyengine-app-v2#1599. Until then, the Tools menu parity check fails on this PR, because app-v2's main doesn't list the ACA calculator yet. Once #1599 merges, re-run it and it should pass.

What

Adds the ACA calculator (/us/aca-calc) to ui-kit's copy of the US Tools list, to match policyengine.org's list after PolicyEngine/policyengine-app-v2#1599.

  • src/layout/PolicyEngineTools.ts: adds { slug: 'aca-calc', label: 'ACA calculator' }. Sorted by label with localeCompare(…, 'en'), it comes first, so the US menu reads PolicyEngine app, ACA calculator, CliffWatch, Coverage Compass, GiveCalc, Marriage calculator, QBI deduction calculator, SPM threshold calculator, TANF calculator.
  • tests/layout/PolicyEngineSiteConfig.test.ts and tests/layout/PolicyEngineToolsNav.test.tsx: add the row to the pinned US lists. The custom base URL test checked that the first tool after the main app links to CliffWatch; it now expects the ACA calculator.
  • changelog.d/aca-calc-tools-menu.added.md: an Added entry for the next release.

Why

The ACA calculator works for any household under current law: it shows 2026 and 2027 benchmark premiums, premium tax credits and premiums after the credit, with H.R. 1834 as an optional comparison. That fits the menu's rule. Zone apps, including the ACA calculator itself (PolicyEngine/ACA-Calc#42 moves it to ui-kit 0.13), list tools from this copy, so they need this change and a release to show the ACA calculator in their headers.

Checks

  • bun run test: 29 files, 344 tests pass (2 skipped).
  • bun run build, then bun run typecheck, pass.
  • bun run test:network fails only on the parity check, which shows aca-calc here and not yet in app-v2's main.

🤖 Generated with Claude Code

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>
@vercel

vercel Bot commented Nov 24, 2026

Copy link
Copy Markdown

@DTrim99 is attempting to deploy a commit to the PolicyEngine Team on Vercel.

A member of the Team first needs to authorize it.

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-ui-kit Ready Ready Preview Nov 24, 2026 3:49pm UTC

Request Review

@DTrim99

DTrim99 commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator Author

@MaxGhenis or @PavelMakarchuk review and merge

@DTrim99
DTrim99 merged commit acce208 into PolicyEngine:main Nov 24, 2026
5 checks passed
DTrim99 added a commit to PolicyEngine/ACA-Calc that referenced this pull request Nov 24, 2026
ui-kit 0.14.0 (PolicyEngine/policyengine-ui-kit#42) adds the ACA
calculator to its copy of policyengine.org's Tools list. ^0.13.0 can't
reach 0.14 on a 0.x version, so the range moves to ^0.14.0.

Co-authored-by: David Trimmer <178813244+DTrim99@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

This branch was successfully deployed

1 active deployment
Preview — c9da384c 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