Skip to content

Use British spelling for UK LSR parameter paths#2829

Open
vahid-ahmadi wants to merge 1 commit intomainfrom
fix/labour-supply-responses-uk-path
Open

Use British spelling for UK LSR parameter paths#2829
vahid-ahmadi wants to merge 1 commit intomainfrom
fix/labour-supply-responses-uk-path

Conversation

@vahid-ahmadi
Copy link
Copy Markdown
Collaborator

Summary

  • Companion to Rename labor to labour in LSR parameters policyengine-uk#1607, which renames gov.simulation.labor_supply_responses.*gov.simulation.labour_supply_responses.* in the UK repo.
  • Updates the two UK-only path strings in PolicyRightSidebar.jsx (income_elasticity, substitution_elasticity) so the LSR sliders keep resolving after the UK rename lands.
  • US paths (elasticities.*) are untouched — those live in policyengine-us and aren't being renamed.

Coordination

Merge order matters: this PR should land immediately before or after policyengine-uk#1607 to minimize the window where one side disagrees with the other. Safer sequence:

  1. Merge this PR first so the app expects the new paths.
  2. Merge policyengine-uk#1607, then bump policyengine-uk in the app.

Test plan

  • Run the app against a policyengine-uk build with the rename applied and confirm the LSR toggle still adds both elasticity parameters to the policy.
  • Confirm no regressions to the US LSR flow.

🤖 Generated with Claude Code

The UK labour supply response parameters are being renamed from
gov.simulation.labor_supply_responses.* to
gov.simulation.labour_supply_responses.* in PolicyEngine/policyengine-uk#1607.
Update the two UK-only path strings in PolicyRightSidebar so the LSR
sliders keep resolving after that merges. US paths unchanged.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings April 17, 2026 10:11
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 17, 2026

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

Project Deployment Actions Updated (UTC)
policyengine-app Ready Ready Preview, Comment Apr 17, 2026 10:13am

Request Review

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the PolicyRightSidebar’s UK behavioral response parameter paths to align with the upstream policyengine-uk rename from labor_supply_responses to labour_supply_responses, keeping the UK LSR toggle/sliders functional after the backend change.

Changes:

  • Renamed two UK parameter path strings in BehavioralResponseToggle to use labour_supply_responses.
  • Added a changelog entry documenting the UK LSR path rename.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/pages/policy/PolicyRightSidebar.jsx Switches UK behavioral-response reform keys to labour_supply_responses.* so UK LSR toggles target the renamed parameters.
changelog_entry.yaml Notes the UK LSR parameter path update for release tracking.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +114 to 118
"gov.simulation.labour_supply_responses.income_elasticity": {
[dateString]: -0.05,
},
"gov.simulation.labor_supply_responses.substitution_elasticity": {
"gov.simulation.labour_supply_responses.substitution_elasticity": {
[dateString]: 0.25,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants