Skip to content

Send in-person proofing notification SMS in user's selected email language#9045

Merged
tomas-nava merged 4 commits intomainfrom
tomas/send-proofing-notification-in-chosen-language
Aug 22, 2023
Merged

Send in-person proofing notification SMS in user's selected email language#9045
tomas-nava merged 4 commits intomainfrom
tomas/send-proofing-notification-in-chosen-language

Conversation

@tomas-nava
Copy link
Contributor

@tomas-nava tomas-nava commented Aug 21, 2023

🎫 Ticket

Related to LG-10124 and LG-10126

🛠 Summary of changes

Send in-person proofing notification SMS in user's selected email language.

Note: sending SMS proofing notifications is not in production yet.

📜 Testing Plan

Once this PR is merged and in dev

  • Create a new account via the OIDC application
  • Select a non-english language as your email language preference
  • Complete the in-person proofing process, using your real mobile phone number, through to the barcode page
  • Ask USPS to set a completed proof status for your enrollment code (passed or failed)
  • Confirm that the SMS you receive is in the language you set as your preference

changelog: User-Facing Improvements, In-person Proofing, Send sms notification in selected email language
@tomas-nava tomas-nava requested review from a team and JackRyan1989 August 21, 2023 15:30
@tomas-nava tomas-nava requested review from a team and racingspider and removed request for a team and JackRyan1989 August 21, 2023 16:29
proof_date: proof_date,
)
with_user_locale(enrollment.user) do
proof_date = enrollment.proofed_at ? I18n.l(enrollment.proofed_at, format: :sms_date) : 'NA'
Copy link
Contributor

Choose a reason for hiding this comment

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

does NA need to be translated? or is it identical in all our locals?

Copy link
Contributor

Choose a reason for hiding this comment

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

If proof_date is nullable, I feel like it would probably be easier to have two versions of the string (one with it, one without it) than to try to match translating the NA in context like that

Copy link
Contributor Author

@tomas-nava tomas-nava Aug 22, 2023

Choose a reason for hiding this comment

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

thank you, I'm following up on this with the team. I don't think it is nullable, and if it is, we should just send a message without the date, not with "NA" inserted in the date's place.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed in 93940c3

@tomas-nava tomas-nava merged commit ecf0ab5 into main Aug 22, 2023
@tomas-nava tomas-nava deleted the tomas/send-proofing-notification-in-chosen-language branch August 22, 2023 17:24
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.

3 participants