[CoLab] [Task Manager] Send notification email now
The purpose of this task is to allow editors to send email notifications immediately, as an action as opposed to a scheduled task.
Action vs scheduled tasks;
- We have defined an action task as a task that does not have a designated due date. Thus the task can be actioned at any time and remains in progress until the status is modified manually by an editor. Emails notifications are sent when the editor clicks on 'Send email'.
- Scheduled tasks have a due date as applied in the task builder>Field>Duration. Setting the status to 'start' enables the due date. Emails are sent when the due date lapses.
UI; Figma
Acceptance criteria;
-
Task & Notifications modal; a 'Send email' button displays for all recipients added to the notifications list. Clicking on 'Send email' sends an email notification immediately. -
When clicking 'Send email', use the 'action/animated button' to signal to the editor that an email notification has been sent. -
A record of all action or scheduled email notifications should be logged under the 'Show all email notifications sent'. Example of record format; [insert email notification template name] Email sent by Kotahi to [insert username/Name]. If an email fails to be sent a record should be logged; [insert email notification template name] Email failed to send from Kotahi to [insert username/Name] -
'show/hide' Email notification records. Display a count of all notifications sent for a task. -
An admin/editor should be able to select both the 'Author invitation' or 'Reviewer invitations' from the recipient notifications dropdown menu.