-
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-06-28] [$250] Android - Chat - Emoji with markdown on edit cut off on top #43394
Comments
Triggered auto assignment to @sakluger ( |
@sakluger 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 |
We think that this bug might be related to #vip-vsp |
ProposalPlease re-state the problem that we are trying to solve in this issue.Emoji markdown when edited is cut off on top. What is the root cause of that problem?When the text is only emoji, the line height will be 35. Lines 1665 to 1668 in 65db650
When we edit the message, an (edited) text is added at the end of the text. The line height of this is smaller than the emoji, thus the emoji is cut off. This only started to happen when we render the emoji as a markdown/html. When it was still rendered as a plain text, we already apply the line height style to the edited text, so the issue doesn't happen. App/src/pages/home/report/comment/TextCommentFragment.tsx Lines 77 to 109 in 65db650
What changes do you think we should make in order to solve the problem?We can follow the similar pattern of adding
Then in the edited renderer, apply the emoji only line height if
We need to apply the line height style to the empty space text too because our text component has a default line height value if the font size is normal. (you can see we did this too in the plain text code that I put in the root cause section) Lines 41 to 43 in 65db650
Or I think the better way is to set a font size for the empty space to be the same as the (edited) text, that is
Let me know which one to do! |
Job added to Upwork: https://www.upwork.com/jobs/~01b3f0154fe463e8cd |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @akinwale ( |
@bernhardoj's proposal makes sense here.
Let's go with this approach. 🎀👀🎀 C reviewed. |
Triggered auto assignment to @carlosmiceli, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @akinwale 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @bernhardoj 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
PR is ready cc: @akinwale |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.0-9 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-06-28. 🎊 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:
|
Summarizing payment on this issue: Contributor: @akinwale $250, paid via Upwork @akinwale could you please complete the BZ checklist? |
Not a regression.
Regression Test Steps
Do we agree 👍 or 👎? |
Thanks! I created the GH issue to update regression test steps. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.4.81-1
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4613726
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
Emoji with markdown on edit must not cut off on top
Actual Result:
Emoji with markdown on edit cut off on top
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6508219_1718032465293.Screenrecorder-2024-06-10-19-44-51-391_compress_1.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @saklugerThe text was updated successfully, but these errors were encountered: