Skip to content
This repository was archived by the owner on Jul 6, 2026. It is now read-only.

Made "County name" a searchable component on US site#2679

Closed
v-lerie wants to merge 2 commits into
PolicyEngine:mainfrom
v-lerie:issue2604
Closed

Made "County name" a searchable component on US site#2679
v-lerie wants to merge 2 commits into
PolicyEngine:mainfrom
v-lerie:issue2604

Conversation

@v-lerie

@v-lerie v-lerie commented Jul 17, 2025

Copy link
Copy Markdown
Collaborator

Description

Fixes #2604

Screenshots

image

@vercel

vercel Bot commented Jul 17, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
policyengine-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 17, 2025 2:09am

@anth-volk anth-volk left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for your work on this @v-lerie, just requested some minor changes.


export default function VariableSearch(props) {
const { metadata, callback } = props;
const countryId = window.location.pathname.split("/")[1];

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

issue, minor: If possible at this point in the code, use the useCountryId hook, which you'll find used in many other components, or pull the country ID from the metadata that you have passed down (I believe it's metadata.countryId).

value:
countryId === "us"
? "input.geography.countyName"
: "input.household.countyName",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

issue, blocking: We don't want to push input.household.countyName outside of the US context, we just don't want to modify it at all if it's present for some reason

If we add it the way you do here, it'll show up on our UK and Canadian sites, where it's actually not an option.

@github-project-automation github-project-automation Bot moved this from Todo to PR: Review Requested in policyengine-app Jul 24, 2025
@MaxGhenis

Copy link
Copy Markdown
Contributor

Thank you for this contribution. Closing as part of the policyengine-app (v1) wind-down: policyengine.org is now served by policyengine-app-v2, and this repository is being archived, so changes merged here would not reach the live site.

If this is still relevant, please consider re-opening it against policyengine-app-v2 — we'd welcome it there. Apologies that this sat open through the migration.

@MaxGhenis MaxGhenis closed this Jul 6, 2026
@github-project-automation github-project-automation Bot moved this from PR: Review Requested to Closed in policyengine-app Jul 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

Make "County name" a searchable component

3 participants