-
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
[Bug] [$2000] The browser tab shows (1) New Expensify even though there are no unread messages in the LHN #8005
Comments
Triggered auto assignment to @NikkiWines ( |
Made a snippet to show the keyvaluepairs containing an let connection = indexedDB.open('OnyxDB', 2);
let unreadReportKVPs;
connection.onsuccess = (e) => {
const database = e.target.result;
const transaction = database.transaction(['keyvaluepairs']);
const objectStore = transaction.objectStore('keyvaluepairs');
const keyvaluepairsPromise = objectStore.getAll();
keyvaluepairsPromise.onsuccess = (e) => {
let keyvaluepairs = e.target.result;
unreadReportKVPs = keyvaluepairs.filter((object) => {
if (typeof(object) === 'object') {
return object.unreadActionCount > 0;
}
return false;
});
console.log(unreadReportKVPs);
};
}; |
I think this can probably be an external issue? I'm not personally experiencing this so it's a bit difficult to debug. |
Triggered auto assignment to @adelekennedy ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel ( |
Triggered auto assignment to @Beamanator ( |
@Santhosh-Sellavel @Beamanator it looks like the slack convo is still evolving but I wanted to get the job posted this week |
This comment was marked as outdated.
This comment was marked as outdated.
@K4tsuki Can you answer the following questions.
|
This comment was marked as outdated.
This comment was marked as outdated.
@K4tsuki Can you clearly make a new proposal, with the changes you are proposing. |
This comment was marked as outdated.
This comment was marked as outdated.
@Beamanator Room feature comes out of beta, addressing the issue would be unnecessary. What do you say? |
@Santhosh-Sellavel to be clear, are you thinking this issue will be resolved once the room features are out of beta? If yes can you explain why? Also @K4tsuki thanks so much for your ideas so far, are you able to reproduce the issue regularly? If so, I assume you've tested your proposal with the reproduction steps and you're not seeing the issue anymore with your proposed changes? |
This comment was marked as outdated.
This comment was marked as outdated.
The issue occurs due to messages received in default or user-created rooms. Look at the attachments below with/without beta for the room feature. Notification count in the header doesn’t make sense only when the user does not have the beta. So I believe when the room features are out of beta, this issue becomes invalid. If room beta is availableif room beta is not availablecc: @Beamanator |
I know this is on hold, but the bug is VERY annoying |
still holding |
Agreed it's annoying, luckily the Unread Indicator Improvements doc is now out! (thanks to Marc) |
still on hold (despite how annoying it is 😂 ) |
Ok so back with an update here and I think this one can come off HOLD. We have changed how this feature works and squashed most of the bugs related to Unread Indicators - but this one is a bit elusive as it seems related to be a browser bug. It's not reproducible on Safari AFAICT - yet it is very consistently reproducible on Chrome. All you have to do is...
What's weird is that if you log out the "count" when we programmatically set it then shows Somewhat recent SO post about this here: https://stackoverflow.com/questions/72982365/setting-document-title-doesnt-change-the-tabs-text-after-pressing-back-in-the So it seems related to how Chrome is handling the document.title = '';
document.title = hasUnread ? `(${totalCount}) ${CONFIG.SITE_TITLE}` : CONFIG.SITE_TITLE; I tried it and it worked (kind of) the count will clear but navigating back will make the old count flash briefly. IMO this is better than telling someone that they have an unread message when they do not, but not totally ideal. Haven't found much info on this bug so I suspect it is relatively new, but maybe it will just go away with time (or if we complain to the Chome team). |
I'm going to open a PR with the change since I think it is super annoying to see the incorrect count and would rather have a brief incorrect flash than totally incorrect. |
Are we opening this back up for any proposals? @Beamanator @Santhosh-Sellavel |
Hmm are we able to consistently reproduce anymore? I don't have the |
Yes, it still happens. |
I have a PR to fix it if you want to look @Beamanator #11160 It's hacky but the issue is a browser bug and I have no better way to work around it. |
Slack convo on payment here |
as discussed in Slack compensation is due for this job! @Santhosh-Sellavel @thesahindia sent you offers |
Accepted thanks @adelekennedy! |
Did you get a solution? |
As discussed in Slack compensation is due for this job! @jliexpensify @UpworkBartkoski sent you offers |
I propose 2 changes. We must update the file Reference on StackOverflow about Stale Navigation Title
For the second change, we can implement a event listener to detect when user navigates back or forward so we can trigger a update when no new changes are received / detected by the Onyx listeners. This would be implemented on |
Looks like something related to As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our Feel free to drop a note in #expensify-open-source with any questions. |
Accepted, thanks! |
@xtealer, this doesn't need a solution anymore. Please check others issues with the help wanted label. |
Bump @adelekennedy |
@adelekennedy bump! |
These closed issues always get me - both have been paid out 2k |
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:
When user has no unread messages it should not display any counter.
Actual Result:
The browser tab shows (1) New Expensify even though there are no unread messages in the LHN
Workaround:
unknown
Platform:
Where is this issue occurring?
Version Number: 1.1.41-0
Reproducible in staging?: Y
Reproducible in production?: Y
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: @quinthar
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1646285973562329
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: