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

Adjust code to start to use required fields logic that ffb added. #235

Merged
merged 7 commits into from May 23, 2024

Conversation

bseeger
Copy link
Collaborator

@bseeger bseeger commented May 10, 2024

Helps address: https://www.pivotaltracker.com/story/show/186994206

  • removes a few input templates that were unused (duedate, fulldate, householdCheckboxFieldset)
  • removes text.html template from this code base and lets us default to the one in ffl (and therefore get required field functionality)
  • small tweak to the selectHelpNeeded.html to move some text into the card header.

aria-describedby=${hasHelpText ? inputName + '-help-text' : ''},
aria-labelledby=${hasAriaLabel ? ariaLabel : ''},
aria-invalid=${hasError}"
th:value="${hasValue ? value : fieldData.getOrDefault(inputName, '')}">
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 spot allows for an override of the data filled into the field. I don't think we need this in MD's code. But maybe we should pull this logic into the ffb?

@bseeger bseeger force-pushed the changes_for_required_fields branch from 1220fd7 to 08a53cd Compare May 23, 2024 15:12
@@ -640,10 +640,10 @@ income-delete-confirmation.title=Delete household member income
income-delete-confirmation.yes=Yes, delete it
household-income-total.add-by-job=Do you want to add your monthly household income by job instead? This can give your caseworker more details to better help with your application.
household-income-total.no=No, continue
household-income-total.yes=Yes, add income by job
household-income-total.yes=Yes, add income by job3 x
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Typo?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'll take this out.

<th:block
th:replace="~{fragments/form :: form(action=${formAction}, content=~{::formContent})}">
<th:block th:ref="formContent">
<div class="form-card__content">
<th:block
th:replace="~{fragments/inputs/money :: money(inputName='householdIncomeLast30Days', ariaLabel='header', placeholder='0.00')}"/>
th:replace="'fragments/inputs/money' :: money(inputName='householdIncomeLast30Days', ariaLabel='header header-help-message', placeholder='0.00')"/>
</div>
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hmmm... not sure if my rebase reversed this, but we do want the ~{fragement} syntax instead of the single quotes.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

nm, I'm taking this out as it's a duplicate field on this page now.

@bseeger
Copy link
Collaborator Author

bseeger commented May 23, 2024

For some reason this is not showing as required. (householdMoneyOnHandAmount.html page)
Screenshot 2024-05-23 at 11 25 41 AM

@spokenbird spokenbird merged commit a95fb70 into main May 23, 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