PolicyEngine / PolicyEngine/ccdf-calculator

Make reference-household limitations visible beside results and keep results in view

Open
#8 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

The calculator accepts exact ages, care schedules, provider details, and up to six children, but its instant estimate maps them onto a small set of reference households. Differences are explained below the results; the headline can still say “Eligible” even when key inputs were ignored. The exact API can also be unavailable or older than the grid model, so it does not always resolve the mismatch.

Suggested interface changes:

  • When entered inputs differ from the grid, put “Reference household qualifies” (or equivalent) beside the amount and show the material ignored inputs there.
  • Keep the approximation status visible in the headline instead of relying on a note further down the page.
  • Consider a sticky result summary or desktop inputs/results layout, so users can see results while changing inputs; preserve usable mobile flow.
  • Explain what users can do when an exact calculation is unavailable or cannot replace the estimate due to model-version lag.

Acceptance: changing a child's age, care hours, activity status, provider details, or child count away from supported grid values must not leave a result that appears to describe the exact entered household. Verify responsive layout and that warnings remain visible alongside the headline.

Sources: src/components/CalculatorResults.tsx, src/components/Calculator.tsx, src/lib/dataLookup.ts.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read src/components/CalculatorResults.tsx and src/components/Calculator.tsx first, then trace the grid and exact-lookup behavior in src/lib/dataLookup.ts. Verify that unsupported inputs visibly identify reference-household results beside the amount and that approximation warnings remain in the headline. Check desktop and mobile flows while changing child, care, provider, and household inputs.

Written by the indexing model from the issue text.

Assessment

Tech stack
nextjs, typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.