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-992] adds a card to the income review page for SSA-1099 #4891

Merged
merged 2 commits into from
Oct 22, 2024
Merged

Conversation

jnf
Copy link
Contributor

@jnf jnf commented Oct 18, 2024

Link to pivotal/JIRA issue

FYST-992

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 a bit of logic to render a basic card when the filer has Social Security benefits (>0) reported in their federal data
  • All states w/ income review have the same card and logic
  • It's rather boolean; if there's positive values in either SocSecBnftAmt or TaxableSocSecAmt on the filer's 1040, the card is rendered. Otherwise it isn't.

How to test?

  • Positive Test
    • Choose a persona that has positive Social Security benefits (like AZ leslie_qss_v2)
    • Navigate to income review
    • Observe the SSA-1099 card is visible
  • Negative Test
    • Choose a persona that doesn't have any reported SS benefits (like AZ Martha)
    • Navigate to income review
    • Observe the SSA-1099 card is not visible

Screenshots (for visual changes)

Before

image

After

image

@jnf jnf added the wip denotes a work in progress that isn't ready for formal review label Oct 18, 2024
@@ -27,5 +27,14 @@
</div>
<% end %>

<% if current_intake.direct_file_data.fed_ssb > 0 || current_intake.direct_file_data.fed_taxable_ssb > 0 %>
<div class="white-group">
<p class="text--bold spacing-below-0"><%= t(".ssa_title") %></p>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

i'm following the markup structure from the card above, but semantically i think this should be an h2 or h3 rather than a p.

Copy link
Member

@mpidcock mpidcock Oct 21, 2024

Choose a reason for hiding this comment

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

[dust] low key agree but no strong opinion

@@ -264,6 +264,11 @@ ul.with-bullets {
color: $color-red;
}

.text--grey-bold {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

is there an existing class for this somewhere? i did a brief search but didn't find one.

Copy link
Member

@mpidcock mpidcock Oct 21, 2024

Choose a reason for hiding this comment

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

[dust] it's my preference to not use red / grey / bold in these labels on the income review page, but I'm not feeling creative right now so idk what good names would be

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i have very strong opinions about this, but it's not the right time to open that particular can of worms.

Copy link

Heroku app: https://gyr-review-app-4891-07f02e897a0a.herokuapp.com/
View logs: heroku logs --app gyr-review-app-4891 (optionally add --tail)

@jnf jnf removed the wip denotes a work in progress that isn't ready for formal review label Oct 18, 2024
@jnf jnf marked this pull request as ready for review October 18, 2024 23:47
@@ -264,6 +264,11 @@ ul.with-bullets {
color: $color-red;
}

.text--grey-bold {
Copy link
Member

@mpidcock mpidcock Oct 21, 2024

Choose a reason for hiding this comment

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

[dust] it's my preference to not use red / grey / bold in these labels on the income review page, but I'm not feeling creative right now so idk what good names would be

@@ -27,5 +27,14 @@
</div>
<% end %>

<% if current_intake.direct_file_data.fed_ssb > 0 || current_intake.direct_file_data.fed_taxable_ssb > 0 %>
<div class="white-group">
<p class="text--bold spacing-below-0"><%= t(".ssa_title") %></p>
Copy link
Member

@mpidcock mpidcock Oct 21, 2024

Choose a reason for hiding this comment

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

[dust] low key agree but no strong opinion

@jnf jnf merged commit 3caf494 into main Oct 22, 2024
7 checks passed
@jnf jnf deleted the jnf/fyst-992 branch October 22, 2024 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants