Populate baseline, ship dashboard, add senior poverty#2
Merged
Conversation
Methodology: - Use spm_unit_is_in_spm_poverty and spm_unit_is_in_deep_spm_poverty mapped to person, matching policyengine.py outputs/poverty.py conventions (USPovertyType.SPM / SPM_DEEP). - Formulas are mathematically identical to v1 API's person_in_poverty / in_deep_poverty; this only changes the variable name we reference. Local compute: - New scripts/compute_local.py runs the same methodology locally without Modal, writes data/baseline.json and frontend/public/baseline.json. - _resolve_dataset falls back to the documented HuggingFace URL convention when policyengine.countries import fails (e.g. editable installs with a mismatched manifest). Frontend: - Pin Next.js to 15.5.4 (16 + Turbopack hits an RSC bundler bug). - Replace turbopack.root with outputFileTracingRoot. Baseline (2026, current-law, no reforms): - All 52 regions populated, zero errors. - Computed with policyengine 4.3.0 / policyengine-us 1.690.7 / policyengine-us-data 1.17.0. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- Header bar with the PolicyEngine teal logo on primary-900 background - Page header strip with title only - Color palette mirrored from policyengine-app-v2/app/src/app.css (primary teal #2C7A7B, bg-secondary #f5f9ff) - Inter font wired via next/font; favicon copied from app-v2 - Dropped the @policyengine/design-system dependency (tokens are now inlined) - VersionBar shows absolute timestamps instead of "Nm ago" - DEPLOYMENT.md + frontend/vercel.json mirror the aspen-eitc-ctc pattern Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The package is only needed for generating the dataset; consumers fetch the prebuilt HDF5 from HuggingFace at runtime. Modal's image build was failing because policyengine-us-data isn't published to PyPI. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Backend already computes senior rates for every region; surface them in the state table alongside child and overall poverty. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
4 tasks
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
Supersedes #1.
Test plan
npm run build)🤖 Generated with Claude Code