PolicyEngine / PolicyEngine/policyengine-app-v2
UI Freeze when selecting certain policy parameters( BLS → Consumer Price Index options ) in Report Builder
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 1
- Forks
- 3
- Avg merge
- 1d 50m
- Merged PRs (30d)
- 39
Description
Branch: feat/report-setup-reflow
Description
While using the Report Builder on the feat/report-setup-reflow branch, the UI freezes and becomes unresponsive when selecting Consumer Price Index (CPI) options under Bureau of Labor Statistics (BLS). The freeze lasts until the value editor screen finishes loading, during which time the user cannot interact with any part of the application.
The issue is more pronounced for certain options (notably CPI-U and CPI-W), which cause longer freezes before the screen finishes loading.
Steps to Reproduce
- Checkout branch
feat/report-setup-reflow - Navigate to
Report Builder - Under
Baseline/Reform Simulation->Policy->More Options - Choose
Create New Policy->Parameters - Navigate to
Bureau of Labor Statistics (BLS)->Consumer Price Index-> Choose any CPI option (e.g.,CPI-U,CPI-W, etc.)
Expected Behavior
- Selecting a CPI option should transition smoothly to the value editor screen.
- The UI should remain responsive or display a loading indicator while data is being fetched or computed.
Actual Behavior
- UI freezes and becomes unresponsive after selecting a CPI option.
- User cannot interact with any part of the application until the value editor screen finishes loading.
- CPI-U and CPI-W cause noticeably longer freezes compared to other options.
- Even after the editor screen loads, a lag persists until the parameter selector window is closed.
Possible Causes
- The issue may be caused by expensive computations or synchronous data fetching on the main thread.
- Adding async handling, loading states, or deferring heavy computation may improve UX.
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
Check out feat/report-setup-reflow and reproduce the freeze through Report Builder > Baseline/Reform Simulation > Policy > More Options > Create New Policy > Parameters > BLS > Consumer Price Index. Start by profiling the CPI-U and CPI-W transition and the value editor loading path to identify work that blocks interaction. Done means CPI selections transition without freezing the UI and the parameter selector remains responsive while loading.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100