Skip to content

Conversation

@anth-volk
Copy link
Collaborator

@anth-volk anth-volk commented Dec 16, 2025

Fixes #517

Summary

Adds support for selecting UK local authorities as a geography option, enabling users to run policy simulations scoped to any of the ~360 local authorities across England, Scotland, Wales, and Northern Ireland.

This change complements policyengine-api#2992 which adds local authority metadata and breakdown calculations to the API.

Changes

  • Add LOCAL_AUTHORITY to UK_REGION_TYPES constant
  • Add getUKLocalAuthorities() filter function in regionStrategies.ts
  • Create dedicated selector components following US pattern:
    • UKCountrySelector.tsx
    • UKConstituencySelector.tsx
    • UKLocalAuthoritySelector.tsx
  • Update UKGeographicOptions.tsx to use new selector components
  • Wire up local authority options in PopulationScopeView.tsx
  • Add local authority prefix handling in geographyUtils.ts
  • Add test fixtures and unit tests

Test Plan

  • Verify local authority option appears in UK geography selection
  • Verify local authority dropdown is searchable with ~360 options
  • Verify selecting a local authority creates correct geography object
  • Run existing tests to ensure no regressions

🤖 Generated with Claude Code

@vercel
Copy link

vercel bot commented Dec 16, 2025

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

Project Deployment Review Updated (UTC)
policyengine-app-v2 Ready Ready Preview, Comment Dec 16, 2025 10:06am
policyengine-calculator Ready Ready Preview, Comment Dec 16, 2025 10:06am
policyengine-website Ready Ready Preview, Comment Dec 16, 2025 10:06am

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.

Update app v2 to enable UK local authorities

2 participants