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

Revamp citizenship pages #39

Merged
merged 6 commits into from
Feb 14, 2024
Merged

Revamp citizenship pages #39

merged 6 commits into from
Feb 14, 2024

Conversation

bseeger
Copy link
Contributor

@bseeger bseeger commented Feb 7, 2024

This will add an enum for CitizenStatusTypes.
This also updates tests associated with citizenship.

@bseeger bseeger force-pushed the add_citizenship_pages_186922240 branch from d25214d to 03e89a5 Compare February 7, 2024 15:29
@bseeger bseeger force-pushed the add_citizenship_pages_186922240 branch from ba9a1ab to ed3c356 Compare February 7, 2024 21:27
@bseeger bseeger marked this pull request as ready for review February 7, 2024 21:31
privacy.how-we-use.title=How we use your information
privacy.how-we-use.content.p1=We use your information for our business purposes and legitimate interests such as:
privacy.how-we-use.content.li1=To help you obtain and keep benefits in Louisiana, including:
privacy.how-we-use.content.li1.sub1=To complete forms required for the use of the Services
privacy.how-we-use.content.li1.sub2=To submit your documents and personal information to the Louisiana Department of Children and Family Services
privacy.how-we-use.content.li1.sub3=To access an account linked to your case in the Louisiana Department of Children and Family Services' online system
privacy.how-we-use.content.li1.sub4=To send you messages related to your benefits application, updates, and renewals

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I turned on auto formatting (using the google stylesheet) and it causes this change. Should I reverse this or do we really care?

@bseeger bseeger requested a review from vrajmohan February 9, 2024 17:29
@bseeger
Copy link
Contributor Author

bseeger commented Feb 9, 2024

This ticket got put on hold, but we should still get these changes in until other decisions are made.

* it belongs with.
*/
@Slf4j
public abstract class MoveDataIntoSubflowData implements Action {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I created this to aid in moving data around. The intent is that someone can create a child Action from this and indicate the fields they are moving things to/from.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This will handle those wildcard fields we want to tuck into household.

// The previous field (citizenshipStatus) is used as a wildcard to help populate
// this field below, which is put in the "household[]" members data and not left as
// a top-level field in the json.
private String householdMemberCitizenshipStatus;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These variables will change some if they revamp the pages. I wouldn't worry about these too much.

@@ -368,6 +382,9 @@ public class MdBenefitsFlow extends FlowInputs {

private String digitalAssisterFeedbackDetail;

@NotBlank(message = "{error.missiong-general}")
private String isApplicantApplying;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is not in a page yet, but will be added at some point.

public void run(Submission submission) {
moveDataToSubflowData(submission, "household", "citizenshipStatus", "householdMemberCitizenshipStatus");
}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

If they move the citizen status select boxes to inside of the flow, we can take this action out.

th:value="${value}"
th:selected="${selectValue != null ? selectValue.equals(value) : fieldData.getOrDefault(inputName, '').equals(value)}"
th:text="${optionText}"></option>
</th:block>
Copy link
Contributor Author

@bseeger bseeger Feb 9, 2024

Choose a reason for hiding this comment

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

I overrode the SelectOption so I could set the value based on something that wasn't in the inputData. This allowed me to preset "Not Applying" on the citizen selection page.

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.

Minor changes suggested

@bseeger bseeger force-pushed the add_citizenship_pages_186922240 branch from eb8efcc to 8864bc3 Compare February 13, 2024 15:55
@bseeger bseeger requested a review from vrajmohan February 13, 2024 15:57
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.

Sorry I hadn't noticed these earlier.

@bseeger bseeger force-pushed the add_citizenship_pages_186922240 branch from 8864bc3 to 28b574d Compare February 14, 2024 15:37
@bseeger bseeger requested a review from vrajmohan February 14, 2024 15:37
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.

Thank you for your patience.

@bseeger bseeger merged commit fd77096 into main Feb 14, 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.

2 participants