This repo contains the Claim Status Tracker app, which helps Californians better understand what’s happening with their unemployment claim and benefits.
9
stars
4
forks
source link
Rearchitect ProgramType logic to be more robust #521
At the moment the knowledge of ProgramTypes lives in two places:
utils/getClaimDetails.ts - who needs to know which to display, a simple list
getScenarioContent - who needs it to determine BYE scenarios: UI, PUA, DUA, the federal extentions, or other.
DRY up this code to avoid duplication of the lists of ProgramTypes. We want to avoid narrowly tailoring, as well, in case we later need to analyze Program Types in another way.
Acceptance Criteria
[ ] There is one canonical list of Program Types
[ ] Claim Details can show the Program Type
[ ] Scenario Content can determine BYE
[ ] Program types can be analyzed another way, if needed for future scenarios, without a large refactor
Description
At the moment the knowledge of ProgramTypes lives in two places:
utils/getClaimDetails.ts
- who needs to know which to display, a simple listgetScenarioContent
- who needs it to determine BYE scenarios: UI, PUA, DUA, the federal extentions, or other.DRY up this code to avoid duplication of the lists of ProgramTypes. We want to avoid narrowly tailoring, as well, in case we later need to analyze Program Types in another way.
Acceptance Criteria