Skip to content

Remove SCP inflation policy from dashboard#28

Merged
vahid-ahmadi merged 6 commits intomainfrom
remove-scp-inflation
Jan 23, 2026
Merged

Remove SCP inflation policy from dashboard#28
vahid-ahmadi merged 6 commits intomainfrom
remove-scp-inflation

Conversation

@vahid-ahmadi
Copy link
Collaborator

Summary

  • Remove SCP inflation adjustment from the dashboard UI
  • SCP inflation is already in the PolicyEngine baseline (and SFC baseline), so showing it as a budget reform was misleading
  • Backend still calculates it but UI ignores it
  • Also deleted unused StackedBudgetBarChart.jsx and StackedDecileChart.jsx components

Test plan

  • Verify dashboard loads with 6 policies instead of 7
  • Verify budgetary impact chart shows correct policies
  • Verify household calculator works without scp_inflation
  • Verify local area section works correctly

🤖 Generated with Claude Code

SCP inflation adjustment is already in the PolicyEngine baseline (and SFC baseline),
so showing it as a budget reform is misleading. This removes it from the UI while
keeping the backend calculation for reference.

Changes:
- Remove scp_inflation from policy configs and reform definitions
- Remove from App.jsx policy list and default selections
- Remove from Dashboard.jsx POLICY_INFO and explanations
- Remove from HouseholdCalculator.jsx charts and tooltips
- Remove from ScotlandMap.jsx and LocalAreaSection.jsx
- Update SFCComparisonTable.jsx note text
- Delete unused StackedBudgetBarChart.jsx and StackedDecileChart.jsx

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Jan 23, 2026

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

Project Deployment Review Updated (UTC)
post-scottish-budget-dashboard Ready Ready Preview, Comment Jan 23, 2026 10:08am

Request Review

- Reorder stacked bars: largest first (at base), smaller on top
- Custom tooltips showing policies in order with Net impact last
- SFC comparison table defaults to Static instead of Post-behavioural
- Local area map legend: symmetric with round numbers and both colors
- Fix number formatting: -£48.49 instead of £-48.49

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Change d3 curve from curveMonotoneX to curveLinear to show sharp cliffs
- Increase API data points from 51 to 201 (£1k steps) for better resolution
- This properly shows SCP eligibility cliff and other policy thresholds

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
SCP inflation is now in baseline (current £28.20 rate), so we should
not calculate it as a separate reform impact. This fixes the mismatch
where total included hidden scp_inflation value not shown in UI.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@vahid-ahmadi vahid-ahmadi merged commit 090dbaf into main Jan 23, 2026
3 checks passed
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