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

Generate PDF #405

Merged
merged 12 commits into from Dec 15, 2023
Merged

Generate PDF #405

merged 12 commits into from Dec 15, 2023

Conversation

sree-cfa
Copy link
Contributor

@sree-cfa sree-cfa commented Nov 9, 2023

This PR

  • Added PDF template and mapping for initial snap questions
  • Demo-only link in the footer to generate a PDF

Follow-up PR will include

  • Missing SNAP questions
  • Income
  • Assets
  • Household ethnicity/race
  • EBT card choice
  • School details
  • Pregnancy details
  • LiHEAP question

@sree-cfa sree-cfa temporarily deployed to test-la-doc-uploader-pr-405 November 9, 2023 18:09 Inactive
@sree-cfa sree-cfa temporarily deployed to test-la-doc-uploader-pr-405 November 9, 2023 18:26 Inactive
@sree-cfa sree-cfa temporarily deployed to test-la-doc-uploader-pr-405 November 9, 2023 21:53 Inactive
@sree-cfa sree-cfa temporarily deployed to test-la-doc-uploader-pr-405 November 9, 2023 23:29 Inactive
@sree-cfa sree-cfa temporarily deployed to test-la-doc-uploader-pr-405 November 13, 2023 19:02 Inactive
@sree-cfa sree-cfa temporarily deployed to test-la-doc-uploader-pr-405 November 13, 2023 21:16 Inactive
@sree-cfa sree-cfa temporarily deployed to test-la-doc-uploader-pr-405 November 13, 2023 23:50 Inactive
@sree-cfa sree-cfa temporarily deployed to test-la-doc-uploader-pr-405 November 14, 2023 16:40 Inactive
@sree-cfa sree-cfa temporarily deployed to test-la-doc-uploader-pr-405 November 14, 2023 17:00 Inactive
@sree-cfa sree-cfa temporarily deployed to test-la-doc-uploader-pr-405 November 14, 2023 23:14 Inactive
@sree-cfa sree-cfa temporarily deployed to test-la-doc-uploader-pr-405 November 14, 2023 23:16 Inactive
@sree-cfa sree-cfa temporarily deployed to test-la-doc-uploader-pr-405 November 14, 2023 23:32 Inactive
@sree-cfa sree-cfa temporarily deployed to test-la-doc-uploader-pr-405 November 15, 2023 19:23 Inactive
@sree-cfa sree-cfa temporarily deployed to test-la-doc-uploader-pr-405 November 15, 2023 21:31 Inactive
@sree-cfa sree-cfa temporarily deployed to test-la-doc-uploader-pr-405 November 15, 2023 22:03 Inactive
@sree-cfa sree-cfa temporarily deployed to test-la-doc-uploader-pr-405 November 16, 2023 16:58 Inactive
@sree-cfa sree-cfa temporarily deployed to test-la-doc-uploader-pr-405 December 8, 2023 19:05 Inactive
@sree-cfa sree-cfa temporarily deployed to test-la-doc-uploader-pr-405 December 11, 2023 20:49 Inactive
@sree-cfa sree-cfa marked this pull request as ready for review December 11, 2023 20:51
@sree-cfa sree-cfa temporarily deployed to test-la-doc-uploader-pr-405 December 11, 2023 23:30 Inactive
@sree-cfa sree-cfa temporarily deployed to test-la-doc-uploader-pr-405 December 12, 2023 01:13 Inactive
@sree-cfa sree-cfa temporarily deployed to test-la-doc-uploader-pr-405 December 12, 2023 17:51 Inactive
@@ -5,10 +5,11 @@
<a class="text--small font-white spacing-below-15" target="_blank" rel="noopener noreferrer" href="/privacy"
th:text="#{footer.privacy}"></a>
<th:block th:if="${#arrays.contains(@environment.getActiveProfiles(), 'demo') || #arrays.contains(@environment.getActiveProfiles(), 'dev')}">
<br>Download links (demo-only):
<br/>Download links (demo-only):
Copy link
Contributor

Choose a reason for hiding this comment

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

Leaving this comment here, though the scope/work of this is outside this PR.
We should move this to another fragment that only gets included in the "dev" environment. Or "demo".
The risks of sharing private data are REALLY high if we forget to take this out - so it might be good to protect against that right now.

@bseeger
Copy link
Contributor

bseeger commented Dec 14, 2023

In testing I noticed that the disability field is not getting populated:

Screenshot 2023-12-14 at 9 37 49 AM

Also noticing that text doesn't really fit in some of the fields. I know that's not due to this PR, but definitely something we need to fix somehow.

Screenshot 2023-12-14 at 9 38 05 AM

@sree-cfa sree-cfa temporarily deployed to test-la-doc-uploader-pr-405 December 14, 2023 17:48 Inactive
@sree-cfa
Copy link
Contributor Author

In testing I noticed that the disability field is not getting populated:

Screenshot 2023-12-14 at 9 37 49 AM Also noticing that text doesn't really fit in some of the fields. I know that's not due to this PR, but definitely something we need to fix somehow. Screenshot 2023-12-14 at 9 38 05 AM

Yeah def - roshan will be doing PDF acceptance testing when he gets back so just leaving it until then 🤷

@sree-cfa sree-cfa temporarily deployed to test-la-doc-uploader-pr-405 December 14, 2023 18:33 Inactive
@bseeger
Copy link
Contributor

bseeger commented Dec 14, 2023

@sree-cfa I think we should fix the part where the disability checkbox is not getting checked - it's the first of the two images above and maybe was missed.

@sree-cfa
Copy link
Contributor Author

@bseeger oh yeah agreed - that is fixed now. The sizing and display stuff can wait for roshan to review

@sree-cfa sree-cfa temporarily deployed to test-la-doc-uploader-pr-405 December 15, 2023 17:06 Inactive
@bseeger bseeger self-requested a review December 15, 2023 21:11
Copy link
Contributor

@bseeger bseeger left a comment

Choose a reason for hiding this comment

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

Looks good!!

@sree-cfa sree-cfa merged commit 0fb2099 into main Dec 15, 2023
5 checks passed
@sree-cfa sree-cfa deleted the generate-pdf branch December 15, 2023 21:13
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