Skip to content

Conversation

v-lerie
Copy link
Collaborator

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

Description

Fixes #2604

Screenshots

image

Copy link

vercel bot commented Jul 17, 2025

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

Copy link
Collaborator

@anth-volk anth-volk left a comment

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
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
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: PR: Review Requested
Development

Successfully merging this pull request may close these issues.

Make "County name" a searchable component
2 participants