-
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
[HOLD for payment 2023-06-07] [$1000] The horizontal line (for deleted message) is not in the center for the text 'edited' but is center for the 'chat messages' on web chrome (offline mode) #17181
Comments
Triggered auto assignment to @trjExpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Assigning myself since I was also pulled into the linked Slack convo. |
Job added to Upwork: https://www.upwork.com/jobs/~0118d19fc456de16df |
Current assignee @JmillsExpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane ( |
Triggered auto assignment to @NikkiWines ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.What is the root cause of that problem?If we inspect this in the browser we can see the following elements and styles that render the message and edited label. We have a This behavior is a common issue and can be reproduced outside of Expensify. We can fix this by making the inner smaller text to be a separate block and apply What changes do you think we should make in order to solve the problem?Following is the component that renders the message and App/src/pages/home/report/ReportActionItemFragment.js Lines 126 to 140 in d196a12
We can make the style={[...props.style, {display: 'inline-block'}]} Handling MarkdownAs pointed out by @sobitneupane the above solution alone doesn't address markdown comments. They have the same root cause described above but is rendered separately. So we need to add a fix there as well. Markdown is rendered by following lines of code App/src/pages/home/report/ReportActionItemFragment.js Lines 112 to 124 in 2d0ef06
This renders a custom This is how we can pass this attribute in const editedTag = props.fragment.isEdited ? `<edited ${isPendingDelete ? 'deleted="true"' : ''}></edited>` : '';
// Component Code
const isPendingDelete = !!props.tnode.attributes.deleted;
// component jsx
style={isPendingDelete ? [styles.offlineFeedback.deleted, { display: 'inline-block'}] : undefined} These changes will not have any impact on the web because span is already What alternative solutions did you explore? (Optional)Setting the strike through using a pseudo element rather than browser native strike through was another option. This would give greater flexibility in positioning but I'd prefer to use browser features as much as possible. |
📣 @pubudu-ranasinghe! 📣 Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Format:
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
Thanks for the proposal @pubudu-ranasinghe Can you please add more explanation in "What is the root cause of that problem?" section. Please make use of permalink to link the places where the issue exists. Can you please add more details in "What changes do you think we should make in order to solve the problem?" section as well. Please do include how you are going to achieve the suggested change. Also please let us know how will it impact native apps. Have you tested your solution with edited single emoji? |
Proposal |
@pubudu-ranasinghe Thanks for the update. Your proposal won't solve the issue for all the cases. It won't work in case of markdowns. Try your solution with inline codeblock ( |
@sobitneupane yes you are correct. This solution alone was not handling html comments. I've updated the original proposal to include a fix for this. Proposal |
@sobitneupane thoughts? |
To be clear on this, is this issue caused by #17704? @sobitneupane |
No, it is not. We were going to make use of changes made by #17704. But looks like it is reverted. |
@JmillsExpensify, @pubudu-ranasinghe, @trjExpensify, @NikkiWines, @sobitneupane Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@JmillsExpensify, @pubudu-ranasinghe, @trjExpensify, @NikkiWines, @sobitneupane Still overdue 6 days?! Let's take care of this! |
The associated PR has now merged to main. We will be continuing with our PR. |
Dope! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.20-5 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-07. 🎊 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:
|
👋 @sobitneupane can you run through the checklist please so we can move on with processing payments? Thanks! |
I tried to go back to few commits to find the exact PR which introduced the issue. But could not point to the exact PR Looks like it was present from the very beginning when edited label was introduced in this PR. |
Regression Test Proposal
Do we agree 👍 or 👎 |
Cool, fair enough. We comment there then! :) As for the regression test, we have this one for editing a comment. We could pop it in the offline section. That said, I'd love to offer more direction than just "aligned properly", because who knows if the tester knows what's proper or not. Center aligned? What do you think? Online
Offline
|
Bump on this @sobitneupane:
|
Yup. Center aligned will make it clear.
I don't think we can add it in the section you mentioned above. We need to delete the message after editing in offline. |
Ah yeah fair, okay.. I'll run it by applause. It could go in the delete offline tests perhaps. Issue created here. Okay, let's proceed with the payments. I've sent offers for: $1,000 to @sobitneupane for C+ |
@sobitneupane paid! |
@priya-zha paid! |
@pubudu-ranasinghe paid! Closing, thanks everyone. |
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:
The horizontal line for the edited text should be at the center for the word 'edited' in a similar how android shows it
Actual Result:
The horizontal line for the word 'edited' is not at the center unlike android
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.2.97-2
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
error-2023-04-07_15.48.05.mp4
Expensify/Expensify Issue URL:
Issue reported by: @priya-zha
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1680862318324249
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: