Skip to content

DO NOT MERGE FFS-2749: Display LA Indexing Fields #641

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

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions app/app/components/aggregate_data_point_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,18 @@ def client_full_name(full_name)
value: full_name
}
end

def date_of_birth(date_of_birth)
{
label: I18n.t("cbv.submits.show.pdf.shared.date_of_birth"),
value: date_of_birth
}
end

def ssn(ssn)
{
label: I18n.t("cbv.submits.show.pdf.caseworker.ssn"),
value: ssn
}
end
end
1 change: 1 addition & 0 deletions app/app/views/cbv/submits/show.pdf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
<% end %>
<% if is_caseworker && summary[:has_identity_data] %>
<%= table.with_data_point(:client_full_name, summary[:identity].full_name) %>
<%= table.with_data_point(:ssn, summary[:identity].ssn) %>
<% end %>
<% if summary[:has_employment_data] %>
<% employment = summary[:employment] %>
Expand Down
5 changes: 3 additions & 2 deletions app/config/i18n-tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ ignore_missing:
- "caseworker_mailer.summary_email.*"
# Caseworker PDF strings that are only supported in English:
- "cbv.submits.show.pdf.caseworker.*"
- "cbv.submits.show.pdf.shared.date_of_birth"

# Currently awaiting translation:
# - "example.strings.*" # Tag with ticket number that created or modified the string
Expand Down Expand Up @@ -192,13 +193,13 @@ ignore_missing:
- "cbv.applicant_informations.la_ldh.fields.case_number.help_text"
- "cbv.applicant_informations.la_ldh.fields.case_number.prompt"
- "cbv.applicant_informations.la_ldh.fields.case_number.super_one_html"

# LA welcome (FFS-2688)
- "pages.home.description_1"
- "pages.home.description_2"
- "pages.home.description_3"
- "pages.home.header"

# LA client_pdf (FFS-2688)
- "aggregator_strings.payment_frequencies.annual"
- "aggregator_strings.payment_frequencies.annually"
Expand Down
2 changes: 2 additions & 0 deletions app/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ en:
how_to_header: 'How to use this report:'
pay_period: Pay period (%{pay_frequency})
snap_agency_id: SNAP Agency ID
ssn: SSN
staff_beacon_id_wel_id: Staff BEACON ID (WELID)
client:
address: Employer address
Expand All @@ -433,6 +434,7 @@ en:
shared:
client_information: Client information
confirmation_code: Confirmation code
date_of_birth: Date of Birth
employment_information: Employment information
pay_date: 'Pay Date: %{pay_date}'
report_details: Report details
Expand Down
2 changes: 2 additions & 0 deletions app/spec/controllers/cbv/submits_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@
expect(pdf_text).to include(I18n.t("cbv.applicant_informations.sandbox.fields.middle_name.prompt"))
expect(pdf_text).to include(I18n.t("cbv.applicant_informations.sandbox.fields.last_name.prompt"))
expect(pdf_text).to include(I18n.t("cbv.applicant_informations.sandbox.fields.case_number.prompt"))
expect(pdf_text).to include(I18n.t("cbv.submits.show.pdf.caseworker.ssn"))
end
end

Expand All @@ -134,6 +135,7 @@
expect(pdf_text).not_to include(I18n.t("cbv.applicant_informations.sandbox.fields.middle_name.prompt"))
expect(pdf_text).not_to include(I18n.t("cbv.applicant_informations.sandbox.fields.last_name.prompt"))
expect(pdf_text).not_to include(I18n.t("cbv.applicant_informations.sandbox.fields.case_number.prompt"))
expect(pdf_text).not_to include(I18n.t("cbv.submits.show.pdf.caseworker.ssn"))
end
end
end
Expand Down