Skip to content

Add parameter stats to rules section#1

Open
MaxGhenis wants to merge 1 commit intomasterfrom
feat/parameter-stats
Open

Add parameter stats to rules section#1
MaxGhenis wants to merge 1 commit intomasterfrom
feat/parameter-stats

Conversation

@MaxGhenis
Copy link
Contributor

Summary

  • Adds scripts/count_params.py that clones policyengine-us and policyengine-uk (sparse checkout, depth 1) and counts all leaf parameters across YAML files
  • Generates src/data/parameterStats.ts with US/UK/combined stats (30,763 current parameters, 52,217 historical values, 3,992 parameter files)
  • Displays parameter stats as a new row of StatCards above the program stats in the rules overview
  • Updates StatCard to format numbers with toLocaleString() for thousands separators

Test plan

  • Run bun run build to verify no TypeScript errors
  • Run bun dev and navigate to the rules section to verify the parameter stat cards render correctly with formatted numbers
  • Run python scripts/count_params.py to verify the script can clone repos and regenerate the data file
  • Verify the stat cards show: 30,763 current parameters, 52,217 historical values, 3,992 parameter files

🤖 Generated with Claude Code

Adds a Python script that clones policyengine-us and policyengine-uk
(sparse checkout, params only) to count leaf parameters, and displays
the combined stats (30,763 current parameters, 52,217 historical values,
3,992 parameter files) as StatCards in the rules overview.

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

vercel bot commented Feb 10, 2026

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

Project Deployment Actions Updated (UTC)
policyengine-model Ready Ready Preview, Comment Feb 10, 2026 2:07pm

Request Review

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