-
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
[Payment 2024-10-10] [$250] Chat - In mweb, deleting emoji+text in offline, emoji not striked but striked in Android #49053
Comments
Triggered auto assignment to @strepanier03 ( |
@strepanier03 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 |
Edited by proposal-police: This proposal was edited at 2024-09-15 17:53:49 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Emoji is not struck through in web apps when a comment with both emoji and text is deleted offline. What is the root cause of that problem?When the comment only contains emojis, we add the
So it works fine when the comment contains only emojis. However, when the deleted message contains both emojis and text, we use App/src/pages/home/report/comment/TextCommentFragment.tsx Lines 60 to 72 in 0c618ac
We add del tag here
and react-native-render-html adds the line-through style based on this tag.
But the custom
So, the textDecorationStyle is not applied to the EmojiWithTooltip , and consequently to the emoji.
This works fine on native apps because the parent style still has the correct
However, in the index.tsx , there are interspersed View components between the Text and its parent here:App/src/components/EmojiWithTooltip/index.tsx Lines 18 to 36 in 0c618ac
As a result, the textDecorationStyle is not correctly inherited in non-native apps.
What changes do you think we should make in order to solve the problem?We should pass the
like this: function EmojiRenderer({style, tnode}: CustomRendererProps<TText | TPhrasing>) {
const styles = useThemeStyles();
const mergedStyle = {...style, ...'islarge' in tnode.attributes ? styles.onlyEmojisText : {}};
return (
<EmojiWithTooltip
style={[mergedStyle, styles.cursorDefault, styles.emojiDefaultStyles]} What alternative solutions did you explore? (Optional) |
@strepanier03 Eep! 4 days overdue now. Issues have feelings too... |
Okay, got this tested and easy to repro. The question is what do actually want because I think just the word being strikes is expected, but I think them both striked looks better. I'll confirm quick. |
Okay, this is good to move forward. The end goal is consistency and the majority int he discussion voted for fully struck through, emoji and text. Let's move forward with making that consistent across devices. If there is a limitation let's discuss it. |
Job added to Upwork: https://www.upwork.com/jobs/~021837299922286222160 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane ( |
Heads up I am out of the office from September 21 to October 3. If during that time BZ action is needed please post in Slack to ask for a hand getting it done. I'll check in when I'm back online on the 3rd and get caught up. Thanks everyone! |
Triggered auto assignment to @yuwenmemon, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @c3024 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.43-6 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-10-10. 🎊 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:
|
Payment is due to be released in a few days, will check back in then. |
Payment Summary
|
@sobitneupane - I'll check back later today for the checklist and once it's done I'll take the payment summary off hold. |
@c3024 - I paid your contract and closed it in Upwork. Thank you! |
@yuwenmemon @strepanier03 @sobitneupane @c3024 this issue is now 4 weeks old, please consider:
Thanks! |
@sobitneupane - friendly bump on the checklist here so I can finish this up. |
@sobitneupane I set ownership of this on you. Once you do the checklist please set it back to me and I'll remove the hold from the payment summary. |
@yuwenmemon, @strepanier03, @sobitneupane, @c3024 Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Yes.
|
Regression Test Proposal
Do we agree 👍 or 👎 |
@sobitneupane - Payment summary is posted here. I removed the hold and made the reg test GH so you're good to request payment. |
$250 approved for @sobitneupane |
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: 9.0.33-1
Reproducible in staging?: Y
Reproducible in production?: Y
Issue reported by: Applause Internal Team
Action Performed:
Precondition: Go offline
Expected Result:
Deleting emoji+text in offline, behavior must be same in both mweb and Android.
Actual Result:
In mweb, deleting emoji+text in offline, emoji is not striked through but in Android it is striked.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6600606_1726116352208.Screenrecorder-2024-09-12-10-06-55-184_compress_1.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @sobitneupaneThe text was updated successfully, but these errors were encountered: