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

Nj 211 separate health #5307

Merged
merged 18 commits into from
Jan 6, 2025
Merged

Nj 211 separate health #5307

merged 18 commits into from
Jan 6, 2025

Conversation

mmazanec22
Copy link
Contributor

@mmazanec22 mmazanec22 commented Jan 2, 2025

Link to pivotal/JIRA issue

https://github.com/newjersey/affordability-pm/issues/211

Is PM acceptance required? (delete one)

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

What was done?

  • Remove dependents from health insurance eligibility
  • Add separate dependents health insurance question that shows for people who have dependents and did not see the health insurance eligibility question or who answered no
  • Tidy up the years on some tests

How to test?

Use many deps claimed as dep profile. Health insurance eligibility question should not show, but dependent health insurance should show after dependents in college question.

Screenshots (for visual changes)

image

Copy link

github-actions bot commented Jan 2, 2025

Heroku app: https://gyr-review-app-5307-06bac2b4a196.herokuapp.com/
View logs: heroku logs --app gyr-review-app-5307 (optionally add --tail)

Copy link
Contributor

@aloverso aloverso 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! Nice catch on using tax year rather than current date year 😅

My main note here is that depending on what gets merged first, this or the review page, one of those tickets should update the (newly created) review section for this question to have the edit button go back to this new controller.

@@ -2119,6 +2119,7 @@ en:
nc_tax_withheld: North Carolina tax withheld
nc_taxable_income: North Carolina taxable income
nc_use_tax: North Carolina use tax
nj_minimal_essential_health_coverage_html: "<p>Most people who have health insurance have minimum essential coverage. “Minimal essential coverage” just refers to how much your plan covers. If you have any of the following, you most likely have it:</p>\n<ul>\n <li>A plan through your employer</li>\n <li>A plan bought through <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://nj.gov/getcoverednj/\">GetCoveredNJ</a></li>\n <li>Medicare</li> \n <li>Medicaid (NJ FamilyCare)</li>\n</ul>\n<p><a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://nj.gov/treasury/njhealthinsurancemandate/getinfo.shtml\">Here is the full list of insurance options that have minimum essential coverage.</a><p> \n<p>If you only had standalone vision and dental plans, workers' compensation coverage, and/or coverage limited to a specified disease or illness, you didn't have minimum essential coverage. In New Jersey, as of 2018, you need minimum essential coverage, or you will likely pay additional taxes.</p>\n"
Copy link
Contributor

Choose a reason for hiding this comment

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

[dust] do we have a guideline on when to use \n vs <br> in these translation strings?

Copy link
Member

Choose a reason for hiding this comment

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

[dust] those \n look to me like they were added by the ide when pasting the html block inside quotes, and don't actually have any impact on this string once it is parsed.

in terms of best practice for translated html strings, I think this example is much more readable and avoids the ide adding in \n

end
end

context "when intake has depedents" do
Copy link
Contributor

Choose a reason for hiding this comment

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

[dust] typo dependents

Copy link
Contributor

@mluedke2 mluedke2 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 and no blockers from me!

@@ -2119,6 +2119,7 @@ en:
nc_tax_withheld: North Carolina tax withheld
nc_taxable_income: North Carolina taxable income
nc_use_tax: North Carolina use tax
nj_minimal_essential_health_coverage_html: "<p>Most people who have health insurance have minimum essential coverage. “Minimal essential coverage” just refers to how much your plan covers. If you have any of the following, you most likely have it:</p>\n<ul>\n <li>A plan through your employer</li>\n <li>A plan bought through <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://nj.gov/getcoverednj/\">GetCoveredNJ</a></li>\n <li>Medicare</li> \n <li>Medicaid (NJ FamilyCare)</li>\n</ul>\n<p><a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://nj.gov/treasury/njhealthinsurancemandate/getinfo.shtml\">Here is the full list of insurance options that have minimum essential coverage.</a><p> \n<p>If you only had standalone vision and dental plans, workers' compensation coverage, and/or coverage limited to a specified disease or illness, you didn't have minimum essential coverage. In New Jersey, as of 2018, you need minimum essential coverage, or you will likely pay additional taxes.</p>\n"
Copy link
Member

Choose a reason for hiding this comment

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

[dust] those \n look to me like they were added by the ide when pasting the html block inside quotes, and don't actually have any impact on this string once it is parsed.

in terms of best practice for translated html strings, I think this example is much more readable and avoids the ide adding in \n

@mmazanec22 mmazanec22 force-pushed the nj-211-separate-health branch from 470c3a9 to 094926b Compare January 6, 2025 14:50
@mmazanec22 mmazanec22 merged commit 7a4f71b into main Jan 6, 2025
7 checks passed
@mmazanec22 mmazanec22 deleted the nj-211-separate-health branch January 6, 2025 19:46
Copy link

sentry-io bot commented Jan 15, 2025

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ **ActionView::Template::Error: undefined method to_sym' for nil:NilClass (ActionView::Template::Error)** StateFile::Questions::EligibilityOffboardingCon...` View Issue

Did you find this useful? React with a 👍 or 👎

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.

4 participants