Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WasteLine form conditionals #582

Merged
merged 13 commits into from
Aug 30, 2023

Commits on Aug 29, 2023

  1. Configuration menu
    Copy the full SHA
    ef70658 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d1a6818 View commit details
    Browse the repository at this point in the history
  3. convert epaWaste to controlled field

    We need to be able to read the state of the field 'epaWaste' in order to
    conditionally display/disable other fields.
    dpgraham4401 committed Aug 29, 2023
    Configuration menu
    Copy the full SHA
    e12d59e View commit details
    Browse the repository at this point in the history
  4. add zod validation schemas for dotInformation field and add as nested…

    … field in WasteLine
    
    while the dotInformation is optional if the shipement is not dotHazardous, we've also added a refine method to the wasteline schema so if dotHazardous is true, both fields in dotInformation is required
    dpgraham4401 committed Aug 29, 2023
    Configuration menu
    Copy the full SHA
    88dc639 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4011800 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    72baa1a View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    3cd49ff View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    99c9ef3 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    93b6332 View commit details
    Browse the repository at this point in the history
  10. update logic for dotHazardous and epaWaste switches

    here's our logic, if dotHazardous then epaWaste can be true or false. However, if epaWaste is True then dotHazardous must be true
    dpgraham4401 committed Aug 29, 2023
    Configuration menu
    Copy the full SHA
    91e967f View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2023

  1. add callback function to toggle epaWaste and dotHazardous with unit test

    epaWaste and dotHazardous field depend on each other if epaWaste is true, then dotHazardous must be true. Converse, if dotHazardous is false, epaWaste must be false
    dpgraham4401 committed Aug 30, 2023
    Configuration menu
    Copy the full SHA
    911407b View commit details
    Browse the repository at this point in the history
  2. add integration test showing that when epaWaste is false, federal was…

    …te code select is disabled
    dpgraham4401 committed Aug 30, 2023
    Configuration menu
    Copy the full SHA
    3eb0645 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    319f5e9 View commit details
    Browse the repository at this point in the history