Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pages for intro to system and choosing programs #31

Merged
merged 7 commits into from
Feb 2, 2024

Conversation

bseeger
Copy link
Collaborator

@bseeger bseeger commented Jan 30, 2024

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.

This will redirect users to MDTHINK if they are outside of select counties, or if they have a need the website is not built for.

@vrajmohan - A side effect of this PR is that it will change all "Continue" buttons to "Next", thereby addressing the issue you were seeing with the doc uploader screens.

@bseeger bseeger marked this pull request as ready for review January 31, 2024 15:05
th:replace="~{fragments/inputs/checkboxInSet :: checkboxInSet(inputName='programs',value='SNAP', label=#{choose-programs.snap}, checkboxHelpText=#{choose-programs.snap-help})}"/>
<th:block th:each="programType : ${T(org.mdbenefits.app.data.enums.ProgramType).values()}">
<th:block th:if="${fieldData.get('helpNeeded[]').contains(programType.name())}">
<span th:with="shortDesc=${programType.getShortDescSrc().isBlank()} ? '' : #{${programType.getShortDescSrc()}}"
Copy link
Collaborator Author

@bseeger bseeger Jan 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The one place where this PR deviates from the design is the styling of the help text in the select boxes on the Choose Program page. The color is wrong and I could not easily figure out how to change it.

Copy link
Contributor

@vrajmohan vrajmohan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some general comments. None of these are vital but thought we should discuss.

@@ -1,5 +1,5 @@
# Overrides
general.inputs.continue=Continue
general.inputs.continue=Next
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better to change to general.inputs.next everywhere, but that is a bigger change. This is why I asked Design about the need for this.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does change the value displayed for any continue button to Next anywhere it's found in the system. Are you suggesting something different here?

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.
This also cleans up the code a little.
Swaps order of County and Select Application pages (per design changes).
Changes ApplicationDescriptionType enum to ApplicantObjectives.
Removes OHEP option (comments it out)
Fixes link in myMDTHINK redirect.
@bseeger bseeger force-pushed the add_select_application_186922235 branch from 1157d4a to 101132e Compare January 31, 2024 21:38
Some general cleanup and updates the values used in
the application selection and help needed page to
be the enum page.  Also updates the county page to store the
enum name as well, versus county string.
@bseeger
Copy link
Collaborator Author

bseeger commented Feb 1, 2024

Data now looks like this:

  "county": "QUEEN_ANNES",
  "programs[]": [
    "SNAP",
    "TCA",
    "OTHER"
  ],
  "helpNeeded[]": [
    "SNAP",
    "TCA",
    "TDAP",
    "OTHER"
  ],
  "applicationInfo[]": [
    "OTHER"
  ]
}

Another example:

  "county": "BALTIMORE",
  "applicationInfo[]": [
    "COLLEGE_STUDENT_IN_APP",
    "VETERAN_IN_APP",
    "HELP_WITH_HEALTHCARE",
    "AUTHORIZED_REP_FOR_SOMEONE"
  ]
}

Adds in checkboxFieldset & checkboxInSet to our fragments so we
can override them.  This part is not done yet, but should be part of
another set of pages. (was outside of scope of this PR)
@bseeger
Copy link
Collaborator Author

bseeger commented Feb 2, 2024

For the choose program page -- it will change again, so don't focus on comparing that part so much to design. That page was out of scope for this work, but I added it so the data would be there for the sign & submit part.

Copy link
Contributor

@vrajmohan vrajmohan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bseeger bseeger merged commit 2f43917 into main Feb 2, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants