-
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
[$1000] The strikethrough on the "edited" label is not visible for Code Blocks, Quotes, and Headings when an edited message was deleted in offline mode on mobile apps. #18042
Comments
Triggered auto assignment to @flaviadefaria ( |
Bug0 Triage Checklist (Main S/O)
|
Job added to Upwork: https://www.upwork.com/jobs/~01fb84eccd46f00572 |
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 - @Santhosh-Sellavel ( |
Triggered auto assignment to @neil-marcellini ( |
Assigned the external label |
ProposalPlease re-state the problem that we are trying to solve in this issue.There is no strikethrough style applied to the edited label for code block, quotes, and heading. What is the root cause of that problem?We previously have an issue which a markdown does not have the strikethrough when deleted while offline here #15571. The root cause of it because App/src/components/HTMLEngineProvider/HTMLRenderers/EditedRenderer.js Lines 15 to 29 in c9f6606
The problem is, we omit the The next question, why it only happens for codeblock, quote, and heading? We can see that it happens for a markdown that is a block element and not with inline element, for example italic/bold. If we look at the component tree, we can see that edited text in italic/bold is nested inside the bolded/italicize text. Because it's nested, the edited text will also be strikethrough-ed. However, if it's a heading, the text and the edited text is not nested and both is a children of a View. MemoizedTNodeRenderer with key 0 is the heading text, while MemoizedTNodeRenderer with key 1 is the edited text. What changes do you think we should make in order to solve the problem?Instead of omitting all style, we can just pick the deleted style, which is What alternative solutions did you explore? (Optional)Previously I mentioned the reason we omit the style above. But, we can actually not omitting the Lines 59 to 65 in c9f6606
by adding the tag, which is
|
What's the issue here Having a Strike through or not, bit confused. First, we should update the OP here before moving forward Can you elaborate on what exactly is the issue here @pubudu-ranasinghe ? |
@Santhosh-Sellavel just tested the latest main branch. The edited label is not getting strikethrough on every kind of text after this PR #17704 is merged, specifically the display inline flex style. However, on native we still have it because display inline flex is not available on native. |
Yes, seems like this is broken for all messages in master. When a message is deleted in offline mode, a strikethrough is applied to indicate that it is a pending delete. If the message was edited, the edited label should also have a strikethrough. Initially, when I reported this bug, the strikethrough issue was only visible for code blocks, quotes, and headings in native apps. Seems like we may need to update this bug with the new scope. Attaching screenshots I had taken earlier. This is related to #17181 which I'm working on at PR #17781 . With the updates from master branch I may need to revisit my PR and maybe I could try to fix this issue as well. |
@bernhardoj It's not because of the inline flex style, it's because we mirrored the layout from EditedRenderer in ReportActionItemFragment. |
Yes, you are right. But it's also true that the inline flex is the one that causing the strikethrough missing on both markdown and normal text, ONLY on Web. Removing it will solve the issue. However, I'm not saying that is 100% a bad thing because now we are manually apply the strikethrough style to the edited text that will eventually solve this web only issue #17181 |
Correction, my proposal will only work for native. Web platform won't receive the deleted style as |
Bump @Santhosh-Sellavel. Any promising proposals? |
@neil-marcellini there is contradiction between Expected OP & current behavior . More broken than before reporting it seems |
Sounds good thanks! I'll put this on hold. |
still holding |
I'm OoO for 8 days so re-adding the BUG label, but keeping myself assigned. I'll be back at work on May 30th if this needs to be actioned before I'm back please re-apply the bug label. |
Still holding. There's progress on the issue this is held on. |
@neil-marcellini any new update here? |
#17781 was deployed to production so we can take this off of hold 🥳. @Santhosh-Sellavel where do we go from here? |
Ah completely missed this one, will check and update you. |
All good! I always forget to edit the title after I say we can take this off of hold haha. I posted in Slack here that the issue is back open and ready for proposals. |
I was typing here, and at the same time I get a notification from you on Slack 😅 . |
I believe this is already fixed. AFAIR the issue was the Text node in There are two additional issues,
Need to check if these have been reported already |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Ok great, yep I think this was fixed. I'm going to close this and I don't think we owe any payments. |
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:
Code Block
/ > Quote / # Heading)Expected Result:
The "edited" label should have a strikethrough on it as seen on web and mobile web
Actual Result:
The "edited" label does not have a strikethrough
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.6
Reproducible in staging?: y
Reproducible in production?: y
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
az_recorder_20230426_164913.1.mp4
!
Expensify/Expensify Issue URL:
Issue reported by: @pubudu-ranasinghe
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1682161364254109
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: