Skip to content

Hide the UK budget by programme card in the v3 report for now - #1514

Merged
PavelMakarchuk merged 1 commit into
mainfrom
fix/hide-budget-by-programme
Nov 3, 2026
Merged

PavelMakarchuk merged 1 commit into
mainfrom
fix/hide-budget-by-programme

Conversation

@PavelMakarchuk

Copy link
Copy Markdown
Contributor

Summary

Hides the "Budgetary impact by programme" card in the v3 report's Economic impacts tab (UK only) for now. Its bars do not yet read clearly to readers.

  • EconomicImpactCharts.tsx: a SHOW_BUDGET_BY_PROGRAMME = false switch on the card. The chart (charts/BudgetaryImpactByProgramSubPage.tsx), its CSV rows and its own tests (UKBreakdownCharts.test.tsx) stay, so setting the switch to true shows it again.
  • The v2 report pages are unchanged.
  • The overall "Budgetary impact" card and the wealth decile cards are unchanged.

Tests

  • EconomicImpactCharts.test.tsx: a UK report has no budget by programme card; the wealth decile cards still show. The card-content test moved out, as the chart's own tests cover it.
  • EconomicImpactCharts.test.tsx and UKBreakdownCharts.test.tsx: 28 tests pass. tsc, ESLint and Prettier are clean.

Overlap

#1441 (draft) also edits this card's block in EconomicImpactCharts.tsx (variable-label gating). This PR changes only the card's condition line, so whichever merges second has a one-line conflict.

🤖 Generated with Claude Code

The card's bars do not yet read clearly. The chart, its CSV rows and its
tests stay, so a one-line change shows it again.

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

vercel Bot commented Nov 3, 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 3, 2026 4:02pm UTC
policyengine-website Ready Ready Preview Nov 3, 2026 4:02pm UTC

Request Review

This branch was successfully deployed

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