|
|
Overview of how we use and when we send notifications.
|
|
|
|
|
|
## Implementation (from development)
|
|
|
|
|
|
## Cases when we send notifications
|
|
|
|
|
|
### New design proposal
|
|
|
1. Main view we have notifications icon (as a bell), and when we click on it we have a dropdown of 5 notifications. Each of them has title and link to notification itself. There is also subsection of new notifications (nnread ones). At the end of this 5 notifications, we have view all button. Titles need to be changed in order that user can understand what notification is about (summary of subject).
|
|
|
Smth like ![Screenshot_3](uploads/10047a5956ce6d8f25e01b0eb841422c/Screenshot_3.jpg)
|
|
|
### Generic notifications
|
|
|
|
|
|
Generic notifications have their own view. They have only subject and message which re taken from form/params, and those are not defined on translations.
|
|
|
|
|
|
1. **Email to all clients from course edition or group supervisers with particular role.**
|
|
|
|
|
|
This can be done from admin view:
|
|
|
|
|
|
**Steps**: fill out the form on view, the subject is what user fills out in subject, the message is fill out information + hardcoded<span dir="">`"<hr>\\ This message was sent by the`</span> `#{<span dir="">@course_edition</span>.display_name}<span dir="">course staff through Project Forum.\\ You are receiving this email because you are involved with a proposal in the</span>#{<span dir="">@course_edition</span>.display_name}<span dir="">course."</span>`
|
|
|
|
|
|
2. **Project is imported**
|
|
|
|
|
|
We notify clients and employees of the project. Subject and message are taken from the form and adjusted in code.
|
|
|
|
|
|
### All other notifications
|
|
|
|
|
|
Message and subject are specifically hardcoded in translation with parameters.
|
|
|
|
|
|
1. **Groups are imported** : inform all members (_group_imports_controller_)
|
|
|
2. **Groups are imported**: copy specific roles -> send to users with specific roles (supervisers) (_group_imports_controller_)
|
|
|
* we build a message here from the form, we do not keep it in translation
|
|
|
3. **Roles in groups are assigned**: send to everyone who has a role assigned **if a group is approved** (_group_role_import_controller_)
|
|
|
* we build a message here from the form, we do not keep it in translation
|
|
|
4.
|
|
|
|
|
|
### New design proposal
|
|
|
|
|
|
1. Main view we have notifications icon (as a bell), and when we click on it we have a dropdown of 5 notifications. Each of them has title and link to notification itself. There is also subsection of new notifications (nnread ones). At the end of this 5 notifications, we have view all button. Titles need to be changed in order that user can understand what notification is about (summary of subject). Smth like ![Screenshot_3](uploads/10047a5956ce6d8f25e01b0eb841422c/Screenshot_3.jpg) |
|
|
\ No newline at end of file |