Skip to content

Commit

Permalink
Add SNAP/OHEP info screens to flow start (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
spokenbird authored Mar 12, 2024
1 parent 61b8338 commit b4d20b5
Show file tree
Hide file tree
Showing 10 changed files with 254 additions and 167 deletions.
11 changes: 3 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,9 @@ dependencies {
implementation group: 'ch.qos.logback.contrib', name: 'logback-jackson', version: '0.1.5'
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.16.2'
implementation 'com.opencsv:opencsv:5.9'

if (profile == 'dev' || useLocalLibrary == 'true') {
implementation fileTree(dir: "$rootDir/../form-flow/build/libs", include: '*.jar')
println "📦 Using local library"
} else {
implementation "org.codeforamerica.platform:form-flow:${formFlowLibraryVersion}"
println "📚Using form flow library ${formFlowLibraryVersion}"
}

implementation "org.codeforamerica.platform:form-flow:${formFlowLibraryVersion}"
println "📚Using form flow library ${formFlowLibraryVersion}"

implementation 'com.amazonaws:aws-encryption-sdk-java:3.0.0'
implementation 'org.bouncycastle:bcpg-jdk15on:1.70'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package org.mdbenefits.app.submission.conditions;

import formflow.library.config.submission.Condition;
import formflow.library.data.Submission;
import java.util.ArrayList;
import org.springframework.stereotype.Component;

@Component
public class ProgramsIncludeSnapOrTCA implements Condition {

@Override
public Boolean run(Submission submission) {
var inputData = submission.getInputData();
if (inputData.containsKey("programs[]")) {
var programArr = (ArrayList<String>) submission.getInputData().get("programs[]");
return programArr.contains("SNAP") || programArr.contains("TCA");
}
return false;
}
}
11 changes: 11 additions & 0 deletions src/main/resources/flows-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@ flow:
nextScreens:
- name: choosePrograms
choosePrograms:
nextScreens:
- name: expeditedSnapNotice
expeditedSnapNotice:
condition: ProgramsIncludeSnap
nextScreens:
- name: ohepNotice
ohepNotice:
condition: ProgramsIncludeSnapOrTCA
nextScreens:
- name: howThisWorks
howThisWorks:
nextScreens:
- name: signPost
signPost:
Expand Down
75 changes: 43 additions & 32 deletions src/main/resources/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ general.none-of-the-above=None of the above
general.good-news=Good news!
general.i-dont-know=I don't know
general.not-interested=No, I\u2019m not interested
general.ok-thanks=Ok, thanks
error.error=Error
error.uh-oh=Uh oh!
error.we-are-sorry=We're sorry, but something went wrong. Please try again later.
Expand Down Expand Up @@ -193,28 +194,6 @@ final-confirmation.additional-comments-note=Note: We\u2019re unable to share any
final-confirmation.feedback-submit-feedback=Submit Feedback
final-confirmation.feedback-submitted=Thanks for your feedback! It will help improve this website for future applicants.
final-confirmation.answer-feedback-question=Make sure you provide a rating

# How this works
how-this-works.title=How this works
how-this-works.header=How this works
how-this-works.subtext=This application form should take less than <b>20 minutes</b> to complete.
how-this-works.we-will-ask=We will ask you about
how-this-works.we-will-ask-l1=Personal information
how-this-works.we-will-ask-l2=People who live with you
how-this-works.we-will-ask-l3=Income
how-this-works.we-will-ask-l4=Expenses
how-this-works.submitting-an-incomplete-app=Submitting an incomplete application (SNAP only)
how-this-works.submitting-an-incomplete-app-l1=If you are applying for SNAP, you will have the choice to submit an incomplete application with only your name, address, and signature.
how-this-works.submitting-an-incomplete-app-l2=By choosing to submit an incomplete application, you may experience longer processing time and more communication with DCFS.
how-this-works.adding-documents=Adding documents
how-this-works.adding-documents-l1=At the end of this application, you will have the option to add documents, like photo ID, pay stubs, or medical bills.
how-this-works.adding-documents-l2=You can use your phone to take photos of paper documents or select a file from your device.
how-this-works.adding-documents-l3=You can always return to our homepage to add documents later, too.
how-this-works.after-you-submit=After you submit
how-this-works.after-you-submit-l1=Your application submission date is the earliest date your benefits can begin. If you submit the application after 4:30 pm Central Time or on a weekend or holiday, your application date will be the next business day.
how-this-works.after-you-submit-l2=<b>Some people also need to create a HiRE account, or have an active HiRE account with the Louisiana Workforce Commission in order to receive SNAP benefits.</b> We'll let you know if we think anyone on this application may also need to create a HiRE account.
how-this-works.after-you-submit-l3=Most programs on this application require an interview after you submit. There will be a phone number to call after you submit your application to schedule an interview.
how-this-works.your-information-is-secure=<b>Your information is secure and will be handled in accordance with our privacy policy.</b>
# Timeout Notice
timeout-notice.title=Timeout notice
timeout-notice.header=After an hour of inactivity, your data will be deleted
Expand Down Expand Up @@ -273,16 +252,48 @@ choose-programs.rca.short-desc=Get help for refugees
choose-programs.rca.desc=<br>Gives cash to people who are refugees until they get jobs and are able to be financially independent.
choose-programs.other=I want to add another program not shown here
choose-programs.other.desc=<br>If you believe there are other benefits you can get or a caseworker at an office believes you can get benefits from another program, choose this option.
# Expedited SNAP
expedited-snap.title=Expedited notice
expedited-snap.header=If you are eligible, you can get expedited food assistance (SNAP) in seven days or less
expedited-snap.what-is=What is expedited SNAP?
expedited-snap.what-is.content=Expedited SNAP means you can get your food benefits more quickly. People who qualify for expedited SNAP can get their EBT card delivered in 7 days or less.
expedited-snap.who-qualifies=Who qualifies for expedited SNAP?
expedited-snap.who-qualifies.content=You may qualify for expedited SNAP if any of these situations are true:
expedited-snap.who-qualifies.li1=Your monthly income is less than $150 and you have $100 or less in personal savings, bank accounts, or cash on hand.
expedited-snap.who-qualifies.li2=The amount you pay for rent or mortgage, and utilities is more than your income and savings.
expedited-snap.who-qualifies.li3=You are a migrant or seasonal farmworker who is not working right now and has $100 or less in personal savings, bank accounts, or cash on hand.
# Expedited SNAP Notice
expedited-snap-notice.title=Expedited SNAP notice
expedited-snap-notice.header=We see you want help with food.
expedited-snap-notice.no-income=If you have no income or very low income, we check to see if you can get benefits in 7 days or less.
expedited-snap-notice.expedited-snap=This is called expedited SNAP.
# OHEP Notice
ohep-notice.title=OHEP Notice
ohep-notice.header=When you apply for SNAP or TCA, we will check to see if you can get help with heating, electric and gas bills.
ohep-notice.ohep=How does this work?
ohep-notice.ohep-l1=A recent law change says that people who are able to get SNAP or TCA benefits are also eligible for help through the Office of Home Energy Programs (OHEP).
ohep-notice.ohep-l2=These programs help with heating, electricity and gas bills. Maryland will pay the company that sends you bills directly.
# How this works
how-this-works.title=How this works
how-this-works.header=How applying works
how-this-works.subtext=Applying usually takes <b>20 minutes or less.</b>
how-this-works.we-will-ask=<b>We will ask you about:</b>
how-this-works.we-will-ask-l1=Who you are
how-this-works.we-will-ask-l2=People you live with
how-this-works.we-will-ask-l3=Money you earn or get
how-this-works.we-will-ask-l4=Your costs to live
how-this-works.we-will-ask-l5=Property and assets you own
how-this-works.we-will-ask-l6=Documents to help us understand who you are and what your situation is
how-this-works.who-can=Who can apply for benefits
how-this-works.who-can-l1=U.S. citizens can apply to get benefits. Many permanent residents (also called green card holders), refugees and asylees may still be eligible for benefits. They can apply.
how-this-works.who-can-l2=People who are not U.S. citizens or lawful residents cannot apply to get benefits but their income will impact what benefits you or others in your household can get. You will be asked to add non-U.S. citizens and their income later.
how-this-works.after=What happens after you submit
how-this-works.after-l1=After you submit, your application is assigned to a county worker who will reach out to you about next steps.
how-this-works.after-l2=For some benefits you will need to do an interview with a county worker.
how-this-works.how-soon=How soon will you get benefits
how-this-works.how-soon-l1=If you're able to get benefits, the date you submit your application is when your benefits start.
how-this-works.how-soon-l2=You will get them in 30 days or less after you submit your application.
how-this-works.how-soon-l3=For food benefits, if you have no income or very low income, we check to see if you can get benefits in 7 days or less.
how-this-works.minimum-application=If you need and want to submit a minimum application
how-this-works.minimum-application-l1=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.
how-this-works.minimum-application-l2=<b>Submitting a minimum application may make getting benefits take <u>longer</u>.</b>
how-this-works.minimum-application-l3=<b>You will still need to answer more questions later.</b>
how-this-works.minimum-application-l4=<b>We encourage answering more questions now to get benefits sooner.</b>
how-this-works.add-documents=How to add documents
how-this-works.add-documents-l1=When applying, you will need to show documents that prove things like money you have and spent.
how-this-works.add-documents-l2=You will be able to add documents, like pay stubs and pay checks later.
how-this-works.add-documents-l3=You can use your phone to take photos of paper documents or add a file from your device.
how-this-works.add-documents-l4=You can also email your documents to: {0}
# Signpost
signpost.step=Step 1 of 6
signpost.title=Signpost
Expand Down
4 changes: 4 additions & 0 deletions src/main/resources/static/assets/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -491,3 +491,7 @@ li li {
.form-group-spacing-half .form-group {
margin-bottom: 4rem;
}

.expedited-snap-notice header {
margin-bottom: 2.5rem;
}
Original file line number Diff line number Diff line change
@@ -1,57 +1,27 @@
<!DOCTYPE html>
<html th:lang="${#locale.language}">
<head th:replace="~{fragments/head :: head(title=#{expedited-snap.title})}"></head>
<html th:lang="${#locale.language}" xmlns:th="http://www.thymeleaf.org">
<head th:replace="~{fragments/head :: head(title=#{expedited-snap-notice.title})}"></head>
<body>
<div class="page-wrapper">
<div th:replace="~{fragments/toolbar :: toolbar}"></div>
<section class="slab">
<div class="grid">
<div th:replace="~{fragments/goBack :: goBackLink}"></div>
<main id="content" role="main" class="form-card spacing-above-35">
<th:block th:replace="~{fragments/icons :: groceries}"></th:block>
<main id="content" role="main" class="form-card spacing-above-35 expedited-snap-notice">
<th:block th:replace="~{fragments/icons :: choosePrograms}"></th:block>
<th:block
th:replace="~{fragments/cardHeader :: cardHeader(header=#{expedited-snap.header})}"/>
<th:block th:replace="~{'fragments/honeycrisp/reveal' :: reveal(
controlId='r1',
linkLabel=~{::revealLabel1},
content=~{::revealContent1},
forceShowContent='true')}">
<th:block th:ref="revealLabel1">
<i class="icon-">&#xE862;</i>
<span th:text="#{expedited-snap.what-is}"></span>
</th:block>
<th:block th:ref="revealContent1">
<p th:text="#{expedited-snap.what-is.content}"></p>
</th:block>
</th:block>
<th:block th:replace="~{'fragments/honeycrisp/reveal' :: reveal(
controlId='r2',
linkLabel=~{::revealLabel2},
content=~{::revealContent2},
forceShowContent='true')}">
<th:block th:ref="revealLabel2">
<i class="icon-">&#xE862;</i>
<span th:text="#{expedited-snap.who-qualifies}"></span>
</th:block>
<th:block th:ref="revealContent2">
<p th:text="#{expedited-snap.who-qualifies}"></p>
<ul class="list--bulleted">
<li th:utext="#{expedited-snap.who-qualifies.li1}"></li>
<li th:utext="#{expedited-snap.who-qualifies.li2}"></li>
<li th:utext="#{expedited-snap.who-qualifies.li3}"></li>
</ul>
</th:block>
</th:block>

<div class="form-card__footer spacing-below-60">
th:replace="~{fragments/cardHeader :: cardHeader(header=#{expedited-snap-notice.header})}"/>
<div class="form-card__content">
<p class="h2" th:text="#{expedited-snap-notice.no-income}"></p>
<p class="h2 spacing-below-95" th:text="#{expedited-snap-notice.expedited-snap}"></p>
</div>
<div class="form-card__footer">
<th:block th:replace="~{fragments/continueButton :: continue}"/>
</div>
</th:block>
</th:block>
</main>
</div>
</section>
</div>
<th:block th:replace="~{fragments/footer :: footer}"/>
</body>
</html>
</html>
Loading

0 comments on commit b4d20b5

Please sign in to comment.