Feature/email templates
Targets #1196 (closed)
Summary
- Added email templates based on the doc mentioned in the task description
- Fixed colab list of templates for reviewerInvitation and corrected with the right template
reviewInvitation
- Added a custom logic in
userCommsUtils
that identifies the recipient as editor, reviewer or author (author is default). This is done to calculate the decision page URL and share it as a dynamic variable in the templates. The logic is as follows:- Editor => Url is
baseurl/versions/manuscriptid/decision
- Reviewer => Url is
baseurl/versions/manuscriptid/review
- Author => Url is
baseurl/versions/manuscriptid/submit
- Editor => Url is
- Fixed a bug in decision page when submitting a decision, the frontend was throwing error for invalid use of spread operator.