Automattic / notifications-panel

Core notifications panel for WordPress.com notifications
0 stars 1 forks source link

Notifications dot sometimes does not appear #178

Open gwwar opened 7 years ago

gwwar commented 7 years ago

When folks have new notifications sometimes they do not see the orange dot on Calypso or on a Site masterbar. Investigate to see if the clients are marking items as read too early, or if this is an issue with related endpoints.

Originally reported by @wensco and @dougaitken

dougaitken commented 7 years ago

My main scenario around this is being on some *wordpress.com site and seeing a notification coming through on my phone via beta WordPress.com iOS app. I see the alert on my locked screen, and go to a tab with a p2 or the main Reader, however rarely when I get to a tab with the notification bell, does it have the unread orange dot. I open the notifications panel, and all the pings are still there highlighted as unreal.

Will look to reproduce as best I can over next few days. Thanks

wensco commented 7 years ago

Some additional troubleshooting notes in case they are helpful....

kwight commented 7 years ago

After a similar sounding Slack report (p1507650135000110-slack-notificationz) today, I took a look to see what could be causing this.

It appears to be masterbar-specific. If I get a notification while in an active tab with a masterbar, a call to notifications/seen is fired right away, and the orange dot will not appear. Getting a notif while the Calypso tab is active will behave as expected (orange dot appears), but as soon as I switch to the masterbar tab again, the notifcations/seen call gets made, and the dot disappears (for all of my clients, Calypso tabs and mobile apps included, which makes sense). I haven't been able to determine where that call gets made yet though, or why – @roundhill , can you get further than me on this?

wensco commented 7 years ago

@kwight or @gwwar any idea on how to get this fixed or any sort of time line?

kwight commented 7 years ago

@wensco Kerry is on holidays for another week, but we'll try to get it sorted ASAP.

roundhill commented 7 years ago

I haven't been able to determine where that call gets made yet though, or why – @roundhill , can you get further than me on this?

Taking a look at this now!

thehenrybyrd commented 7 years ago

I'm also having trouble with the notifications dot not appearing. At the moment, the issue appears to be isolated to the masterbar, where the orange dot appears only briefly. Once the site (such as my team p2) is done with the initial load, the dot disappears. That also means the dot disappears on sites (such as logged-in WordPress.com) where I don't see the masterbar. So, if I load WordPress.com first, I'll have the orange dot there. If I load a p2 first, the dot will disappear, notifs are presumably marked as seen, and the dot doesn't appear in other places after that.

I don’t see any warnings or errors in the JS console, either, though there are a bunch of [Violation] if I don’t filter out verbose.

screen shot 2017-10-10 at 10 12 12 am

Chatted with @dmsnell about this a bit, he and @kwight say it sounds like the tab with the masterbar open is sending a call to seen, which would then trigger the dot being cleared.

Let me know if there's any other info I can grab from my browser - this is happening quite regularly, so I think I'll be able to reproduce as necessary.

Edit - sorry for the delay, this is the report @kwight mentioned a few days ago.

roundhill commented 7 years ago

I have a fix coming for the master bar dot disappearing. We'll review and deploy on Monday ;)

roundhill commented 7 years ago

The fix for the disappearing master bar dot has been deployed. We still have more to do with syncing the seen state, but for now it should work as expected for most.

rodrigoi commented 6 years ago

I'm reopening this issue because it's back. Or was never completely fixed. The bell icon does not have a consistent behaviour between Calypso and the Masterbar, apparently depending on a variety of factors including browser focus, number of unread notifications and notification types. Will try to get repeatable steps for a couple cases.

rodrigoi commented 6 years ago

related: #185