-
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
Fix: Added emoji category translations #7125
Fix: Added emoji category translations #7125
Conversation
@parasharrajat @rushatgabhane, Because @stitesExpensify is a reviewer for #7074 as well, I've created a common PR. It also helps me avoid conflicts that I will only have to resolve. I hope it isn't a big trouble in reviewing it. |
@mananjadhav Is it just me or the emoji picker is bugged. Screencast.from.11-01-22.05-40-09.PM.+03.mp4Head is at the latest commit. |
Let me check and get back |
@rushatgabhane I checked and I am not able to reproduce this. Can you probably hard refresh and check? emoji-picker.mp4 |
Thanks, nothing worked but for some reason |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! some suggestions.
This is what happens if the dynamic spacer elements are off FYI. I wonder if you had a cached emoji list or something? Weird regardless, glad it's not actually a problem 😄 |
Also, I believe if you pull |
…oji-category-translations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. C+ Linked issue for ref #7074
cc: @stitesExpensify
🎀 👀 🎀 C+ reviewed
Time for me to test it again. I try to reproduce that broken UI.. |
Interesting, gonna dig deeper. |
Ohhh 🤔 For some reason, I didn’t get this at all 😕 Let me try to check the issue as well. |
I don't see that issue. cc: @rushatgabhane |
Co-authored-by: Ionatan Wiznia <[email protected]>
src/libs/EmojiUtils.js
Outdated
_.each(emojis, (emoji, index) => { | ||
if (emoji.header) { | ||
updatedEmojis = updatedEmojis.concat(getDynamicSpacing(updatedEmojis.length, index), [emoji], getDynamicSpacing(1, index)); | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return early here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure when you say return early. There's an if and else case to it. Neither it gave an error for the same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean to say - return at end of if
So you don't need to use else
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just realised and commit pushed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still investigating the UI bug, having a hard time replicating it consistently for debugging.
Weird thing is, it fixes itself sometimes after reopening emoji drawer.
Dry ran the code but couldn't find any edge cases yet.
Small change requested.
Well, team, I was able to reproduce this consistently for one case -> "When we don't have any frequently used emojis." Lines 112 to 115 in 7e50a8d
This code should ideally be :
|
@stitesExpensify @parasharrajat @rushatgabhane PR updated. Hopefully you shouldn't get the spacing issue now 😃 |
Oh, Nice. I didn't notice the frequent emojis. Glad you found it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
cc: @stitesExpensify
Nice find! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by @stitesExpensify in version: 1.1.29-6 🚀
|
🚀 Deployed to production by @roryabraham in version: 1.1.30-3 🚀
|
Details
Fixed Issues
$ #7060
$ #7074
Tests
Errors are not related to my code
QA Steps
Tested On
Screenshots
Web
Translation


Food & Drinks

Mobile Web
Translation

Food and Drinks

Desktop
Translation

Food and Drinks

iOS
Translations

Food and Drinks

Android
Translations

Food and Drinks
