-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[HOLD for payment 2024-10-25] Contact method - unlinkLoginForm.succesfullyUnlinkedLogin after unlinking secondary login #50256
Comments
Triggered auto assignment to @trjExpensify ( |
@trjExpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
ProposalPlease re-state the problem that we are trying to solve in this issue.unlinkLoginForm.succesfullyUnlinkedLogin after unlinking secondary login What is the root cause of that problem?We are pasting App/src/libs/actions/Session/index.ts Lines 890 to 897 in 4e12268
Then in the What changes do you think we should make in order to solve the problem?Pass a We would also ned to update the message below: App/src/pages/signin/UnlinkLoginForm.tsx Line 35 in 4e12268
If there is same bug with Implementation:
What alternative solutions did you explore? (Optional) |
Edited by proposal-police: This proposal was edited at 2024-10-04 17:49:43 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.unlinkLoginForm.succesfullyUnlinkedLogin after unlinking secondary login What is the root cause of that problem?We are passing this as a string App/src/libs/actions/Session/index.ts Line 896 in 896bc78
What changes do you think we should make in order to solve the problem?let's use translate here App/src/libs/actions/Session/index.ts Line 896 in 896bc78
Let's fix these two value too translate('unlinkLoginForm.linkSent') and translate('unlinkLoginForm.succesfullyUnlinkedLogin') App/src/pages/signin/UnlinkLoginForm.tsx Line 35 in 896bc78
We should look for other places too where we are not using translate and fix the issue Some other places where we should fix this App/src/libs/actions/Session/index.ts Line 307 in 896bc78
App/src/libs/actions/Session/index.ts Line 858 in 896bc78
Note We should use the translate method wherever we are using these variables. This will address the issue at its core. Additionally, we have a reviewer checklist item emphasizing the importance of using the translate method with variables.
What alternative solutions did you explore? (Optional)Or we can also use |
Proposal Updated |
Updated Proposal |
Unable to auto-create job on Upwork. The BZ team member should create it manually for this issue. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rojiphil ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Unlink login form success message is shown with the translation key. What is the root cause of that problem?The message is shown without being translated here. App/src/pages/signin/LoginForm/BaseLoginForm.tsx Lines 274 to 281 in 99f280b
This happens after #42970. Previously, DotIndicatorMessage handles the translation if it needs translation. So, the account message will always be translated, but not with the But after the PR, DotIndicatorMessage will show any message it gets, so the translation responsibility is from the component that uses it. What changes do you think we should make in order to solve the problem?To follow the previous behavior, we need to translate the
|
@rojiphil, @trjExpensify Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@rojiphil can you review the proposals, please? Thanks! |
Proposal Updated |
@bernhardoj Is there any distinct advantage of using |
If we save the translated text to Onyx, then changing the app language won't re-translate it. I believe it's a common pattern to save the translation key to Onyx. |
@bernhardoj Could you provide any reference where we are saving a translation key to Onyx? |
@rojiphil FYI, the source is a |
@twilight294 We can use Line 33 in 867bbb4
|
I was going to refer to the IOU file where there are a lot of Line 863 in 867bbb4
but I just realized Lines 44 to 46 in 867bbb4
And again, this happens after #42970. Previously, we saved the translation key (with isTranslated is false, so we know that it needs to be translated). This means, any errors that use Btw, here is an example where we translate the key before showing it. App/src/pages/signin/UnlinkLoginForm.tsx Line 35 in 8b27c8d
Maybe we should align first whether a client-side error message should be translatable or not. |
@bernhardoj The error you mentioned, |
Here we set error using App/src/libs/actions/TaxRate.ts Line 148 in 8e53105
This is the error we get when the create tax rate request fails. It is translated into Spanish, and I believe this is a common pattern that we use in our app. |
Ah ok. In that case, I agree with you on saving the key and translating at the time of usage. Is that what we do in other similar scenarios? |
Well, both approaches are used. But a similar scenario here uses this approach. |
Cool, thanks for the explanation. Let's do it. |
PR is ready cc: @rojiphil |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.50-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-10-25. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Steps:
|
@trjExpensify BZ Checklist is done |
Payment Summary
BugZero Checklist (@puneetlath)
|
Great, thanks! Payment summary as follows:
@rojiphil sent you an offer. @bernhardoj, go ahead and request. |
Thanks @trjExpensify. Accepted offer. |
Perfect, paid! |
Requested in ND. |
$250 approved for @bernhardoj |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.44-7
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): applausetester+kh021001@applause.expensifail.com
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
App will show the correct successful unlink message
Actual Result:
App shows unlinkLoginForm.succesfullyUnlinkedLogin after unlinking secondary login
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6624569_1728055712579.20241004_232118.mp4
View all open jobs on GitHub
Issue Owner
Current Issue Owner: @trjExpensify / @trjExpensifyThe text was updated successfully, but these errors were encountered: