Skip to content

Commit

Permalink
Expands the electronic manifesting decision tree. It now includes que…
Browse files Browse the repository at this point in the history
…stions that range from:

    Are you registered?
    to...
    Is the manifest Ready for you to sign?
  • Loading branch information
dpgraham4401 committed Feb 28, 2024
1 parent c8fcb9a commit 97095bb
Show file tree
Hide file tree
Showing 2 changed files with 168 additions and 11 deletions.
178 changes: 168 additions & 10 deletions public/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,182 @@
"type": "BoolNode",
"data": {
"label": "Are you registered?",
"yesId": "registered",
"noId": "unregistered"
"yesId": "doYouHaveSiteId",
"noId": "goRegister"
}
},
{
"id": "registered",
"id": "goRegister",
"data": {
"label": "Yes",
"children": [
]
"label": "Time to Register in RCRAInfo!"
}
},
{
"id": "unregistered",
"id": "doYouHaveSiteId",
"type": "BoolNode",
"data": {
"label": "Do you have your site's EPA ID?",
"yesId": "doHavePreparer",
"noId": "areYouVSQG"
}
},
{
"id": "areYouVSQG",
"type": "BoolNode",
"data": {
"label": "Are you a VSQG?",
"yesId": "iAmVSQG",
"noId": "iAmNotVSQG"
}
},
{
"id": "iAmVSQG",
"data": {
"label": "You may not have an EPA ID. You may still use the Hybrid manifest option."
}
},
{
"id": "iAmNotVSQG",
"data": {
"label": "SQGs and LQGs must have an EPA ID. Find your EPA ID number."
}
},
{
"id": "doHavePreparer",
"type": "BoolNode",
"data": {
"label": "Do you have a preparer level access?",
"yesId": "isManifestDrafted",
"noId": "requestPreparerAccess"
}
},
{
"id": "requestPreparerAccess",
"data": {
"label": "Request preparer access."
}
},
{
"id": "isManifestDrafted",
"type": "BoolNode",
"data": {
"label": "Is the manifest drafted?",
"yesId": "areYouTSDF",
"noId": "draftManifest"
}
},
{
"id": "draftManifest",
"data": {
"label": "Draft the manifest."
}
},
{
"id": "areYouTSDF",
"type": "BoolNode",
"data": {
"label": "Are you a TSDF?",
"yesId": "isManifestScheduled",
"noId": "areYouGenerator"
}
},
{
"id": "isManifestScheduled",
"type": "BoolNode",
"data": {
"label": "Is the manifest scheduled?",
"yesId": "isManifestReadyForSign",
"noId": "scheduleManifest"
}
},
{
"id": "scheduleManifest",
"data": {
"label": "Only the TSDF can set the manifest 'Scheduled'."
}
},
{
"id": "isManifestReadyForSign",
"type": "BoolNode",
"data": {
"label": "Is the manifest ready for signature?",
"yesId": "signAndSubmit",
"noId": "ensureManifestReady"
}
},
{
"id": "ensureManifestReady",
"data": {
"label": "Ensure all handler have signed and is ready for TSDF signature."
}
},
{
"id": "signAndSubmit",
"data": {
"label": "Sign the manifest and submit for invoicing."
}
},
{
"id": "test",
"data": {
"label": "Test"
}
},
{
"id": "areYouGenerator",
"type": "BoolNode",
"data": {
"label": "Are you the listed Generator?",
"yesId": "isManifestScheduledNonTsdf",
"noId": "areYouInitialTransporter"
}
},
{
"id": "isManifestScheduledNonTsdf",
"type": "BoolNode",
"data": {
"label": "Is the manifest scheduled?",
"yesId": "readyForGeneratorSign",
"noId": "haveTsdfSetToScheduled"
}
},
{
"id": "areYouInitialTransporter",
"type": "BoolNode",
"data": {
"label": "Are you the initial transporter?",
"yesId": "haveGeneratorSign",
"noId": "signaturesAreSubsequent"
}
},
{
"id": "scheduleManifestNonTsdf",
"data": {
"label": "Once a manifest is set to scheduled, it's ready for the Generator's signature, then the initial transporters."
}
},
{
"id": "signaturesAreSubsequent",
"data": {
"label": "Signatures cannot be performed out of order. make sure all handler before you have signed."
}
},
{
"id": "readyForGeneratorSign",
"data": {
"label": "The manifest is ready for the Generator's signature."
}
},
{
"id": "haveTsdfSetToScheduled",
"data": {
"label": "The TSDF needs to set the manifest to 'Scheduled' before the Generator can sign."
}
},
{
"id": "haveGeneratorSign",
"data": {
"label": "no",
"children": [
]
"label": "The manifest is ready for the initial transporter's signature."
}
}
]
Expand Down
1 change: 0 additions & 1 deletion src/hooks/useFetchConfig/useFetchConfig.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ describe('useFetchConfig', async () => {
render(<TestComponent />);
expect(screen.queryByText(/data/i)).not.toBeInTheDocument();
await waitFor(() => screen.queryByText(/data/i));
screen.debug();
expect(screen.queryByText('node 1 child 2')).toBeInTheDocument();
expect(screen.queryByText('node 1 child 3')).toBeInTheDocument();
});
Expand Down

0 comments on commit 97095bb

Please sign in to comment.