PolicyEngine / PolicyEngine/policyengine-app-v2
Hide congressional district selection in the report builder
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 1
- Forks
- 3
- Avg merge
- 1d 50m
- Merged PRs (30d)
- 39
Description
Summary
Hide the congressional district option when a user selects a geography for a new report, in both entry points:
- The "All households in a congressional district" radio option in
USGeographicOptions.tsx - The "Congressional districts" browse category in
PopulationBrowseModal.tsx
Constraint
Previously created congressional district-based reports must remain viewable. This is a creation-flow-only change — the report-output path is untouched, so existing district-scoped reports still load and render normally.
Approach
Mirror the pattern used to hide the US place selector (#1075): comment the blocks out with a re-enable note rather than deleting them, so restoring the option is a one-step revert.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the creation-flow sections named in USGeographicOptions.tsx and PopulationBrowseModal.tsx, then compare the hide-and-re-enable-note pattern from issue #1075. Done means both congressional district choices are hidden only when creating a new report, while existing district-based reports remain viewable and render normally.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 88/100