-
Notifications
You must be signed in to change notification settings - Fork 136
Issue #1985 - notifications reader #2659
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
Conversation
…coding strings
# Conflicts: # src/routes/notifications/helpers/notifications.js
… for all existent cases
…dux store contains the full list of notification which is not bundled and doesn't have prerendered texts. Notifications are bundled and texts are rendered when notifications are displayed. Now store can be used to as a source for all kind of notifications even the one which are not displayed.
…tifications store refactoring
…ications as read only on mount. It works faster and still covers all current use-cases.
RishiRajSahu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall I liked the idea of putting NotificationsReader inside each container with some criteria to mark the notifications as read. Correct Me if I am wrong, So when user opens the project plan page, along with project plan notifications, notifications for timeline and phase-card will also be marked as read ?
|
In general, NotificationReader markes notifications as read when it's rendered i. e. visible for user. In particular for project plan page, when user opens it, notifications related to project plan and phase cards are marked as read, but not for timelines as timelines are not visible initially. Only when user open timeline tab related notifications will be marked as read. Note, that timeline tab suppose to have red cue shown if there are some unread notifications related to timeline, so if we mark such notifications before user openes timeline, he will never see a red cue. |
So far cue will disappear NOT immediately, but after server request is finished. But it will be fixed after the issue #2649 - Hide dismissed notifications without waiting for server response is done. During that issue I'm going to slightly refactor actions, so we will get this behavior for all the cases. I mean everywhere notifications will be marked as read with immediate effect in Connect App. And with reverting
So far per current implementation it should work as expected, i. e.:
|
|
Okay sounds good to me, could we create a separate issue to keep track of phase specific notifications ?
|
Sure, what is the issue there? |
should we include the above notifications as well to show red-cue or not ? Also have to check whether the above progress event always coincides with the timeline progress event or not ? if it coincides we can ignore phase progress updated event. |
So far there were not such requirements in the related issues:
Note, that per issue #2401 only notifications inside tabs affect red cue on the phase card. As per requirements, when we open phase, red cue on the phase disappears and is shown on the particular tab instead. Which implies that phase card by itself doesn't have a red cue.
Coming back to your question. I understand your intention to show red cue for a phase due to phase related notifications. But I don't have a strong opinon on whether we should show it here or no. |

Issue #1985 - notifications reader
NotificationsReaderwhich marks notifications as read by providing a criteria:NotificationReaderis not connected to store directlyNotifcationsReaderonly dispatches action when there are any notifications to be marked as read, otherwise it doesn't dispatch any actionsNotifcationsReaderis mounted. This apeears to cover all our current cases. There is no need tolistenfor new notifications.NotificationsReadermarks notifications asreadper this table https://docs.google.com/spreadsheets/d/1olFRCgXyZy6DTBWmFCJF-MXuhxh80y5JWOKvlSpgguU/edit#gid=1005864840. Note, that there are notifications marked by red color. They don't come to Connect App currently.NotificationReadermark notifications as per notification NOT per bundle. If we don't have original notifications it becomes complicated to properly updated state.goTofor some notifications