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

All Expenses #375

Merged
merged 10 commits into from Oct 27, 2023
Merged

All Expenses #375

merged 10 commits into from Oct 27, 2023

Conversation

analoo
Copy link
Contributor

@analoo analoo commented Oct 19, 2023

No description provided.

@sree-cfa sree-cfa temporarily deployed to test-la-doc-uploader-pr-375 October 19, 2023 22:21 Inactive
@@ -9,7 +9,7 @@
<div class="grid">
<div th:replace="~{fragments/goBack :: goBackLink}"></div>
<main id="content" role="main" class="form-card spacing-above-35">
<p class="employer-name" th:text="${fieldData.get('employerName')}"></p>
<p class="grey-text" th:text="${fieldData.get('employerName')}"></p>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

fyi @lkemperman-cfa - changed the class to be more universal than employer name.

expensesHome:
nextScreens:
- name: expensesRent
condition: ExpensesIncludeRent
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sree-cfa @lkemperman-cfa - I don't love this approach. Is there a better way?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, I dont think there's a better way atm. The only thing I can think of is extracting some of the duplicate code into a super conditional class so that each condition just has to pass the corresponding value

Copy link
Contributor

Choose a reason for hiding this comment

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

Ex.

return super.run(submission, "Rent")

@sree-cfa sree-cfa temporarily deployed to test-la-doc-uploader-pr-375 October 25, 2023 23:52 Inactive
@analoo analoo changed the title Home expenses All Expenses Oct 25, 2023
@analoo analoo marked this pull request as ready for review October 25, 2023 23:52
@sree-cfa sree-cfa temporarily deployed to test-la-doc-uploader-pr-375 October 26, 2023 00:07 Inactive
@analoo analoo merged commit 30e38b5 into main Oct 27, 2023
5 checks passed
@analoo analoo deleted the home-expenses branch October 27, 2023 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants