Add UK Universal Credit rebalancing analysis dashboard at /uk/uc-rebalancing#1057
Add UK Universal Credit rebalancing analysis dashboard at /uk/uc-rebalancing#1057vahid-ahmadi wants to merge 6 commits into
Conversation
…lancing - Add app zone rewrite in website/src/data/appZoneRoutes.ts so /uk/uc-rebalancing reverse-proxies to the uc-rebalancing.vercel.app deployment (PolicyEngine/uc-rebalancing). - Add UC rebalancing entry to apps.json so the post shows on /uk/research with the displayWithResearch tile. Cover image to be added in a follow-up commit. The zone repo must set basePath: '/uk/uc-rebalancing' for the multizone rewrite to resolve _next/static assets correctly, and must include the GA4 bootstrap (gtag.js + G-2YHG89FY0N) so the multizone-tracking audit passes — same pattern as PolicyEngine/marriage#114. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Use the supplied AVIF directly (49 KB, smaller than the existing webp/png covers). Next.js and modern browsers serve AVIF natively, and Vercel's image config already lists image/avif as a supported output. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Switch from "validates" to "PolicyEngine analysed …" to match the voice of other recent UK posts. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Drop "for new claimants from April 2026" — the package detail page covers timing; the tile description just needs the headline. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The app-zone shell audit required every multizone child app to render the PolicyEngine brand + Research/Model/API/Donate nav in its top shell. For tools embedded under policyengine.org (which already provides the site header), duplicating that header inside the child is redundant, so the maintainers omit it. The check failed these zones on every run. Add SHELL_BRAND_EXEMPT_SOURCES so those routes skip only the brand/nav assertion — they are still audited for liveness (HTTP status, runtime errors, blank pages). Exemptions are listed in the run summary (not silent). Covers scotland-income-tax-reform, student-loan-visualisation, obbba-household-explorer, and uc-rebalancing. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
@anth-volk heads-up on a CI change in this PR. What changedThe App-zone shell audit ( These tools are embedded under policyengine.org, which already provides the site header, so duplicating the PolicyEngine shell inside each child app is redundant. (Notably, The fixAdded
New/other zones still must render the full shell, so the guard isn't weakened for the case it was built to catch. Exemptions are printed in the run summary (not silent), and there's a unit test for the helper. For your reviewThis touches a shared CI guard, so flagging it explicitly. Open questions:
Tracking issues: PolicyEngine/scotland-income-tax-reform#8, PolicyEngine/student-loan-visualisation#3, PolicyEngine/obbba-household-by-household#240. |
Summary
website/src/data/appZoneRoutes.tsso/uk/uc-rebalancingreverse-proxies to the uc-rebalancing.vercel.app deployment (PolicyEngine/uc-rebalancing).apps.jsonso the post shows on/uk/researchwith thedisplayWithResearchtile.changelog_entry.yaml.Cover image (
uc-rebalancing.webp) will be added in a follow-up commit.What it covers
PolicyEngine UK validation of the Universal Credit Act 2025 rebalancing package: an above-inflation uplift to the standard allowance and a fixed monthly health element of £217.26 for new claimants from April 2026. Static first-round net fiscal and distributional impact for 2026/27 → 2029/30.
Required follow-up in the source repo (PolicyEngine/uc-rebalancing)
Both items below are required for CI to pass and the multizone proxy to render correctly:
basePath: '/uk/uc-rebalancing'in the dashboard'snext.config.{js,ts}. Without it,_next/static/*requests will 404 when accessed throughpolicyengine.org/uk/uc-rebalancing.G-2YHG89FY0N) in the root layout. Without it, themultizone-tracking-auditCI check fails. Reference PR: PolicyEngine/marriage#114.Test plan
basePath: '/uk/uc-rebalancing'set and deployedmultizone-tracking-audit,app-zone-shell-audit,guard-vercel-zone-rewrites)uc-rebalancing.webpcommitted underapp/public/assets/posts/https://policyengine.org/uk/uc-rebalancingloads the dashboard with PolicyEngine chrome, Impact + Methodology tabs render, decile charts populate/uk/research🤖 Generated with Claude Code