Skip to content

Commit

Permalink
Renamed flow from laDigitalAssister to mdBenefitsFlow
Browse files Browse the repository at this point in the history
  • Loading branch information
vrajmohan committed Jan 10, 2024
1 parent d9f116c commit 7547650
Show file tree
Hide file tree
Showing 148 changed files with 46 additions and 47 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public boolean transmissionExists(Submission submission, TransmissionType transm
}

public Transmission createTransmissionRecord(Submission submission, TransmissionType transmissionType) {
if (!submission.getFlow().equals("laDigitalAssister")) {
throw new RuntimeException("Non-laDigitalAssister object passed to createTransmissionRecord");
if (!submission.getFlow().equals("mdBenefitsFlow")) {
throw new RuntimeException("Non-mdBenefitsFlow object passed to createTransmissionRecord");
}

var transmission = Transmission.fromSubmission(submission);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

@Data
@EqualsAndHashCode(callSuper = false)
public class LaDigitalAssister extends FlowInputs {
public class MdBenefitsFlow extends FlowInputs {

MultipartFile uploadDocuments;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class DocUploadDisabledInterceptor implements HandlerInterceptor {

private final Locale locale;

private final String redirectUrl = "/flow/laDigitalAssister/confirmation";
private final String redirectUrl = "/flow/mdBenefitsFlow/confirmation";
public static List<String> docUploadScreens = List.of(
"docUploadIntro", "docUploadSignpost", "docUploadInstructions",
"docUploadRecommendations", "docUpload", "docUploadType", "docUploadReview",
Expand All @@ -47,7 +47,7 @@ public boolean preHandle(HttpServletRequest request, HttpServletResponse respons
try {
var parsedUrl = new AntPathMatcher().extractUriTemplateVariables(PATH_FORMAT, request.getRequestURI());
FlashMap outputFlashMap = RequestContextUtils.getOutputFlashMap(request); // use this to populate messages
if (!parsedUrl.get("flow").equals("laDigitalAssister")){
if (!parsedUrl.get("flow").equals("mdBenefitsFlow")){
return true;
}
if (docUploadScreens.contains(parsedUrl.get("screen"))){
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ sftp:
environment-path: 'prod'
form-flow:
lock-after-submitted:
- flow: laDigitalAssister
- flow: mdBenefitsFlow
redirect: confirmation
disabled-flows:
- flow: laDigitalAssister
- flow: mdBenefitsFlow
staticRedirectPage: /
pdf:
path: 'src/main/resources/pdfs/'
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/flows-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ flow:
nextScreens:
- name: finalConfirmation
---
name: laDigitalAssister
name: mdBenefitsFlow
flow:
parish:
nextScreens:
Expand Down Expand Up @@ -574,4 +574,4 @@ subflows:
entryScreen: householdIncomeByJob
iterationStartScreen: householdIncomeWho
reviewScreen: householdIncomeList
deleteConfirmationScreen: householdIncomeDeleteConfirmation
deleteConfirmationScreen: householdIncomeDeleteConfirmation
7 changes: 3 additions & 4 deletions src/main/resources/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ index.upload-description=Apply for SNAP benefits in about 20 minutes or less.
index.upload-documents-primary=Apply Now <i class="button__icon icon-arrow_forward"></i>
index.recommended-documents=Recommended documents:
index.website-description=This website is an authorized application assistance tool by the State of Louisiana.
index.upload-documents-primary.link=/flow/laDigitalAssister/parish?lang=en
index.upload-documents-primary.link=/flow/mdBenefitsFlow/parish?lang=en
index.safe-and-secure=Safe and secure
index.upload-documents-second=Aplique ya<i class="button__icon icon-arrow_forward"></i>
index.upload-documents-second.link=/flow/laDigitalAssister/parish?lang=es
index.upload-documents-second.link=/flow/mdBenefitsFlow/parish?lang=es
index.upload-documents-third=\u0110\u0103ng k\u00FD ngay<i class="button__icon icon-arrow_forward"></i>
index.upload-documents-third.link=/flow/laDigitalAssister/parish?lang=vi
index.upload-documents-third.link=/flow/mdBenefitsFlow/parish?lang=vi
index.apply-for-snap=Apply for SNAP
index.apply-for-snap.paragraph=<b>SNAP</b> (Supplemental Nutrition Assistance Program) helps you and your family get the food they need. You'll get an EBT card that you can use like a debit card to buy groceries at most stores and farmer's markets.
index.assistance-question=Looking for assistance with other programs?
Expand Down Expand Up @@ -1253,4 +1253,3 @@ doc-upload-recommendations.types-of-files-content=We accept .jpeg, .jpg, .png, .
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

6 changes: 3 additions & 3 deletions src/main/resources/messages_es.properties
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ index.upload-description=Suba documentos utilizando su tel
index.upload-documents-primary=Aplique ya<i class="button__icon icon-arrow_forward"></i>
index.recommended-documents=Documentos recomendados:
index.website-description=Este sitio web es una herramienta de asistencia para solicitudes autorizada por el estado de Luisiana.
index.upload-documents-primary.link=/flow/laDigitalAssister/parish?lang=es
index.upload-documents-primary.link=/flow/mdBenefitsFlow/parish?lang=es
index.safe-and-secure=Seguro y protegido
index.upload-documents-second=Apply Now <i class="button__icon icon-arrow_forward"></i>
index.upload-documents-second.link=/flow/laDigitalAssister/parish?lang=en
index.upload-documents-second.link=/flow/mdBenefitsFlow/parish?lang=en
index.upload-documents-third=\u0110\u0103ng k\u00FD ngay<i class="button__icon icon-arrow_forward"></i>
index.upload-documents-third.link=/flow/laDigitalAssister/parish?lang=vi
index.upload-documents-third.link=/flow/mdBenefitsFlow/parish?lang=vi
index.this-tool=Esta herramienta puede utilizarse para subir los siguientes documentos:
index.identity=<b>Comprobante de identidad</b>
index.identity-examples=Una identificación emitida por el gobierno, como una licencia de conducir, un documento de identidad, un pasaporte o una tarjeta de Seguro Social.
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/messages_vi.properties
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ index.upload-description=T\u1ea3i t
index.upload-documents-primary=\u0110\u0103ng k\u00FD ngay<i class="button__icon icon-arrow_forward"></i>
index.recommended-documents=Tài li\u1ec7u \u0111\u1ec1 ngh\u1ecb:
index.website-description=Trang web này là m\u1ed9t công c\u1ee5 h\u1ed7 tr\u1ee3 làm \u0111\u01a1n \u0111\u01b0\u1ee3c phép c\u1ee7a Ti\u1ec3u Bang Louisiana.
index.upload-documents-primary.link=/flow/laDigitalAssister/parish?lang=vi
index.upload-documents-primary.link=/flow/mdBenefitsFlow/parish?lang=vi
index.safe-and-secure=An toàn và b\u1ea3o m\u1eadt
index.upload-documents-second=Apply Now <i class="button__icon icon-arrow_forward"></i>
index.upload-documents-second.link=/flow/laDigitalAssister/parish?lang=en
index.upload-documents-second.link=/flow/mdBenefitsFlow/parish?lang=en
index.upload-documents-third=Aplique ya<i class="button__icon icon-arrow_forward"></i>
index.upload-documents-third.link=/flow/laDigitalAssister/parish?lang=es
index.upload-documents-third.link=/flow/mdBenefitsFlow/parish?lang=es
index.this-tool=Công c\u1ee5 t\u1ea3i lên tài li\u1ec7u này có th\u1ec3 \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng cho:
index.identity=<b>Gi\u1ea5y t\u1edd tùy thân</b>
index.identity-examples=Gi\u1ea5y t\u1edd tùy thân có hình do chính ph\u1ee7 c\u1ea5p nh\u01b0 gi\u1ea5y phép lái xe, th\u1ebb c\u0103n c\u01b0\u1edbc, h\u1ed9 chi\u1ebfu ho\u1eb7c th\u1ebb An Sinh Xã H\u1ed9i.
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/pdf-map.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
flow: laDigitalAssister
flow: mdBenefitsFlow
pdf: /pdfs/la_application_for_assistance.pdf
inputFields:
# submission field name --> PDF field name
Expand Down
8 changes: 4 additions & 4 deletions src/main/resources/templates/fragments/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
th:text="#{footer.privacy}"></a>
<th:block th:if="${#arrays.contains(@environment.getActiveProfiles(), 'demo') || #arrays.contains(@environment.getActiveProfiles(), 'dev')}">
<br/>Download links (demo-only):
<a class="link--subtle" target="_blank" rel="noopener noreferrer" th:if="${submission != null}" th:href="'/download-csv/laDigitalAssister/pg/' + ${submission.getId()}">Parent Guardian Summary CSV</a> |
<a class="link--subtle" target="_blank" rel="noopener noreferrer" th:if="${submission != null}" th:href="'/download-csv/laDigitalAssister/rel/' + ${submission.getId()}">Relationship Summary CSV</a> |
<a class="link--subtle" target="_blank" rel="noopener noreferrer" th:if="${submission != null}" th:href="'/download-csv/laDigitalAssister/student/' + ${submission.getId()}">Student Summary CSV</a> |
<a class="link--subtle" target="_blank" rel="noopener noreferrer" th:if="${submission != null}" th:href="'/download/laDigitalAssister/' + ${submission.getId()}">Applicant PDF</a>
<a class="link--subtle" target="_blank" rel="noopener noreferrer" th:if="${submission != null}" th:href="'/download-csv/mdBenefitsFlow/pg/' + ${submission.getId()}">Parent Guardian Summary CSV</a> |
<a class="link--subtle" target="_blank" rel="noopener noreferrer" th:if="${submission != null}" th:href="'/download-csv/mdBenefitsFlow/rel/' + ${submission.getId()}">Relationship Summary CSV</a> |
<a class="link--subtle" target="_blank" rel="noopener noreferrer" th:if="${submission != null}" th:href="'/download-csv/mdBenefitsFlow/student/' + ${submission.getId()}">Student Summary CSV</a> |
<a class="link--subtle" target="_blank" rel="noopener noreferrer" th:if="${submission != null}" th:href="'/download/mdBenefitsFlow/' + ${submission.getId()}">Applicant PDF</a>
</th:block>
<div class="footer-logos spacing-below-15">
<div class="spacing-above-15">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@
</div>

<div class="subflow-list__item-actions">
<a th:href="'/flow/laDigitalAssister/householdEmployerName/' + ${incomeItem.uuid} + '/edit'"
<a th:href="'/flow/mdBenefitsFlow/householdEmployerName/' + ${incomeItem.uuid} + '/edit'"
th:text="#{income-list.edit-job}"
class="subflow-edit"
th:id="'edit-iteration-' + ${incomeItem.uuid}">
</a>
<a th:href="'/flow/laDigitalAssister/income/' + ${incomeItem.uuid} + '/deleteConfirmation'"
<a th:href="'/flow/mdBenefitsFlow/income/' + ${incomeItem.uuid} + '/deleteConfirmation'"
th:text="#{income-list.delete-job}"
class="subflow-delete"
th:id="'delete-iteration-' + ${incomeItem.uuid}"></a>
Expand Down Expand Up @@ -91,7 +91,7 @@
</ul>

<a class="button button--add-job" th:text="#{income-list.add-job}"
th:href="'/flow/laDigitalAssister/' + ${iterationStartScreen}"></a>
th:href="'/flow/mdBenefitsFlow/' + ${iterationStartScreen}"></a>

</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@
<span th:text="${householdMember.householdMemberLastName}"></span>
</span>
<span class="text--small spacing-below-0">
<a th:href="'/flow/laDigitalAssister/' + ${iterationStartScreen} + '/' + ${householdMember.uuid} + '/edit'"
<a th:href="'/flow/mdBenefitsFlow/' + ${iterationStartScreen} + '/' + ${householdMember.uuid} + '/edit'"
th:text="#{general.edit}"
th:id="'edit-iteration-' + ${householdMember.uuid}"
class="subflow-edit"></a>
<a th:href="'/flow/laDigitalAssister/household/' + ${householdMember.uuid} + '/deleteConfirmation'"
<a th:href="'/flow/mdBenefitsFlow/household/' + ${householdMember.uuid} + '/deleteConfirmation'"
th:text="#{general.delete}"
class="subflow-delete"
th:id="'delete-iteration-' + ${householdMember.uuid}"></a>
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/templates/ssnFAQs.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
</th:block>
</th:block>
<div class="form-card__footer">
<a class="button button--primary" th:href="'/flow/laDigitalAssister/ssnForm'"
<a class="button button--primary" th:href="'/flow/mdBenefitsFlow/ssnForm'"
th:text="#{general.back}"></a>
</div>
</main>
Expand All @@ -68,4 +68,4 @@
</div>
<th:block th:replace="~{fragments/footer :: footer}"/>
</body>
</html>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ private Submission queueInvalidSubmission() {
OffsetDateTime submittedDate = OffsetDateTime.now().minusHours(2L);
Submission submission = Submission.builder()
.submittedAt(submittedDate)
.flow("laDigitalAssister")
.flow("mdBenefitsFlow")
.urlParams(new HashMap<>())
.inputData(new HashMap<>()).build();
submissionRepository.save(submission);
Expand All @@ -141,7 +141,7 @@ private Submission queueSubmissionWithDocs() {
OffsetDateTime submittedDate = OffsetDateTime.now().minusHours(2L);
var submission = Submission.builder()
.submittedAt(submittedDate)
.flow("laDigitalAssister")
.flow("mdBenefitsFlow")
.urlParams(new HashMap<>())
.inputData(new HashMap<>(Map.of(
"firstName", "Other",
Expand Down Expand Up @@ -178,7 +178,7 @@ private Submission queueSubmissionWithoutDocs() {
OffsetDateTime submittedDate = OffsetDateTime.now().minusHours(2L);
Submission submission = Submission.builder()
.submittedAt(submittedDate)
.flow("laDigitalAssister")
.flow("mdBenefitsFlow")
.urlParams(new HashMap<>())
.inputData(Map.of(
"firstName", "Tester",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
import static org.awaitility.Awaitility.await;

@Slf4j
public class LaDigitalAssisterFlowJourneyTest extends AbstractBasePageTest {
public class MdBenefitsFlowJourneyTest extends AbstractBasePageTest {

protected static final String RANGE_ERROR_MESSAGE = "Make sure to provide a value between 1 and 100.";

@Test
void chooseProgramsFlow() {
testPage.navigateToFlowScreen("laDigitalAssister/choosePrograms");
testPage.navigateToFlowScreen("mdBenefitsFlow/choosePrograms");
testPage.clickContinue();

assert (testPage.hasErrorText(message("error.missing-general")));
Expand All @@ -32,7 +32,7 @@ void chooseProgramsFlow() {

@Test
void whosApplyingFlow() {
testPage.navigateToFlowScreen("laDigitalAssister/whosApplying");
testPage.navigateToFlowScreen("mdBenefitsFlow/whosApplying");
testPage.clickContinue();

assert (testPage.hasErrorText(message("error.missing-general")));
Expand All @@ -44,7 +44,7 @@ void whosApplyingFlow() {

@Test
void personalInformationFlow() {
testPage.navigateToFlowScreen("laDigitalAssister/personalInfo");
testPage.navigateToFlowScreen("mdBenefitsFlow/personalInfo");
testPage.clickContinue();

testPage.enter("birthMonth", "01");
Expand Down Expand Up @@ -178,7 +178,7 @@ void otherIncomeFlow() {
void socialSecurityFlow() {
loadUserPersonalData();

testPage.navigateToFlowScreen("laDigitalAssister/ssnForm");
testPage.navigateToFlowScreen("mdBenefitsFlow/ssnForm");

assertThat(testPage.getTitle()).isEqualTo(message("ssn-form.title"));

Expand All @@ -197,7 +197,7 @@ void expeditedSnapFlow() {
loadUserPersonalData();
loadAddressData();
loadContactData();
testPage.navigateToFlowScreen("laDigitalAssister/reviewContactInfo");
testPage.navigateToFlowScreen("mdBenefitsFlow/reviewContactInfo");
assertThat(testPage.getTitle()).isEqualTo(message("review-contact-info.title"));
testPage.clickLink(message("review-contact-info.submit-incomplete"));
// Expedited Snap Start
Expand Down Expand Up @@ -242,7 +242,7 @@ void raceEthnicityFlow() {
testPage.clickElementById("translate-button");
testPage.clickLink("Tiếng Việt");

testPage.navigateToFlowScreen("laDigitalAssister/ethnicitySelection");
testPage.navigateToFlowScreen("mdBenefitsFlow/ethnicitySelection");
// the titles don't seem to render correctly in test
// assertThat(testPage.getTitle()).isEqualTo("L\u1ef1a ch\u1ecdn dân t\u1ed9c");

Expand Down Expand Up @@ -318,7 +318,7 @@ void raceEthnicityFlow() {

@Test
void docUploadSkipTest() {
testPage.navigateToFlowScreen("laDigitalAssister/docUploadIntro");
testPage.navigateToFlowScreen("mdBenefitsFlow/docUploadIntro");
assertThat(testPage.getTitle()).isEqualTo(message("doc-upload-intro.title"));
testPage.clickButton(message("doc-upload-intro.skip"));
assertThat(testPage.getTitle()).isEqualTo(message("confirmation.title"));
Expand Down Expand Up @@ -920,7 +920,7 @@ void fullDigitalAssisterFlow() {


void loadUserPersonalData() {
testPage.navigateToFlowScreen("laDigitalAssister/personalInfo");
testPage.navigateToFlowScreen("mdBenefitsFlow/personalInfo");

testPage.enter("firstName", "test");
testPage.enter("lastName", "test2");
Expand All @@ -932,7 +932,7 @@ void loadUserPersonalData() {
}

void loadHouseHoldData(String firstName, String lastName, String month, String day, String year) {
testPage.navigateToFlowScreen("laDigitalAssister/householdInfo");
testPage.navigateToFlowScreen("mdBenefitsFlow/householdInfo");
testPage.enter("householdMemberFirstName", firstName);
testPage.enter("householdMemberLastName", lastName);
testPage.enter("householdMemberBirthMonth", month);
Expand All @@ -944,7 +944,7 @@ void loadHouseHoldData(String firstName, String lastName, String month, String d
}

void loadAddressData() {
testPage.navigateToFlowScreen("laDigitalAssister/homeAddress");
testPage.navigateToFlowScreen("mdBenefitsFlow/homeAddress");
testPage.enter("homeAddressStreetAddress1", "123 Test St");
testPage.enter("homeAddressCity", "Testland");
testPage.enter("homeAddressZipCode", "12345");
Expand All @@ -955,15 +955,15 @@ void loadAddressData() {
}

void loadContactData() {
testPage.navigateToFlowScreen("laDigitalAssister/contactInfo");
testPage.navigateToFlowScreen("mdBenefitsFlow/contactInfo");
testPage.enter("emailAddress", "test@gmail.com");
testPage.enter("phoneNumber", "555-456-7891");
testPage.clickElementById("remindersMethod-By email-label");
testPage.clickContinue();
}

void preloadIncomeScreen() {
testPage.navigateToFlowScreen("laDigitalAssister/incomeSignPost");
testPage.navigateToFlowScreen("mdBenefitsFlow/incomeSignPost");
testPage.clickContinue();

testPage.clickButton("Yes");
Expand Down

0 comments on commit 7547650

Please sign in to comment.