-
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
LOW: [$500] Unread notification in fevicon does not update when the user is in another tab #32225
Comments
Triggered auto assignment to @adelekennedy ( |
Job added to Upwork: https://www.upwork.com/jobs/~013669a17c30bfb662 |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav ( |
@Julesssss seems to think this was related to this change https://github.com/Expensify/App/pull/31295/files#diff-0812bc9a1458d29651dc472eddb66ec3c320b32473461e75d8dda4fbd6362523L12-R36 @hurali97 can you take a look? |
ProposalPlease re-state the problem that we are trying to solve in this issue.The favicon does not update when a message is received in another tab. What is the root cause of that problem?In What changes do you think we should make in order to solve the problem?Remove the POC.-.favicon.mp4What alternative solutions did you explore? (Optional) |
I am confused, I see the setTimeout, is the setTimeout call never firing? And if so, why? |
I don't know exactly. I assumed that since InteractionManager returns a promise, setTimeout was no longer needed, and that fixed it. |
I don't think they just added it) App/src/libs/UnreadIndicatorUpdater/updateUnread/index.website.js Lines 15 to 16 in 7ede114
|
Yeah, but it was added before the InteractionManager change, right? It seems like a hack to simulate an asynchronous load. Since InteractionManager returns a promise, setTimeout was no longer needed. I know that setTimeout is in a different part of the event loop than a promise, so maybe somewhere along the way it gets tangled up. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Unread notification in fevicon does not update when the user is in another tab What is the root cause of that problem?When the new message come to App, we will create the new action component. This component uses BaseTooltip, and onHoverOut callback is triggered immediately because we don't hover on that component. -> In the detail implementation of RNW, we use In here
we just update unread count after all animations complete -> We can see the updated unread count when back to the main device What changes do you think we should make in order to solve the problem?It doesn't make sense when running
update didHover in here
then update this condition to
ResultScreen.Recording.2023-11-30.at.17.20.08.mp4 |
@hurali97 bump on the request above! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Apologies for the delay here. I was out sick few days. I don't think we should be removing the @tienifr's solution did work for me, but I am trying to understand was this something that stopped working recently and do we have a linked commit that caused this? I also noticed that the latest change was made by this PR last week by @allroundexperts, but even after reverting that, the issue is still reproducible. @iwiznia Are you aware if this was working previously and recently stopped working? |
@mananjadhav After removing |
@hurali97 Yes |
Please re-state the problem that we are trying to solve in this issue.Unread notification in fevicon does not update when the user is in another tab What is the root cause of that problem?The issue occurs because of stemming from the condition What changes do you think we should make in order to solve the problem?https://github.com/Expensify/App/blob/main/src/components/Hoverable/index.tsx#L54
In essence, Video:-https://drive.google.com/file/d/1g-GuLQ2uRzgD0PVTgOm8FgJ1WuD8QwDx/view?usp=sharing |
@adelekennedy, @situchan 8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it! |
@adelekennedy, @situchan 12 days overdue now... This issue's end is nigh! |
This issue has not been updated in over 14 days. @adelekennedy, @situchan eroding to Weekly issue. |
@situchan one new proposal to review above |
@kaushiktd |
@situchan Yes I tested it and then only sent proposal. 🙂 |
Hi there, what's the status of this? What's next, who's doing it, and when will it be done? |
conversation started here on bringing on an agency or reassigning |
@kaushiktd your proposal is deprecated after #33257. Can you please update proposal accordingly? |
@situchan The new code seems to be fixing this issue. It is not reproducible on my end. |
this seems like a great time to try the retest weekly label |
@adelekennedy can you re-test to see if this is still the case? |
can't reproduce - closing this |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.5.3
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: @iwiznia
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1701197419116139
Action Performed:
Expected Result:
Should update the fevicon notification count
Actual Result:
Notification count updates only when clicking the tab 1
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Recording.274.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: