-
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 2024-08-09] [$250] ‘New messages’ banner shows up every time for the sender when sending a message to a chat report #43486
Comments
Triggered auto assignment to @alexpensify ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.New message floating banner shows every time adding a new message. What is the root cause of that problem?One of the condition that will show the new message floating banner is
App/src/pages/home/report/ReportActionsList.tsx Lines 682 to 683 in 95c8202
When we send a new message, we optimistically update both report and report actions. App/src/libs/actions/Report.ts Lines 511 to 522 in 95c8202
However, the component received the report optimistic update first which makes It's because for report onyx, we use useOnyx, App/src/pages/home/ReportScreen.tsx Line 151 in 95c8202
and for report actions, we use withOnyx, App/src/pages/home/ReportScreen.tsx Lines 760 to 764 in 95c8202
so their state update are not batched together. What changes do you think we should make in order to solve the problem?Convert report actions from withOnyx to useOnyx.
Based on @youssef-lr comment, we can convert the other withOnyx to useOnyx too.
|
I'll test this one tomorrow. |
@alexpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
No update yet |
@youssef-lr - I followed up in the Slack thread since I'm unable to replicate the experience: |
I was able to replicate the experience if you overload a chat with a ton of activity. Also, I think the issue might be the response trying to catch up. I'm going to mark this as external, but I think @youssef-lr should be involved in the review. 2024-06-18_22-14-17.mp4 |
Job added to Upwork: https://www.upwork.com/jobs/~01e44bca9dc779dfff |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @shubham1206agra ( |
@shubham1206agra can you please review if the proposal here will fix the issue? Thanks! |
@shubham1206agra any update regarding the proposal here? Thanks! |
@bernhardoj Can you create a test branch? So we can test this. |
@shubham1206agra here is the test branch |
@bernhardoj |
@bernhardoj - can you please update your proposal based on the feedback here? Thanks! |
Updated my proposal |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.9-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 2024-07-26. 🎊 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:
|
Noted the payment date is tomorrow |
@alexpensify The PR was reverted and #45711 is waiting on @youssef-lr. |
@shubham1206agra, thank you for that update! I've updated the GH. We will continue with the payment process after this second PR goes into production and then clears the regression period. |
Weekly Update: Waiting on #45711 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.15-9 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-08-09. 🎊 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:
|
I was OOO on Friday and will work on the payment process tomorrow. |
Payouts due: 2024-08-09
Upwork job is here. |
@alexpensify Accepted offer |
Requested in ND. |
I've completed the payment process in Upwork - #43486 (comment) Closing for now since the remaining payment will be handled via Chat. |
$250 approved for @bernhardoj |
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: 1.4.81-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
Expensify/Expensify Issue URL:
Issue reported by: @youssef-lr
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1718058418632669
Action Performed:
Expected Result:
New message
banner should not appear for the sender (user A)Actual Result:
‘New messages’ banner shows up every time sending a new message in a chat, the message is coming from user A
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
RPReplay_Final1718058334.MP4
TKUV5746.MP4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @alexpensifyThe text was updated successfully, but these errors were encountered: