-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[$1000] Web - App does not change Spanish emoji text to emoji on change of language #23305
Comments
ProposalPlease re-state the problem that we are trying to solve in this issue.App does not change spanish emoji text to emoji on change of language What is the root cause of that problem?The message value not update if language change because the condition above updateComment will break the code App/src/pages/home/report/ReportActionCompose.js Lines 287 to 291 in 99519f2
What changes do you think we should make in order to solve the problem?Update the message value when language change if (this.props.preferredLocale === prevProps.preferredLocale && this.props.report.reportID === prevProps.report.reportID && !shouldSyncComment) {
return;
}
this.updateComment(this.props.comment); What alternative solutions did you explore? (Optional)we can use another check to check if the comment change after local change or not const {text: newComment = ''} = EmojiUtils.replaceEmojis(this.state.value, this.props.preferredSkinTone, this.props.preferredLocale);
// const shouldSyncComment = prevProps.comment !== this.props.comment && this.state.value !== this.props.comment;
const shouldSyncComment = (prevProps.comment !== this.props.comment && this.state.value !== this.props.comment) || newComment !== this.state.value; |
Triggered auto assignment to @sophiepintoraetz ( |
Bug0 Triage Checklist (Main S/O)
|
@sophiepintoraetz Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Job added to Upwork: https://www.upwork.com/jobs/~01c549a3221d600158 |
Current assignee @sophiepintoraetz is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ArekChr ( |
Not overdue - waiting on proposals |
ProposalPlease re-state the problem that we are trying to solve in this issue.App does not change spanish emoji text to emoji on change of language What is the root cause of that problem?The comment is not updated because 'shouldSyncComment' does not take into account locale change.
What changes do you think we should make in order to solve the problem?ahmedGaber93 logic was almost correct except the condition of 'shouldSyncComment' should be slightly different. I suggest it to be this way: const localeChanged = prevProps.preferredLocale !== this.props.preferredLocale;
const shouldSyncComment = localeChanged || (prevProps.comment !== this.props.comment && this.state.value !== this.props.comment);
// As the report IDs change, make sure to update the composer comment as we need to make sure
// we do not show incorrect data in there (ie. draft of message from other report).
if (this.props.report.reportID === prevProps.report.reportID && !shouldSyncComment) {
return;
}
this.updateComment(this.props.comment); What alternative solutions did you explore? (Optional)none |
📣 @lorentzimys! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
@lorentzimys I think My alternative solution #23305 (comment) work in this point and Thanks! |
The proposal from @ahmedGaber93 looks good to me. |
Triggered auto assignment to @bondydaa, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @ahmedGaber93 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
📣 @dhanashree-sawant 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app! |
assigned, leave me alone melvin |
@ahmedGaber93 - are you ready to get started on the PR? |
@sophiepintoraetz @ArekChr PR is now ready for review. |
Waiting on a review from @bondydaa |
I was actually talking to @stitesExpensify about this yesterday IRL and he mentioned we might have done this on purpose, going to double check if he had a second to review this or not. |
ok chatted with stites and he thought it was a little different case at first so 👍 full steam ahead. will review the pr now. |
Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:
On to the next one 🚀 |
@sophiepintoraetz, any updates about payment here? This issue has been merged in production since 13 days ago |
Apologies @ahmedGaber93 - usually there's another checklist that comes through about initiating payments/BZ regression testing but we're all set here. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
App should change Spanish emoji text to emoji when we change the language to Spanish
Actual Result:
App does not change Spanish emoji text to emoji when we change the language to Spanish and needs revisit to change
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number:
Reproducible in staging?:
Reproducible in production?:
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
text.not.changed.to.emoji.on.language.change.mp4
Recording.3791.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1689854158724759
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: