From aac74363e6154f49f5d522ea45570824d2ea6ad6 Mon Sep 17 00:00:00 2001
From: Lauren Kemperman <117678574+lkemperman-cfa@users.noreply.github.com>
Date: Tue, 26 Sep 2023 07:46:02 -0600
Subject: [PATCH] scaffolds for household info flow and script to generate
scaffold templates (#314)
---
scripts/create-templates.sh | 14 +++
scripts/scaffold.html | 29 ++++++
src/main/resources/flows-config.yaml | 90 +++++++++++++++++++
.../laDigitalAssister/additionalParent.html | 29 ++++++
.../laDigitalAssister/childCareWho.html | 29 ++++++
.../childrenWithParentOutsideHome.html | 29 ++++++
.../criminalJusticeSituations.html | 29 ++++++
.../laDigitalAssister/custodyOfChild.html | 29 ++++++
.../fosterCareUntilAdult.html | 29 ++++++
.../laDigitalAssister/fosterSystem.html | 29 ++++++
.../laDigitalAssister/householdCount.html | 29 ++++++
.../immunizationSchoolProof.html | 29 ++++++
.../minorNotInSchoolNotUpToDate.html | 29 ++++++
.../moreInfoPersonalSituations.html | 29 ++++++
.../laDigitalAssister/outOfStateBenefits.html | 29 ++++++
.../laDigitalAssister/parentsList.html | 29 ++++++
.../laDigitalAssister/payForMeals.html | 29 ++++++
.../laDigitalAssister/personalSituations.html | 29 ++++++
.../laDigitalAssister/pregnancy.html | 29 ++++++
.../laDigitalAssister/rentedRoom.html | 29 ++++++
.../requestChildcareHelp.html | 29 ++++++
.../templates/laDigitalAssister/school.html | 29 ++++++
.../laDigitalAssister/seasonalFarmWorker.html | 29 ++++++
.../laDigitalAssister/sensitiveQuestions.html | 29 ++++++
.../sensitiveQuestionsCriminalJustice.html | 29 ++++++
.../laDigitalAssister/specialSituations.html | 29 ++++++
.../templates/laDigitalAssister/ssnFaqs.html | 29 ++++++
.../templates/laDigitalAssister/ssnForm.html | 29 ++++++
.../laDigitalAssister/usCitizen.html | 29 ++++++
.../laDigitalAssister/usVeteran.html | 29 ++++++
.../victimOfDomesticViolence.html | 29 ++++++
.../whichPersonalSituations.html | 29 ++++++
.../laDigitalAssister/whoCustody.html | 29 ++++++
33 files changed, 1003 insertions(+)
create mode 100644 scripts/create-templates.sh
create mode 100644 scripts/scaffold.html
create mode 100644 src/main/resources/templates/laDigitalAssister/additionalParent.html
create mode 100644 src/main/resources/templates/laDigitalAssister/childCareWho.html
create mode 100644 src/main/resources/templates/laDigitalAssister/childrenWithParentOutsideHome.html
create mode 100644 src/main/resources/templates/laDigitalAssister/criminalJusticeSituations.html
create mode 100644 src/main/resources/templates/laDigitalAssister/custodyOfChild.html
create mode 100644 src/main/resources/templates/laDigitalAssister/fosterCareUntilAdult.html
create mode 100644 src/main/resources/templates/laDigitalAssister/fosterSystem.html
create mode 100644 src/main/resources/templates/laDigitalAssister/householdCount.html
create mode 100644 src/main/resources/templates/laDigitalAssister/immunizationSchoolProof.html
create mode 100644 src/main/resources/templates/laDigitalAssister/minorNotInSchoolNotUpToDate.html
create mode 100644 src/main/resources/templates/laDigitalAssister/moreInfoPersonalSituations.html
create mode 100644 src/main/resources/templates/laDigitalAssister/outOfStateBenefits.html
create mode 100644 src/main/resources/templates/laDigitalAssister/parentsList.html
create mode 100644 src/main/resources/templates/laDigitalAssister/payForMeals.html
create mode 100644 src/main/resources/templates/laDigitalAssister/personalSituations.html
create mode 100644 src/main/resources/templates/laDigitalAssister/pregnancy.html
create mode 100644 src/main/resources/templates/laDigitalAssister/rentedRoom.html
create mode 100644 src/main/resources/templates/laDigitalAssister/requestChildcareHelp.html
create mode 100644 src/main/resources/templates/laDigitalAssister/school.html
create mode 100644 src/main/resources/templates/laDigitalAssister/seasonalFarmWorker.html
create mode 100644 src/main/resources/templates/laDigitalAssister/sensitiveQuestions.html
create mode 100644 src/main/resources/templates/laDigitalAssister/sensitiveQuestionsCriminalJustice.html
create mode 100644 src/main/resources/templates/laDigitalAssister/specialSituations.html
create mode 100644 src/main/resources/templates/laDigitalAssister/ssnFaqs.html
create mode 100644 src/main/resources/templates/laDigitalAssister/ssnForm.html
create mode 100644 src/main/resources/templates/laDigitalAssister/usCitizen.html
create mode 100644 src/main/resources/templates/laDigitalAssister/usVeteran.html
create mode 100644 src/main/resources/templates/laDigitalAssister/victimOfDomesticViolence.html
create mode 100644 src/main/resources/templates/laDigitalAssister/whichPersonalSituations.html
create mode 100644 src/main/resources/templates/laDigitalAssister/whoCustody.html
diff --git a/scripts/create-templates.sh b/scripts/create-templates.sh
new file mode 100644
index 000000000..85cb13f72
--- /dev/null
+++ b/scripts/create-templates.sh
@@ -0,0 +1,14 @@
+#brew install yq
+flowName="${1:-laDigitalAssister}"
+flowIndex="${2:-1}"
+templates=`ls -1 src/main/resources/templates/laDigitalAssister/*.html | cut -d'/' -f6-`
+screens=( $(yq '[select(document_index == '"$flowIndex"') | .flow.*.nextScreens[0].name] | flatten' src/main/resources/flows-config.yaml) )
+screenNames=( $( printf '%s\n' ${screens[@]} | egrep -v '^(---|-|null|\[*\])' ) )
+for i in "${!screenNames[@]}"; do
+ if grep -q "${screenNames[$i]}.html" <<< "${templates[*]}"; then
+ echo "found ${screenNames[$i]} in templates"
+ else
+ echo "${screenNames[$i]} not in templates; creating one"
+ cat scripts/scaffold.html >> "src/main/resources/templates/${flowName}/${screenNames[$i]}.html"
+ fi
+done
diff --git a/scripts/scaffold.html b/scripts/scaffold.html
new file mode 100644
index 000000000..066329814
--- /dev/null
+++ b/scripts/scaffold.html
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/flows-config.yaml b/src/main/resources/flows-config.yaml
index 4a9f8b78f..3cfb0a154 100644
--- a/src/main/resources/flows-config.yaml
+++ b/src/main/resources/flows-config.yaml
@@ -85,6 +85,96 @@ flow:
nextScreens:
- name: householdInfo
householdInfo:
+ nextScreens:
+ - name: ssnForm
+ ssnForm:
+ nextScreens:
+ - name: ssnFaqs
+ ssnFaqs:
+ nextScreens:
+ - name: specialSituations
+ specialSituations:
+ nextScreens:
+ - name: school
+ school:
+ nextScreens:
+ - name: pregnancy
+ pregnancy:
+ nextScreens:
+ - name: outOfStateBenefits
+ outOfStateBenefits:
+ nextScreens:
+ - name: seasonalFarmWorker
+ seasonFarmWorker:
+ nextScreens:
+ - name: usCitizen
+ usCitizen:
+ nextScreens:
+ - name: householdCount
+ householdCount:
+ nextScreens:
+ - name: usVeteran
+ usVeteran:
+ nextScreens:
+ - name: fosterSystem
+ fosterSystem:
+ nextScreens:
+ - name: fosterCareUntilAdult
+ fosterCareUntilAdult:
+ nextScreens:
+ - name: rentedRoom
+ rentedRoom:
+ nextScreens:
+ - name: payForMeals
+ payForMeals:
+ nextScreens:
+ - name: minorNotInSchoolNotUpToDate
+ minorNotInSchoolNotUpToDate:
+ nextScreens:
+ - name: immunizationSchoolProof
+ immunizationSchoolProof:
+ nextScreens:
+ - name: requestChildcareHelp
+ requestChildcareHelp:
+ nextScreens:
+ - name: childCareWho
+ childCareWho:
+ nextScreens:
+ - name: childrenWithParentOutsideHome
+ childrenWithParentOutsideHome:
+ nextScreens:
+ - name: additionalParent
+ additionalParent:
+ nextScreens:
+ - name: custodyOfChild
+ custodyOfChild:
+ nextScreens:
+ - name: whoCustody
+ whoCustody:
+ nextScreens:
+ - name: parentsList
+ parentsList:
+ nextScreens:
+ - name: sensitiveQuestions
+ sensitiveQuestions:
+ nextScreens:
+ - name: personalSituations
+ personalSituations:
+ nextScreens:
+ - name: whichPersonalSituations
+ whichPersonalSituations:
+ nextScreens:
+ - name: moreInfoPersonalSituations
+ moreInfoPersonalSituations:
+ nextScreens:
+ - name: victimOfDomesticViolence
+ victimOfDomesticViolence:
+ nextScreens:
+ - name: sensitiveQuestionsCriminalJustice
+ sensitiveQuestionsCriminalJustice:
+ nextScreens:
+ - name: criminalJusticeSituations
+ criminalJusticeSituations:
nextScreens: null
subflows:
diff --git a/src/main/resources/templates/laDigitalAssister/additionalParent.html b/src/main/resources/templates/laDigitalAssister/additionalParent.html
new file mode 100644
index 000000000..066329814
--- /dev/null
+++ b/src/main/resources/templates/laDigitalAssister/additionalParent.html
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/laDigitalAssister/childCareWho.html b/src/main/resources/templates/laDigitalAssister/childCareWho.html
new file mode 100644
index 000000000..066329814
--- /dev/null
+++ b/src/main/resources/templates/laDigitalAssister/childCareWho.html
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/laDigitalAssister/childrenWithParentOutsideHome.html b/src/main/resources/templates/laDigitalAssister/childrenWithParentOutsideHome.html
new file mode 100644
index 000000000..066329814
--- /dev/null
+++ b/src/main/resources/templates/laDigitalAssister/childrenWithParentOutsideHome.html
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/laDigitalAssister/criminalJusticeSituations.html b/src/main/resources/templates/laDigitalAssister/criminalJusticeSituations.html
new file mode 100644
index 000000000..066329814
--- /dev/null
+++ b/src/main/resources/templates/laDigitalAssister/criminalJusticeSituations.html
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/laDigitalAssister/custodyOfChild.html b/src/main/resources/templates/laDigitalAssister/custodyOfChild.html
new file mode 100644
index 000000000..066329814
--- /dev/null
+++ b/src/main/resources/templates/laDigitalAssister/custodyOfChild.html
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/laDigitalAssister/fosterCareUntilAdult.html b/src/main/resources/templates/laDigitalAssister/fosterCareUntilAdult.html
new file mode 100644
index 000000000..066329814
--- /dev/null
+++ b/src/main/resources/templates/laDigitalAssister/fosterCareUntilAdult.html
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/laDigitalAssister/fosterSystem.html b/src/main/resources/templates/laDigitalAssister/fosterSystem.html
new file mode 100644
index 000000000..066329814
--- /dev/null
+++ b/src/main/resources/templates/laDigitalAssister/fosterSystem.html
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/laDigitalAssister/householdCount.html b/src/main/resources/templates/laDigitalAssister/householdCount.html
new file mode 100644
index 000000000..066329814
--- /dev/null
+++ b/src/main/resources/templates/laDigitalAssister/householdCount.html
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/laDigitalAssister/immunizationSchoolProof.html b/src/main/resources/templates/laDigitalAssister/immunizationSchoolProof.html
new file mode 100644
index 000000000..066329814
--- /dev/null
+++ b/src/main/resources/templates/laDigitalAssister/immunizationSchoolProof.html
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/laDigitalAssister/minorNotInSchoolNotUpToDate.html b/src/main/resources/templates/laDigitalAssister/minorNotInSchoolNotUpToDate.html
new file mode 100644
index 000000000..066329814
--- /dev/null
+++ b/src/main/resources/templates/laDigitalAssister/minorNotInSchoolNotUpToDate.html
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/laDigitalAssister/moreInfoPersonalSituations.html b/src/main/resources/templates/laDigitalAssister/moreInfoPersonalSituations.html
new file mode 100644
index 000000000..066329814
--- /dev/null
+++ b/src/main/resources/templates/laDigitalAssister/moreInfoPersonalSituations.html
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/laDigitalAssister/outOfStateBenefits.html b/src/main/resources/templates/laDigitalAssister/outOfStateBenefits.html
new file mode 100644
index 000000000..066329814
--- /dev/null
+++ b/src/main/resources/templates/laDigitalAssister/outOfStateBenefits.html
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/laDigitalAssister/parentsList.html b/src/main/resources/templates/laDigitalAssister/parentsList.html
new file mode 100644
index 000000000..066329814
--- /dev/null
+++ b/src/main/resources/templates/laDigitalAssister/parentsList.html
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/laDigitalAssister/payForMeals.html b/src/main/resources/templates/laDigitalAssister/payForMeals.html
new file mode 100644
index 000000000..066329814
--- /dev/null
+++ b/src/main/resources/templates/laDigitalAssister/payForMeals.html
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/laDigitalAssister/personalSituations.html b/src/main/resources/templates/laDigitalAssister/personalSituations.html
new file mode 100644
index 000000000..066329814
--- /dev/null
+++ b/src/main/resources/templates/laDigitalAssister/personalSituations.html
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/laDigitalAssister/pregnancy.html b/src/main/resources/templates/laDigitalAssister/pregnancy.html
new file mode 100644
index 000000000..066329814
--- /dev/null
+++ b/src/main/resources/templates/laDigitalAssister/pregnancy.html
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/laDigitalAssister/rentedRoom.html b/src/main/resources/templates/laDigitalAssister/rentedRoom.html
new file mode 100644
index 000000000..066329814
--- /dev/null
+++ b/src/main/resources/templates/laDigitalAssister/rentedRoom.html
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/laDigitalAssister/requestChildcareHelp.html b/src/main/resources/templates/laDigitalAssister/requestChildcareHelp.html
new file mode 100644
index 000000000..066329814
--- /dev/null
+++ b/src/main/resources/templates/laDigitalAssister/requestChildcareHelp.html
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/laDigitalAssister/school.html b/src/main/resources/templates/laDigitalAssister/school.html
new file mode 100644
index 000000000..066329814
--- /dev/null
+++ b/src/main/resources/templates/laDigitalAssister/school.html
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/laDigitalAssister/seasonalFarmWorker.html b/src/main/resources/templates/laDigitalAssister/seasonalFarmWorker.html
new file mode 100644
index 000000000..066329814
--- /dev/null
+++ b/src/main/resources/templates/laDigitalAssister/seasonalFarmWorker.html
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/laDigitalAssister/sensitiveQuestions.html b/src/main/resources/templates/laDigitalAssister/sensitiveQuestions.html
new file mode 100644
index 000000000..066329814
--- /dev/null
+++ b/src/main/resources/templates/laDigitalAssister/sensitiveQuestions.html
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/laDigitalAssister/sensitiveQuestionsCriminalJustice.html b/src/main/resources/templates/laDigitalAssister/sensitiveQuestionsCriminalJustice.html
new file mode 100644
index 000000000..066329814
--- /dev/null
+++ b/src/main/resources/templates/laDigitalAssister/sensitiveQuestionsCriminalJustice.html
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/laDigitalAssister/specialSituations.html b/src/main/resources/templates/laDigitalAssister/specialSituations.html
new file mode 100644
index 000000000..066329814
--- /dev/null
+++ b/src/main/resources/templates/laDigitalAssister/specialSituations.html
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/laDigitalAssister/ssnFaqs.html b/src/main/resources/templates/laDigitalAssister/ssnFaqs.html
new file mode 100644
index 000000000..066329814
--- /dev/null
+++ b/src/main/resources/templates/laDigitalAssister/ssnFaqs.html
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/laDigitalAssister/ssnForm.html b/src/main/resources/templates/laDigitalAssister/ssnForm.html
new file mode 100644
index 000000000..066329814
--- /dev/null
+++ b/src/main/resources/templates/laDigitalAssister/ssnForm.html
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/laDigitalAssister/usCitizen.html b/src/main/resources/templates/laDigitalAssister/usCitizen.html
new file mode 100644
index 000000000..066329814
--- /dev/null
+++ b/src/main/resources/templates/laDigitalAssister/usCitizen.html
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/laDigitalAssister/usVeteran.html b/src/main/resources/templates/laDigitalAssister/usVeteran.html
new file mode 100644
index 000000000..066329814
--- /dev/null
+++ b/src/main/resources/templates/laDigitalAssister/usVeteran.html
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/laDigitalAssister/victimOfDomesticViolence.html b/src/main/resources/templates/laDigitalAssister/victimOfDomesticViolence.html
new file mode 100644
index 000000000..066329814
--- /dev/null
+++ b/src/main/resources/templates/laDigitalAssister/victimOfDomesticViolence.html
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/laDigitalAssister/whichPersonalSituations.html b/src/main/resources/templates/laDigitalAssister/whichPersonalSituations.html
new file mode 100644
index 000000000..066329814
--- /dev/null
+++ b/src/main/resources/templates/laDigitalAssister/whichPersonalSituations.html
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/laDigitalAssister/whoCustody.html b/src/main/resources/templates/laDigitalAssister/whoCustody.html
new file mode 100644
index 000000000..066329814
--- /dev/null
+++ b/src/main/resources/templates/laDigitalAssister/whoCustody.html
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file