Skip to content

Commit

Permalink
Make the expedited SNAP exposed in the minimal flow.
Browse files Browse the repository at this point in the history
  • Loading branch information
bseeger committed May 3, 2024
1 parent a8e87c0 commit a64e277
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 38 deletions.
3 changes: 3 additions & 0 deletions src/main/java/org/mdbenefits/app/inputs/MdBenefitsFlow.java
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,9 @@ public class MdBenefitsFlow extends FlowInputs {
// Expedited Snap Start
private String isApplyingForExpeditedSnap;

// Minimum App flow
private String usedMinimumApplicationFlow;

// Household Money on Hand
private String householdMoneyOnHandLessThan100;

Expand Down
7 changes: 3 additions & 4 deletions src/main/resources/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -725,13 +725,12 @@ ethnicity-selection.option2=No
ethnicity-selection.other=I prefer not to answer

minimum-app-confirmation.title=Minimum App Confirmation
minimum-app-confirmation.header=You're about to sign and submit your minimum application on the next screens.
minimum-app-confirmation.subheader=Would you like to answer more questions to see if you can get benefits sooner?
minimum-app-confirmation.header=You're about to sign and submit your minimum application on the next screens.<br><br>Would you like to answer more questions to see if you can get benefits <i>sooner</i>?
minimum-app-confirmation.q1=Why are you asking me this?
minimum-app-confirmation.expand1=When you apply to Supplemental Nutrition Program (SNAP), the law says you can choose to submit an application after only adding your name, address and signature. For Temporary Cash Assistance (TCA), you also need to add your birth date. This is a minimum application.<b><p>Submitting a minimum application may make getting benefits take <u>longer</u>.</p><p>You will still need to answer more questions later.</p><p>We encourage answering more questions now to get benefits sooner.</p></b>
minimum-app-confirmation.p1=<b>We wanted to let you know that when you submit now:</b><ul class='list--bulleted'><li>You will <b>still need to answer more questions later</b></li><li>It may take <b>longer to get other benefits, like cash assistance (TCA, TDAP)</b></li></ul><p>We encourage answering more questions now to get benefits sooner.</p>
minimum-app-confirmation.yes=Yes, I'll answer questions
minimum-app-confirmation.no=No, I'll submit
minimum-app-confirmation.answer-more-questions=Yes, I'll answer questions
minimum-app-confirmation.submit-app=No, I'll submit

legal-stuff.title=Legal Stuff
legal-stuff.header=The legal stuff
Expand Down
34 changes: 23 additions & 11 deletions src/main/resources/templates/mdBenefitsFlow/contactInfoReview.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,30 @@
<p th:text="${T(org.mdbenefits.app.utils.SubmissionUtilities).getFormattedBirthdate(fieldData)}"></p>
</div>
<b th:text="#{review-contact-info.mailing-address}"></b>
<div class="spacing-above-10" th:if="${fieldData.getOrDefault('useSuggestedAddress', 'false').equals('false')}">
<th:block th:text="${fieldData.mailingAddressStreetAddress1}"></th:block><br>
<div th:if="${fieldData.mailingAddressStreetAddress2 != null && !fieldData.mailingAddressStreetAddress2.trim().isEmpty()}">
<th:block th:text="${fieldData.mailingAddressStreetAddress2}"></th:block><br>
<div class="spacing-above-10"
th:if="${fieldData.getOrDefault('useSuggestedAddress', 'false').equals('false')}">
<th:block th:text="${fieldData.mailingAddressStreetAddress1}"></th:block>
<br>
<div
th:if="${fieldData.mailingAddressStreetAddress2 != null && !fieldData.mailingAddressStreetAddress2.trim().isEmpty()}">
<th:block th:text="${fieldData.mailingAddressStreetAddress2}"></th:block>
<br>
</div>
<th:block th:text="${fieldData.mailingAddressCity} + ', ' + ${fieldData.mailingAddressState}"></th:block><br>
<th:block th:text="${fieldData.mailingAddressZipCode}"></th:block><br>
<th:block
th:text="${fieldData.mailingAddressCity} + ', ' + ${fieldData.mailingAddressState}"></th:block>
<br>
<th:block th:text="${fieldData.mailingAddressZipCode}"></th:block>
<br>
</div>
<div class="spacing-above-15" th:if="${fieldData.getOrDefault('useSuggestedAddress', 'false').equals('true')}">
<th:block th:text="${fieldData.mailingAddressStreetAddress1_validated}"></th:block><br>
<th:block th:text="${fieldData.mailingAddressCity_validated} + ', ' + ${fieldData.mailingAddressState_validated}"></th:block><br>
<th:block th:text="${fieldData.mailingAddressZipCode_validated}"></th:block><br>
<div class="spacing-above-15"
th:if="${fieldData.getOrDefault('useSuggestedAddress', 'false').equals('true')}">
<th:block th:text="${fieldData.mailingAddressStreetAddress1_validated}"></th:block>
<br>
<th:block
th:text="${fieldData.mailingAddressCity_validated} + ', ' + ${fieldData.mailingAddressState_validated}"></th:block>
<br>
<th:block th:text="${fieldData.mailingAddressZipCode_validated}"></th:block>
<br>
</div>
<hr class="spacing-below-25 spacing-above-25">
<div class="spacing-above-15">
Expand Down Expand Up @@ -82,7 +94,7 @@
<a class="button button--secondary" th:text="#{review-contact-info.edit}"
th:href="'/flow/' + ${flow} + '/personalInfo'"></a>
<div><a th:text="#{review-contact-info.submit-incomplete}"
th:href="'/flow/' + ${flow} + '/minimumAppSubmission'"></a></div>
th:href="'/flow/' + ${flow} + '/expeditedSnapStart'"></a></div>
</div>
</th:block>
</th:block>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,41 @@
<div class="grid">
<div th:replace="~{fragments/goBack :: goBackLink}"></div>
<main id="content" role="main" class="form-card spacing-above-35">
<div class="grid__item spacing-above-35">
<th:block th:replace="~{fragments/icons :: nextSteps}"></th:block>
<th:block
th:replace="~{fragments/cardHeader :: cardHeader(header=#{minimum-app-confirmation.header})}"/>
<h2 th:text="#{minimum-app-confirmation.subheader}"></h2>
</div>
<div class="form-card__content">
<th:block th:replace="~{fragments/honeycrisp/accordion :: accordion(
buttonLabel=#{minimum-app-confirmation.q1},
content=~{::minimumAppContent})}">
<th:block th:ref="minimumAppContent">
<p th:utext="#{minimum-app-confirmation.expand1}"></p>
<th:block th:replace="~{fragments/icons :: nextSteps}"></th:block>
<th:block
th:replace="~{fragments/cardHeader :: cardHeader(header=#{minimum-app-confirmation.header})}"/>
<th:block
th:replace="~{fragments/form :: form(action=${formAction}, content=~{::content})}">
<th:block th:ref="content">
<div class="form-card__content">
<th:block th:replace="~{fragments/honeycrisp/accordion :: accordion(
buttonLabel=#{minimum-app-confirmation.q1},
content=~{::minimumAppContent})}">
<th:block th:ref="minimumAppContent">
<p th:utext="#{minimum-app-confirmation.expand1}"></p>
</th:block>
</th:block>
<div class="boxed-content spacing-below-60 notice-container">
<p th:utext="#{minimum-app-confirmation.p1}"></p>
</div>
</div>
<div class="form-card__footer">
<div class="spacing-below-25">
<a class="button button--primary"
th:text="#{minimum-app-confirmation.answer-more-questions}"
th:href="'/flow/' + ${flow} + '/householdSignPost'"></a>
</div>
<button
th:name="usedMinimumApplicationFlow"
th:aria-describedby="header"
type="submit"
value="true"
th:text="#{minimum-app-confirmation.submit-app}"
class="button button--secondary">
</button>
</div>
</th:block>
<div class="boxed-content spacing-below-60 notice-container">
<p th:utext="#{minimum-app-confirmation.p1}"></p>
</div>
</div>
<div class="form-card__footer">
<a class="button button--secondary" th:text="#{minimum-app-confirmation.yes}"
th:href="'/flow/' + ${flow} + '/householdSignPost'"></a>
<th:block th:replace="~{fragments/continueButton :: continue(text=#{minimum-app-confirmation.no})}" />
</div>
</th:block>
</main>
</div>
</section>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,14 +192,16 @@ void minimumAppFlow() {
assertThat(testPage.getTitle()).isEqualTo(message("review-contact-info.title"));

testPage.clickLink(message("review-contact-info.submit-incomplete"));
assertThat(testPage.getTitle()).isEqualTo(message("expedited-snap-start.title"));
testPage.clickLink(message("expedited-snap-start.no"));

assertThat(testPage.getTitle()).isEqualTo(message("minimum-app-confirmation.title"));
testPage.clickLink(message("minimum-app-confirmation.yes"));
testPage.clickLink(message("minimum-app-confirmation.answer-more-questions"));

assertThat(testPage.getTitle()).isEqualTo(message("household-signpost.title"));
testPage.goBack();

testPage.clickLink(message("minimum-app-confirmation.no"));
testPage.clickButton(message("minimum-app-confirmation.submit-app"));
assertThat(testPage.getTitle()).isEqualTo(message("legal-stuff.title"));
}

Expand Down

0 comments on commit a64e277

Please sign in to comment.