-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Skin tone fix #16604
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
Merged
Merged
Skin tone fix #16604
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
80d7bf9
Merge branch 'main' of https://github.com/margelo/expensify-app-fork
perunt 6068332
Merge branch 'main' of https://github.com/margelo/expensify-app-fork
perunt 0d04bce
Merge branch 'main' of https://github.com/margelo/expensify-app-fork
perunt 8b7cd76
Merge branch 'main' of https://github.com/Expensify/App
perunt 040eeef
fix skin tone on replaceEmojis
perunt e4d6781
Merge branch 'main' of https://github.com/Expensify/App into perunt/s…
perunt 113fcb2
fix tests
perunt 7768680
add eslint rule 'onyx-props-must-have-default'
perunt d4a9741
move definition outside component to circumvent onyx bug
perunt d829d81
update propTypes
perunt 71ac667
remove required from preferredSkinTone
perunt 3073e4b
use preferredSkinTone from CONST
perunt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This line caused this regression #16896 , We should remove the
this.keyword and simply call thegetEmojiCodeWithSkinColor()function directly.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.
How come I was not able to reproduce this on localhost? Is this caused by the diff between debug javascript files and the built ones?
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.
thiskeyword refer to the moduleEmojiUtils, on dev environment variables and function names are preserved , When code is minified during production, function and variable names are often changed to shorter, more efficient names. This can cause issues if you are usingthisto access functions or entities, as the new names may not match the original names.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.
Good find, and that's quite interesting about
this.working on Dev but not production 🤔 Maybe we need some better eslint rules to catch this in the future?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.
@Beamanator That would be good. Can you please create a tracking issue for this one? The lint rule is good approach to prevent this bug but what about other unknown diff between dev and built js files?