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

Implement basic doc upload page and tests #242

Merged
merged 8 commits into from May 13, 2024

Conversation

analoo
Copy link
Contributor

@analoo analoo commented May 8, 2024

🔗 Jira ticket

Issue Link

✍️ Description

  • This ticket introduces the document upload screen
  • There is an ability to upload documents
  • There is an ability to delete documents in the same UI
  • The button stating "I'm done" appears if a file was added.
  • Adds test coverage
  • No specific code added for event listerers

📷 Design reference

Figma Design

✅ Completion tasks

Note: If you are testing this locally, you will need to copy over staging AWS credentials.

  • [X ] Added relevant tests
  • Meets acceptance criteria

@analoo analoo marked this pull request as ready for review May 8, 2024 21:58
@github-actions github-actions bot requested a review from enyia21 May 8, 2024 21:58
@enyia21 enyia21 temporarily deployed to il-gcc-ccap-33-doc-uplo-qhxz9j May 8, 2024 22:00 Inactive
@enyia21 enyia21 temporarily deployed to il-gcc-ccap-33-doc-uplo-qhxz9j May 8, 2024 22:05 Inactive
nextScreens:
- name: doc-upload-confirm
doc-upload-confirm:
condition: SkipTemplate
Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed skip template because otherwise there is no nextScreen for doc-upload-add-files

doc-upload-add-files.header=Upload documents
doc-upload-add-files.accordion-1.title=Recommended documents
doc-upload-add-files.accordion-1.p1=Share documents that verify:
doc-upload-add-files.accordion-1.body1= <strong>Parent jobs and income</strong><br/>Add two recent pay stubs or an income verification letter for each working parent.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added each paragraph in its separate string just in case there are copy changes: It will affect a smaller grouping of words rather than all the text.

@@ -105,12 +103,30 @@ protected void uploadFile(String filepath, String dzName) {
.isBlank());
}

protected void uploadFile(String filepath) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

There are similar methods with different signatures that may be tied to drag and drop.

Copy link
Contributor

@enyia21 enyia21 left a comment

Choose a reason for hiding this comment

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

Jira issue is missing:

  • doc-upload-recommended-docs screen
  • corresponding Journey test

<p th:utext="#{doc-upload-add-files.accordion-1.body5}"></p>
</th:block>
</th:block>
<th:block th:replace="~{fragments/fileUploader :: fileUploader(inputName='uploadDocuments')}"></th:block>
Copy link
Contributor

Choose a reason for hiding this comment

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

The file uploader implementation should be implemented in the next ticket. Not a problem now, in my opinion

@analoo analoo force-pushed the CCAP-33-doc-upload-basic-screens branch from ac78a1b to e0b0a41 Compare May 9, 2024 23:15
@enyia21 enyia21 temporarily deployed to il-gcc-ccap-33-doc-uplo-qhxz9j May 9, 2024 23:15 Inactive
@enyia21 enyia21 temporarily deployed to il-gcc-ccap-33-doc-uplo-qhxz9j May 9, 2024 23:27 Inactive
@enyia21 enyia21 temporarily deployed to il-gcc-ccap-33-doc-uplo-qhxz9j May 10, 2024 17:16 Inactive
@enyia21 enyia21 temporarily deployed to il-gcc-ccap-33-doc-uplo-qhxz9j May 10, 2024 20:05 Inactive
@analoo analoo force-pushed the CCAP-33-doc-upload-basic-screens branch from f5f6ff6 to 3bfe2b1 Compare May 10, 2024 20:49
@enyia21 enyia21 temporarily deployed to il-gcc-ccap-33-doc-uplo-qhxz9j May 10, 2024 20:49 Inactive
@enyia21 enyia21 temporarily deployed to il-gcc-ccap-33-doc-uplo-qhxz9j May 10, 2024 21:31 Inactive
@analoo analoo force-pushed the CCAP-33-doc-upload-basic-screens branch from 69a8a24 to 84c8e36 Compare May 10, 2024 21:33
@enyia21 enyia21 temporarily deployed to il-gcc-ccap-33-doc-uplo-qhxz9j May 10, 2024 21:33 Inactive
@analoo analoo requested a review from enyia21 May 10, 2024 22:21
Copy link
Contributor

@enyia21 enyia21 left a comment

Choose a reason for hiding this comment

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

The copy forTANF Work Training is incorrect on the doc-upload-recommended-docs screen. Everything else is good to go

<p th:utext="#{doc-upload-recommended-docs.school.body}"></p>

<th:block th:replace="~{fragments/gcc-icons :: job}"></th:block>
<p th:utext="#{doc-upload-recommended-docs.school.body}"></p>
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you meant to doc-upload-recommended-docs.training.body instead of doc-upload-recommended-docs.school.body.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you! @enyia21

@enyia21 enyia21 temporarily deployed to il-gcc-ccap-33-doc-uplo-qhxz9j May 13, 2024 16:54 Inactive
@analoo analoo requested a review from enyia21 May 13, 2024 17:47
@analoo analoo merged commit 8b32062 into main May 13, 2024
5 checks passed
@analoo analoo deleted the CCAP-33-doc-upload-basic-screens branch May 13, 2024 21:54
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