Skip to content

Commit

Permalink
Add pages for choosing programs.
Browse files Browse the repository at this point in the history
This also tweaks the county setup to include the value of what the enum
represents, versus the name of the enum, which would be harder to look
up later.
Starts to outline the redirectToMDThink page, but that's a wip.
  • Loading branch information
bseeger committed Jan 30, 2024
1 parent 2920e67 commit 167c014
Show file tree
Hide file tree
Showing 19 changed files with 387 additions and 150 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package org.mdbenefits.app.data.enums;

import lombok.Getter;

@Getter
public enum ApplicationDescriptionType {

NEED_HELP_IN_OTHER_LANGUAGE("I need help in a language that isn’t English ((Español, 中文, Tiếng Việt)", "select-app.help-in-other-language"),
COLLEGE_STUDENT_IN_APP("I am a college student or have a student who will be on my aplication", "select-app.college-student-in-home"),
VETERAN_IN_APP("I am a veteran or have a veteran who will be on my application", "select-app.veteran-in-app"),
HELP_WITH_HEALTHCARE("I am applying for help with healthcare", "select-app.help-with-healthcare"),
AUTHORIZED_REP_FOR_SOMEONE("I am an authorized representative applying for someone else", "select-app.authorized-rep"),
OTHER("None of these are true for me", "select-app.other");

private final String value;
private final String labelSrc;

ApplicationDescriptionType(String value, String labelSrc) {
this.value = value;
this.labelSrc = labelSrc;
}
}
6 changes: 3 additions & 3 deletions src/main/java/org/mdbenefits/app/data/enums/Counties.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package org.mdbenefits.app.data.enums;

import lombok.Getter;

@Getter
public enum Counties {
ALLEGANY("Allegany County"),
ANNE_ARUNDEL("Anne Arundel County"),
Expand Down Expand Up @@ -32,7 +35,4 @@ public enum Counties {
this.displayName = displayName;
}

public String getDisplayName() {
return displayName;
}
}
30 changes: 30 additions & 0 deletions src/main/java/org/mdbenefits/app/data/enums/HelpNeededType.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package org.mdbenefits.app.data.enums;

import static org.mdbenefits.app.data.enums.ProgramType.SNAP;
import static org.mdbenefits.app.data.enums.ProgramType.TCA;
import static org.mdbenefits.app.data.enums.ProgramType.OHEP;
import static org.mdbenefits.app.data.enums.ProgramType.TDAP;
import static org.mdbenefits.app.data.enums.ProgramType.OTHER;

import lombok.Getter;

@Getter
public enum HelpNeededType {

FOOD("Help with food", "help-needed.food", SNAP),
CHILDREN("Help with money for children", "help-needed.children", TCA),
UTILITIES("Help with utilities", "help-needed.utilites", OHEP),
DISABILITY("Help for a disability", "help-needed.disability", TDAP),
NOT_SURE("I'm not sure", "help-needed.not-sure", OTHER);

private final String value;
private final String labelSrc;
private final ProgramType programType;

HelpNeededType(String value, String labelSrc, ProgramType programType) {
this.value = value;
this.labelSrc = labelSrc;
this.programType = programType;
}

}
23 changes: 23 additions & 0 deletions src/main/java/org/mdbenefits/app/data/enums/ProgramType.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package org.mdbenefits.app.data.enums;

import lombok.Getter;

@Getter
public enum ProgramType {

SNAP("choose-programs.snap", "choose-programs.snap.short-desc", "choose-programs.snap.desc"),
TCA("choose-programs.tca","choose-programs.tca.short-desc","choose-programs.tca.desc"),
OHEP("choose-programs.ohep", "choose-programs.ohep.short-desc", "choose-programs.ohep.desc"),
TDAP("choose-programs.tdap", "choose-programs.tdap.short-desc", "choose-programs.tdap.desc"),
OTHER("choose-programs.other", "", "choose-programs.other.desc");

private final String nameSrc;
private final String shortDescSrc;
private final String descSrc;

ProgramType(String nameSrc, String shortDescSrc, String descSrc) {
this.nameSrc = nameSrc;
this.shortDescSrc = shortDescSrc;
this.descSrc = descSrc;
}
}
11 changes: 7 additions & 4 deletions src/main/java/org/mdbenefits/app/inputs/MdBenefitsFlow.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@ public class MdBenefitsFlow extends FlowInputs {

MultipartFile uploadDocuments;

// selectApplication information
@NotEmpty(message = "{error.missing-general}")
private List<String> applicationInfoList;

@NotEmpty(message = "{error.missing-general}")
private String county;

// Language
private String languageRead;
private String languageSpeak;
private String needInterpreter;
// Choose help
@NotEmpty(message = "{error.missing-general}")
private List<String> helpNeededList;

// Choose programs
@NotEmpty(message = "{error.missing-general}")
Expand Down

This file was deleted.

5 changes: 0 additions & 5 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,6 @@ spring:
prod:
- prod
- form-flow-library
security:
user:
name: ${DEFAULT_USER}
password: ${DEFAULT_PASSWORD}
roles: USER
thymeleaf:
cache: false
template-resolver-order: 0
Expand Down
15 changes: 5 additions & 10 deletions src/main/resources/flows-config.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
name: mdBenefitsFlow
flow:
county:
selectApplication:
nextScreens:
- name: howThisWorks
howThisWorks:
- name: county
county:
nextScreens:
- name: timeoutNotice
timeoutNotice:
- name: selectHelpNeeded
selectHelpNeeded:
nextScreens:
- name: choosePrograms
choosePrograms:
nextScreens:
- name: expeditedSnapNotice
condition: ProgramsIncludeSnap
- name: signPost
expeditedSnapNotice:
nextScreens:
- name: signPost
signPost:
Expand Down
68 changes: 55 additions & 13 deletions src/main/resources/messages.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Overrides
general.inputs.continue=Continue
general.inputs.continue=Next
general.go-back=Go Back
general.back=Back
general.inputs.yes=Yes
Expand Down Expand Up @@ -38,9 +38,8 @@ demo.banner-text=This site is for example purposes only
index.title=Maryland Benefits Application
index.header=Welcome to the <em> new </em> Maryland Benefits application experience.
index.description=We're working to make applying for benefits easier. Thanks for your patience while we build the new site. You can still apply on the original site using the link below.
index.upload-documents-primary=Apply Now <i class="button__icon icon-arrow_forward"></i>
index.upload-documents-primary.link=/flow/mdBenefitsFlow/county?lang=en
index.safe-and-secure=Safe and secure
index.apply-now=Apply Now <i class="button__icon icon-arrow_forward"></i>
index.apply-now.link=/flow/mdBenefitsFlow/selectApplication?lang=en
index.apply-on-mdthink=Apply for benefits on <a target="_blank" rel="noreferrer noopener" href="https://mymdthink.maryland.gov/home/#/"/>MDTHINK</a>.</p>

footer.this-benefits-application-is=This benefits application is a service built by Code for America in partnership with the state of Maryland, on behalf of the people of Maryland.
Expand Down Expand Up @@ -247,15 +246,51 @@ language-preference.english=English
language-preference.spanish=Spanish
language-preference.vietnamese=Vietnamese

# Select Application
select-app.title=Select application
select-app.header=Welcome to the Maryland Benefits application experience <br> <br>Which of these are true for you?
select-app.subheader=We want to make sure we send you to the best application for you.
select-app.help-in-other-language=I need help in a language that isn't English (Espa\u00F1ol, \u4e2d\u6587, Ti\u1EBFng Vi\u1EC7t)
select-app.college-student-in-home=I am a college student or have a student who will be on my aplication
select-app.veteran-in-app=I am a veteran or have a veteran who will be on my application
select-app.help-with-healthcare=I am applying for help with healthcare
select-app.authorized-rep=I am an authorized representative applying for someone else
select-app.other=None of these are true for me

help-needed.title=Select help
help-needed.header=What kind of help would you like?
help-needed.subheader=This helps us show you which benefits programs exist for your needs.
help-needed.food=Help with food
help-needed.children=Help with money for children
help-needed.utilites=Help with utilities
help-needed.disability=Help for a disability
help-needed.not-sure=I'm not sure

select-app.snap-help=Money to buy food for you and your family
select-app.cash=Cash assistance (FITAP or KCSP)
select-app.cash-help=FITAP: Cash assistance to help people meet their basic needs until they are able to support themselves<br/><br/> KCSP: Cash assistance to relatives who are taking care of children who are unable to live with their parents.
select-app.note=<p><b>Note:</b> Your caseworker will determine whether you\u2019re eligible for one or both of the cash assistance programs.</p><p> If you\u2019re eligible for both, your caseworker will explain the differences so you can make a choice.</p>
select-app.snap-only=<p><b>Note:</b> Currently this application is only for SNAP benefits. If you're looking for assistance with other programs, visit <a target="_blank" rel="noreferrer noopener" href="https://sspweb.ie.dcfs.la.gov"/>LA CAF\u00C9</a> for more information.</p>


# Choose programs
choose-programs.title=Choose programs
choose-programs.header=What type of assistance would you like to apply for?
choose-programs.snap=Food (SNAP)
choose-programs.snap-help=Money to buy food for you and your family
choose-programs.cash=Cash assistance (FITAP or KCSP)
choose-programs.cash-help=FITAP: Cash assistance to help people meet their basic needs until they are able to support themselves<br/><br/> KCSP: Cash assistance to relatives who are taking care of children who are unable to live with their parents.
choose-programs.note=<p><b>Note:</b> Your caseworker will determine whether you\u2019re eligible for one or both of the cash assistance programs.</p><p> If you\u2019re eligible for both, your caseworker will explain the differences so you can make a choice.</p>
choose-programs.snap-only=<p><b>Note:</b> Currently this application is only for SNAP benefits. If you're looking for assistance with other programs, visit <a target="_blank" rel="noreferrer noopener" href="https://sspweb.ie.dcfs.la.gov"/>LA CAF\u00C9</a> for more information.</p>
choose-programs.header=Based on your last answer, here are some benefits you could try to get
choose-programs.check-all-that-apply=Please check all the programs you would like to apply for
choose-programs.snap=Supplemental Nutritional Assistance Program (SNAP)
choose-programs.snap.short-desc=Get help with food
choose-programs.snap.desc=<br>Helps people pay for groceries. Used to be known as food stamps. You get money added to an EBT card and can use it for food. <br><br>How much you can get depends on the number of people in your household and how much money you make.
choose-programs.tca=Temporary Cash Assistance (TCA)
choose-programs.tca.short-desc=Get help with money for children
choose-programs.tca.desc=<br>Gives cash and helps to pay for childcare or things you need to go to work. It's for individuals and families with children. <br><br>Getting benefits depends on you or your family member's age, income, or pregnancy status. This is Maryland's version of the federal program Temporary Assistance to Needy Family's (TANF)
choose-programs.ohep=Office of Home Energy Programs (OHEP)
choose-programs.ohep.short-desc=Office of Home Energy Programs (OHEP)
choose-programs.ohep.desc=<br>Helps with heating, electric and gas bills. Maryland will pay the company that sends you bills directly. How much they pay depends on the number of people in your household and how much money you and your household make.
choose-programs.tdap=Temporary Disability Assistance Program (TDAP)
choose-programs.tdap.short-desc=Get help for a disability
choose-programs.tdap.desc=<br>Gives cash to people who are low-income and living with short-term disability or who are waiting for federal disability help. People with children who are dependents cannot get this benefit.
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
Expand Down Expand Up @@ -1035,8 +1070,8 @@ already-started=Already started your application?
upload-requested-docs=Upload requested docs to DCFS

county.title=County
county.header=Which county do you live in right now?
county.subheader=Choose the county where you live.
county.header=Which county do you live in?
county.subheader=Choose one from the list below.
county.select=Select your county

confirmation-what-to-expect-after=What to expect after
Expand Down Expand Up @@ -1125,3 +1160,10 @@ doc-upload-signpost.how-to-submit=How to submit now or later
doc-upload.not-selected=You cannot go back and add documents at this time.
doc-upload.expired=The time window to upload documents has run out.
doc-upload.finalized=You have already uploaded documents

# MD Think redirect
redirect.mdthink.title=
redirect.mdthink.header=
redirect.mdthink.subheader=
redirect.mdthink.helpneeded.why=
redirect.mdthink.county.why=
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 @@ -464,3 +464,7 @@ button.button.button--secondary{
.main-footer {
position: static;
}

.form-question {
font-weight: unset
}
54 changes: 0 additions & 54 deletions src/main/resources/templates/fragments/inputs/checkboxMod.html

This file was deleted.

4 changes: 2 additions & 2 deletions src/main/resources/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<th:block th:replace="~{fragments/icons :: nextSteps}"></th:block>
<h1 class="spacing-below-15 spacing-above-0" th:utext="#{index.header}"></h1>
<p class="spacing-below-15" th:utext="#{index.description}"></p>
<a id="upload_docs_1" th:href="#{index.upload-documents-primary.link}"
th:utext="#{index.upload-documents-primary}"
<a id="upload_docs_1" th:href="#{index.apply-now.link}"
th:utext="#{index.apply-now}"
th:rel="keep-params"
class="button button--primary spacing-below-10"><i
class="button__icon icon-arrow_forward"></i></a>
Expand Down
23 changes: 0 additions & 23 deletions src/main/resources/templates/mdBenefitsFlow/applicantNotice.html

This file was deleted.

Loading

0 comments on commit 167c014

Please sign in to comment.