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

FYST-791 ID health insurance premium subtraction #4930

Merged
merged 15 commits into from
Nov 1, 2024

Conversation

arinchoi03
Copy link
Contributor

@arinchoi03 arinchoi03 commented Oct 29, 2024

Link to pivotal/JIRA issue

FYST-791

Is PM acceptance required? (delete one)

  • 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 Health Insurance Premium page & reflected that in the ID final review screen
  • Also fixed a copy in ID Sales/Use Tax that looked wrong

How to test?

  • Describe the testing approach taken to verify the changes, including:
    • Unit/feature specs written & manually tested as well
    • Any fixture can be used, just need to input the health insurance paid amount value and see it be reflected on review page (rounded to 2nd decimal place) & XML/PDF (rounded to integer)
    • Check copy singular / plural on the question page:
      • single filer: "you/yourself"
      • mfj / single filer with dependents: "you and your household/yourself an your household"
  • Use deployed heroku env

Screenshots (for visual changes)

Screenshot 2024-10-29 at 4 05 39 PM Screenshot 2024-10-29 at 4 05 43 PM Screenshot 2024-10-29 at 4 05 55 PM

@arinchoi03 arinchoi03 force-pushed the FYST-791-id-health-insurance-premium-subtraction branch from 78c468c to d71020a Compare October 29, 2024 22:28
Copy link

Heroku app: https://gyr-review-app-4930-0ec0e31e5a55.herokuapp.com/
View logs: heroku logs --app gyr-review-app-4930 (optionally add --tail)

@arinchoi03 arinchoi03 force-pushed the FYST-791-id-health-insurance-premium-subtraction branch 2 times, most recently from ddbca6e to 7bbc44f Compare October 29, 2024 22:38
@arinchoi03 arinchoi03 force-pushed the FYST-791-id-health-insurance-premium-subtraction branch from 7bbc44f to 8593c52 Compare October 29, 2024 22:56
presence: true,
numericality: {
allow_blank: true,
greater_than_or_equal_to: 0,
Copy link
Contributor Author

@arinchoi03 arinchoi03 Oct 30, 2024

Choose a reason for hiding this comment

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

open question whether we should allow 0 value for this amount, but should be ok to review while I wait on answer from product

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok to allow 0 here!

1- it’s possible that the filer may think that they paid Health Insurance Premiums when they initially respond to the question…..but as they more carefully review all of the supporting text in the reveals describing which Health Insurance payments actually qualify for this subtraction they may realize that the Health Insurance Premium payments that they made don’t actually qualify. So allowing them to enter 0 (and filling the PDF field and updating the state XML field with it) is the behavior that we are looking for here.

https://codeforamerica.atlassian.net/browse/FYST-791?focusedCommentId=12716

Copy link
Contributor

Choose a reason for hiding this comment

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

if they answer no for health insurance premium question, should we still be adding 0 for the xml and pdf?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ooh i'll ask this

@@ -202,6 +202,10 @@ def filer_count
filing_status_mfj? ? 2 : 1
end

def household_count
filer_count + dependents.size
end
Copy link
Contributor Author

Choose a reason for hiding this comment

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

mike is implementing this on another PR but don't know who will get to merge it first

Copy link
Contributor

@tahsinaislam tahsinaislam left a comment

Choose a reason for hiding this comment

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

some questions i was wondering but otherwise looks amazing

@@ -11,7 +11,6 @@
<%=
f.cfa_radio_set(
:has_unpaid_sales_use_tax,
label_text: t('.unpaid_sales_use_tax_label_html'),
collection: [
Copy link
Contributor

Choose a reason for hiding this comment

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

why was this taken out?

Copy link
Contributor Author

@arinchoi03 arinchoi03 Oct 31, 2024

Choose a reason for hiding this comment

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

there is not supposed to be a copy above this Yes/No question -- according to figma. I had included the same text twice (text about sales/use amount) & noticed it was different from the figma, so I removed it

presence: true,
numericality: {
allow_blank: true,
greater_than_or_equal_to: 0,
Copy link
Contributor

Choose a reason for hiding this comment

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

if they answer no for health insurance premium question, should we still be adding 0 for the xml and pdf?


# ID Review page
click_on I18n.t("general.continue")
expect(page).to have_text "Idaho Health Insurance Premium Subtraction"
expect(page).to have_text "$1,234.60"

Copy link
Contributor

Choose a reason for hiding this comment

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

hmm wondering if going forward we should all add the review page content

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes i think we should

@arinchoi03 arinchoi03 merged commit 55e797f into main Nov 1, 2024
7 checks passed
@arinchoi03 arinchoi03 deleted the FYST-791-id-health-insurance-premium-subtraction branch November 1, 2024 17:15
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