-
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 2023-06-19] [$1000] IOS - Chat - Top of the emoji inside the inline block is cut off #19922
Comments
Triggered auto assignment to @flaviadefaria ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.IOS - Chat - Top of the emoji inside the inline block is cut off What is the root cause of that problem?Heights are small for inline code block elements App/src/styles/codeStyles/index.ios.js Lines 1 to 13 in fe67d69
What changes do you think we should make in order to solve the problem?Adjust
ResultWhat alternative solutions did you explore? (Optional)N/A |
Job added to Upwork: https://www.upwork.com/jobs/~01b27ea19fc8522167 |
Current assignee @flaviadefaria is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt ( |
Triggered auto assignment to @flodnv ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.When emoji is inside the inline block, emoji is cut off in iOS What is the root cause of that problem?We're using WrappedText for iOS/Android native in rendering inline code blocks. In App/src/components/InlineCodeBlock/WrappedText.js Lines 45 to 68 in 465b788
This works for normal texts but works weird when there are emojis. In the above screenshot, red rectangles show this. This is one of the reason. Yellow rectangle shows that emojis has bigger size than normal text. Now the What changes do you think we should make in order to solve the problem?
When there are no spaces between emoji and character, they would become a word, for example
In the above code, EMOJI_SPLITTER is defined in
What alternative solutions did you explore? (Optional) |
@AlexanderDmitriev Thanks for the proposal. Your RCA is correct and the fix makes sense to me but let's adjust the values just slightly (18 seems good enough).
Edit: Looks we have another bug that we may fix here as well. |
@s-alves10 Thanks for the proposal. I don't see how the matrix is relevant here. Can you elaborate on this? As far as I can tell the bug is mostly due to the wrong line height (and height). |
@s77rt |
@s-alves10 I'm sorry, I don't get it. Can you please rephrase what you are trying to say here? As far as I tested adjusting the height and line height values seems enough, am I missing something here? i.e. what kind of a bug is still existing after those changes? |
@s77rt |
Oh right. This seems a little different issue but we should probably handle it here. I wonder why each word is rendered separately, that's weird. |
@s77rt App/src/components/InlineCodeBlock/WrappedText.js Lines 45 to 68 in 465b788
|
@s-alves10 It don't seem to be something from the beginning. This was added by #2307 to fix #986. Rendering everything in one row makes the text overflows.
|
@s-alves10 Thanks for the update. Using
|
@s-alves10 Thanks for the quick follow up. So the idea is to split on both spaces and emojis? Your regex seems a little complicated, can you please update it and use our existing EMOJIS regex or better create a new regex SPACE_OR_EMOJI (similar to SPECIAL_CHAR_OR_EMOJI). |
@s-alves10 This seems over engineered. Why can't we just split on spaces and emojis? (in one regex) |
@s-alves10 I don't understand why you are adding the loop, why don't split on spaces and emojis going with something like: "hi there👌 test: you're".split(/(\s|👌)/) replacing 👌 with the emoji regex. |
@s77rt |
@s-alves10 Awesome. Can you please update your proposal? |
Proposal |
@s-alves10 Thanks. This is looking better. We can work on the rest details in the PR. 🎀 👀 🎀 C+ reviewed cc @flodnv |
📣 @s-alves10 You have been assigned to this job by @flodnv! |
Great! Thanks, go for it @s-alves10 🙇 |
Thank you. I'll have a PR ready for review in a few hours |
🎯 ⚡️ Woah @s77rt / @s-alves10, great job pushing this forwards! ⚡️ The pull request got merged within 2 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉
On to the next one 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.26-4 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 2023-06-19. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External 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:
|
|
@s77rt @s-alves10 Issuing payment for you both now for $1000 + $500 (bonus) each. |
Offers sent! |
Payment has been issued so closing this. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Text Block Emoji-1 Emoji-2 Emoji-3 ...
Expected Result:
The content of the inline block is fully visible
Actual Result:
Top of the emoji inside the inline block is cut off
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1,3,21.1
Reproducible in staging?: yes
Reproducible in production?: yes
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
Bug6075918_inline-block-emoji-cut-off.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - internal Team
Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: