On api.wikimedia.org, when I have unread notifications and go to https://api.wikimedia.org/wiki/Special:Notifications and see notifications for other sites. If I click 'mark group as read', the notification count does not update and only updates after page reload.
Description
Description
Event Timeline
Comment Actions
I researched the working of the notifications’ functionality. Notifications’ count updates in the “Unread” section after clicking “Mark as group” and data also changes. So, some similar functionality had already been implemented.
It could be researched with several files:
- Echo/modules/ui/mw.echo.ui.NotificationsInboxWidget
- Echo/modules/ui/mw.echo.ui.CrossWikiUnreadFilterWidget
- Echo/modules/ui/mw.echo.ui.PaginationWidget
Regarding my research, I think that some functionalities which would update the html have to be added in these files and data models which are related to it. Also while I was debugging code, I realized that events must take into account. For example there are some events in section “//Events” of mw.echo.ui.NotificationsInboxWidget. It also helps to update data on the page.