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

LG-12999: Fix Selfie Inline Error #10513

Merged

Conversation

charleyf
Copy link
Contributor

@charleyf charleyf commented Apr 26, 2024

🎫 Ticket

https://cm-jira.usa.gov/browse/LG-12999

🛠 Summary of changes

This PR changes the text that appears over the selfie field to be the text we want.

📜 Testing Plan

Get a selfie failure, verify that the red inline error text over the selfie box is "We couldn’t verify the photo of yourself. Try taking a new picture."

selfie_error_chinese

@charleyf charleyf changed the title Change inline error LG-12999: Fix Selfie Inline Error Apr 26, 2024
@@ -86,8 +86,7 @@ en:
network_error: We are having technical difficulties on our end. Please try to
submit your images again later.
no_liveness: Try taking new pictures.
selfie_failure: Try taking your photos again. Make sure all of your photos are
clear and in focus.
selfie_failure: We couldn’t verify the photo of yourself. Try taking a new picture.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@kellular (or anyone) I'm not seeing translations? I'll keep looking.

Copy link

@kellular kellular Apr 29, 2024

Choose a reason for hiding this comment

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

@charleyf They might have been accidentally removed the last time we worked on this in-line error, I can't recall. But here are the DOS translations:

Spanish: No pudimos verificar su foto. Intente tomar una nueva foto.
French: Nous n’avons pas pu vérifier votre photo. Essayez de prendre une nouvelle photo.
Chinese Simplified (are we supposed to add these now?): 我们无法验证你自己的照片。请重拍一张。

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! Added those, I don't see anywhere to put the simplified Chinese yet. I would expect a file like doc_auth/zh-CN.yml.

Copy link
Contributor

Choose a reason for hiding this comment

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

@charleyf , it's zh.yml.

Copy link
Contributor

Choose a reason for hiding this comment

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

@kellular yes, please include Chinese translations going forward

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added the chinese translation

Choose a reason for hiding this comment

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

@charleyf thanks for adding the chinese translation - could you please add a screenshot to the PR so I can submit this for DOS LQA approval?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Uploaded a screenshot to the PR description.

@charleyf charleyf marked this pull request as ready for review April 26, 2024 16:59
@charleyf charleyf requested review from a team, amirbey and night-jellyfish and removed request for a team April 26, 2024 17:12
@charleyf charleyf merged commit 2acb0cd into main May 2, 2024
2 checks passed
@charleyf charleyf deleted the charley/lg-12999-fix-inline-errors-for-various-scenarios branch May 2, 2024 16:57
@charleyf
Copy link
Contributor Author

charleyf commented May 2, 2024

I would have waited a little longer, but Amir needs these tests for something he's working on.

@jmdembe jmdembe mentioned this pull request May 7, 2024
samathad2023 pushed a commit that referenced this pull request May 11, 2024
* Change inline error

* changelog: User-Facing Improvements, Selfie, Fix inline error text above selfie box

* Remove unusual line terminators (auto detected by VS Code)

* Change translations too

* Lint fix

* Add chinese translation

* Remove newly translated key from exception list

* Add tests for inline selfie errors

* Lint fixes

* Fix space (remove b/c odd whitespace character)
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.

None yet

6 participants