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

GYR1-616 Add Hub additional notes p5 + pertinent mappings #5431

Merged
merged 8 commits into from
Jan 28, 2025

Conversation

spompea-cfa
Copy link
Contributor

@spompea-cfa spompea-cfa commented Jan 24, 2025

Link to Jira issue

Is PM acceptance required?

  • Yes - don't merge until JIRA issue is accepted!

Reminder: merge main into this branch and get green tests before merging to main

What was done?

  • Added an editable 14-C page 5 into the Hub, which has just the "Additional
    Notes/Comments" field. This field should "start out" with whatever comments
    the client entered into the FinalInfoController screen back during the intake
    flow.
  • The mapping was also added so that the comments/notes get properly written to
    the PDF.
  • For this PR, mappings were also added to write out dependent records onto the
    5th page when there are 4 or more dependents.
    • This includes the new dependent IPPIN field as well.

Technical Notes

  • additional_notes_comments has been created, which is a text column, to
    replace the legacy final_info string column. I think text is the
    preferable data type here.
  • It looks like additional_info wasn't really being used, so it's no longer
    included in the string that gets written out to the PDF.

How to test?

  • Ensure that the text entered into the FinalInfoController shows up when
    navigating to page 5 in the Hub
  • Ensure that if changes/additions are made to the text in the Hub, it will all
    show up properly on the PDF.
  • Enter in at least 5 dependents and ensure that the 4th and 5th records show up
    properly on page 5 of the PDF.
    • Switch up the values and spot-check that no wires were crossed in terms of
      the order of how values were written out on the PDF.
  • Ensure it all works when there's only a note but only 3 or fewer dependent
    records.

Example

image

Copy link

Heroku app: https://gyr-review-app-5431-da5cb9598458.herokuapp.com/
View logs: heroku logs --app gyr-review-app-5431 (optionally add --tail)

@spompea-cfa spompea-cfa force-pushed the gyr1-616-hub-page-5-with-mappings branch from a9b1001 to 68f1e35 Compare January 25, 2025 19:31
@spompea-cfa spompea-cfa changed the title [wip] GYR1-616 Add Hub additional notes p5 + pertinent mappings GYR1-616 Add Hub additional notes p5 + pertinent mappings Jan 25, 2025
@spompea-cfa spompea-cfa changed the title GYR1-616 Add Hub additional notes p5 + pertinent mappings [wip] GYR1-616 Add Hub additional notes p5 + pertinent mappings Jan 25, 2025
@spompea-cfa spompea-cfa changed the title [wip] GYR1-616 Add Hub additional notes p5 + pertinent mappings GYR1-616 Add Hub additional notes p5 + pertinent mappings Jan 25, 2025
Copy link
Contributor

@embarnard embarnard 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!

<div class="form_13614c slab slab--not-padded">
<h1><%= @title %></h1>
<p>Last client 13614-C
update: <%= @client.last_13614c_update_at&.in_time_zone("America/Los_Angeles")&.strftime("%b %-d %l:%M %p") %></p>
Copy link
Contributor

Choose a reason for hiding this comment

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

Where is this timezone coming 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.

that's a good question. it's just what was in the preexisting ERBs in the editable 14-C flow. now that you mention it, i do wonder if it being hardcoded like that is the best idea. but afaik, that's the way it was for ty2023. could be worth following up on though.

header = 'Additional Notes/Comments'
expect(page).to have_text header

note = 'It was very late and everyone had left the café except an old man who sat in the shadow the leaves of the tree made against the electric light.'
Copy link
Contributor

Choose a reason for hiding this comment

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

🥹

@spompea-cfa spompea-cfa force-pushed the gyr1-616-hub-page-5-with-mappings branch from c0b9f0c to 5562879 Compare January 27, 2025 17:51
@spompea-cfa
Copy link
Contributor Author

@embarnard also, i meant to have the write-up ready before putting into review. i've added that now.

@spompea-cfa spompea-cfa merged commit 59ccfee into main Jan 28, 2025
7 checks passed
@spompea-cfa spompea-cfa deleted the gyr1-616-hub-page-5-with-mappings branch January 28, 2025 01:42
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