-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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-09-29] [$1000] Offline: Deleting edited inlinecode block and codeblock results in extra hyphen (strikethrough) #17365
Comments
Triggered auto assignment to @isabelastisser ( |
Bug0 Triage Checklist (Main S/O)
|
I don't have the capacity to work on this today, so I will prioritize it next week. |
I will prioritize this today. |
Reviewing this now. |
Job added to Upwork: https://www.upwork.com/jobs/~01c51c938ba2ca45e8 |
Current assignee @isabelastisser is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @aimane-chnaif ( |
Triggered auto assignment to @AndrewGable ( |
i think it duplicated #17181 |
Can you confirm and close if so @isabelastisser? Thanks! |
No, it is not. It's a different issue. The other issue is about the alignment of strikethrough. The issue here is an extra hyphen present before |
ProposalPlease re-state the problem that we are trying to solve in this issue.There is an extra strikethrough on a pending delete text. It's not only happen to code block, but to all text. What is the root cause of that problem?The space between (edited) and the text is a whitespace character, so it also get the strikethrough style. App/src/components/HTMLEngineProvider/HTMLRenderers/EditedRenderer.js Lines 18 to 27 in 8864416
App/src/pages/home/report/ReportActionItemFragment.js Lines 133 to 138 in 8864416
What changes do you think we should make in order to solve the problem?Instead of using space character, we can replace it with an empty |
ProposalPlease re-state the problem that we are trying to solve in this issue.Unexpected extra hyphens in the What is the root cause of that problem?In here we're adding a space at the beginning of theedited label to add some spacing with the "edited" message.
In here
The empty space will get the strike through CSS style as well so it shows as such. What changes do you think we should make in order to solve the problem?We need to wrap the
Text component and move the isPendingDelete && styles.offlineFeedback.deleted style there instead, so it will only apply for the (edited) text, not the spacing space.
That's for HTML message, if we don't want the strike-through to apply for the space in case of text message as well, then we can apply the same approach here
...props.style to the relevant text part rather than to the whole container component which includes the spacing space).
What alternative solutions did you explore? (Optional)NA |
Not overdue; still accepting proposals. |
@AndrewGable, @isabelastisser, @aimane-chnaif Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.72-11 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-09-29. 🎊 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.
For reference, here are some details about the assignees on this issue:
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:
|
@aimane-chnaif requires payment: I sent the proposal in Upwork now. |
@aimane-chnaif, please complete the checklist above so we can close the issue. Thanks! |
This bug existed for a long time and there were back and forth changes related to |
Thanks @aimane-chnaif ! Closing. |
Requested payment of $250 as reporter of the bug in newDot. |
Re-opening because I need a payment summary for this issue. |
Issue created prior to Aug 30th, so old bug bounty levels apply for this issue.
|
$250 payment approved for @sobitneupane based on summary above. |
Cool, thanks! @aimane-chnaif were you paid for this via Upwork as per the checkmarks here? |
yes, got 1k. Let's close |
Perf, closing! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
Strikethrough should be applied only to text. There should not be any extra hyphens.
Actual Result:
Unexpected extra hyphens
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: v1.2.99-4



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
Expensify/Expensify Issue URL:
Issue reported by: @sobitneupane
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1681289647224179
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: