-
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 2023-06-15] [$1000] Deleted message gets highlighted when we send a message, delete the message, visit any other chat and revisit the chat in offline mode #18165
Comments
Triggered auto assignment to @dylanexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
reviewing today! |
ProposalPlease re-state the problem that we are trying to solve in this issue.The deleted message while offline has a hover effect after switching back from another chat. What is the root cause of that problem?The hover effect will show if:
and the condition that it meets is the third one. Why? When we delete a chat, it will show a delete modal by calling App/src/pages/home/report/ContextMenu/PopoverReportActionContextMenu.js Lines 287 to 296 in ce3b938
When we confirm the deletion, we
One thing is missing is to reset the report action id and report id. So, when we reopen the chat, it will remount the component and check, is this chat message has an active context menu? App/src/pages/home/report/ReportActionItem.js Lines 99 to 101 in ce3b938
App/src/pages/home/report/ContextMenu/PopoverReportActionContextMenu.js Lines 110 to 112 in ce3b938
Because we didn't clear the report action id, it will say, yes, a context menu is active for this chat message.
App/src/pages/home/report/ContextMenu/PopoverReportActionContextMenu.js Lines 267 to 277 in ce3b938
UPDATE: It's no longer true because we remove the reportActions reset here What changes do you think we should make in order to solve the problem?Reset both report action and report id in
|
Didn't get to this today due to focusing on ECUK and CPM tasks! Will review tomorrow! |
Posted about this to get clarification on expected behavior. Will update this once we come to a conclusion. |
After discussing we confirmed that this is an expected behavior! @dhanashree-sawant here's where you can find more info! |
Hi @dylanexpensify, In the document, we have mentioned that it should be greyed out but in the issue, the deleted message gets highlighted not greyed out. It gets greyed out when we delete but when we revisit the chat, it gets highlighted. |
I believe that makes sense it's still highlighted while in offline mode, since technically, the delete action hasn't registered 100% yet. I think this would be a bug if we got back online, and the deleted comment did finish deletion, but then still highlighted after switching back. Mind confirming for me it doesn't do that? |
Yes so on going back offline, the deleted message reappears and it is still highlighted, steps I did:
|
And after step 5, is the message now gone? Did you show those steps in the video above? |
No message still exist, sorry I haven't shown that part in the video , I will add new video below with step 6 and 7 shown in it. |
Ah that'd be great if you can show the steps you just commented in a video! Thanks! |
Here is the video 2023-05-04.16-56-58.mp4 |
@dylanexpensify I agree with @dhanashree-sawant that the offline feedback should be the grayed out and strikethrough-ed, but not with the highlight effect. This is consistent with other component that apply the same offline feedback, for example workspaces list. Notice there is no highlight effect. Based on my finding, the chat message is highlighted because the chat message "thought" that there is an active context menu. |
@dhanashree-sawant that new video is super helpful, ty! |
Was able to successfully repro. Thanks for the back and forth here team! |
Job added to Upwork: https://www.upwork.com/jobs/~013afb44ff7c31e750 |
Current assignee @dylanexpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel ( |
Will do a checklist in a day or two, caught up with other priority items! Regarding payment check this! |
@Santhosh-Sellavel let's get this done today 🙌 |
@bernhardoj Could use your help here is the https://github.com/Expensify/App/pull/17348/files#r1165760995 which caused this regression? |
@Santhosh-Sellavel let's get an update here today please! 🙇♂️ |
@flodnv Let me know if differ on any of the above, thanks! |
Bug: Regression Steps
👍 or 👎 |
Reviewing today! |
This is so incredibly niche, I'm not sure it's worth adding a regression test... |
I think we can add it as an edge case test? They only test those once a month? But even then, maybe a bit much haha |
Closing! |
Ah I forgot that was a thing. Maybe edge case makes sense yeah..
…On Wed, Jul 12, 2023 at 11:00 AM Dylan Courtney ***@***.***> wrote:
Closed #18165 <#18165> as
completed.
—
Reply to this email directly, view it on GitHub
<#18165 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA7Y2OMQ464T3RPU6DMHKYDXPZRRJANCNFSM6AAAAAAXPVS5TU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I've had not received payment for this @dylanexpensify will request via NewDot |
Requested Payment on ND |
reopened while we wait for @Santhosh-Sellavel to be paid! Cc @anmurali |
Approved $1500 (with bonus) for Santhosh |
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:
App should not highlight deleted message on revisiting chat in offline mode nor have the deleted message reappear after reconnecting online then offline
Actual Result:
App highlights deleted message on revisiting chat in offline mode and highlight remains intact. App shows deleted message in offline mode even after going back online then offline again.
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.8
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
delete.in.offline.mode.highlights.the.message.mp4
Recording.412.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1682681346161399
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: