Skip to content
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

Implement email notifications #205

Merged
merged 16 commits into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions server/mail-templates/application-accepted-no-advisor.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<p>Dear {{recipientName}},</p>
<p>
I am delighted to inform you that I would like to take the next steps in supervising your thesis. This includes
writing a proposal and familiarizing yourself with the development environment independently.
</p>
<p>
Please coordinate with the next steps with me using the following link:
<a target="_blank" rel="noopener noreferrer nofollow" href="{{config.workspaceUrl}}">{{config.workspaceUrl}}</a>
</p>
<p>
I would like to emphasize that in undertaking this thesis, you will be assuming the role of project manager for your
thesis project. This role requires proactive communication, high dedication, and a strong commitment to the successful
completion of the project. I have full confidence in your ability to rise to this challenge and produce exemplary
work.
</p>
<p>
I am excited about the opportunity to work with you and am eager to see the contributions you will make to our field.
Please feel free to reach out if you have any questions or need further clarification on any aspect of the
project.
</p>
<p>Congratulations once again, and I look forward to this academic journey with you.</p>

{{config.signature}}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<p>Dear {{student.firstName}},</p>
<p>Dear {{recipientName}},</p>
<p>
I am delighted to inform you that I would like to take the next steps in
supervising your thesis. This includes writing a proposal and familiarizing yourself with the development environment
Expand Down
92 changes: 56 additions & 36 deletions server/mail-templates/application-created-chair.html
Original file line number Diff line number Diff line change
@@ -1,41 +1,61 @@
<p>Dear Chair Members,</p>
<p>there is a new thesis application submitted by <strong>{{student.firstName}}&nbsp;{{student.lastName}}</strong>.</p>
<p>Dear {{recipientName}},</p>

<p>there is a new thesis application submitted by <strong>{{application.user.firstName}}&nbsp;{{application.user.lastName}}</strong>.</p>
<p>We received the following thesis application details:</p>

<hr>
<hr/>

<p><strong>Name:</strong>&nbsp;</p>
<p>{{student.firstName}}&nbsp;{{student.lastName}}</p>
<br/>
<p><strong>Email:</strong>&nbsp;</p>
<p>{{student.email}}</p>
<br/>
<p><strong>University ID:</strong>&nbsp;</p>
<p>{{student.tumId}}</p>
<br/>
<p><strong>Matriculation Number:</strong>&nbsp;</p>
<p>{{student.matriculationNumber}}</p>
<br/>
<p><strong>Study program:</strong>&nbsp;</p>
<p>{{application.studyProgram}}&nbsp;{{application.studyDegree}}&nbsp;(Enrolled at {{application.enrolledAt}})</p>
<br/>
<p><strong>Desired Thesis Start Date:</strong>&nbsp;</p>
<p>{{application.desiredThesisStart}}</p>
<br/>
<p><strong>Special Skills:</strong>&nbsp;</p>
<p>{{application.specialSkills}}</p>
<br/>
<p><strong>Motivation:</strong>&nbsp;</p>
<p>{{application.motivation}}</p>
<br/>
<p><strong>Interests:</strong>&nbsp;</p>
<p>{{application.interests}}</p>
<br/>
<p><strong>Projects:</strong>&nbsp;</p>
<p>{{application.projects}}</p>
<br/>
<p><strong>Thesis Title Suggestion:</strong>&nbsp;</p>
<p>{{application.thesisTitle}}</p>
<br/>
<p>
<strong>Name:</strong><br/>
{{application.user.firstName}}&nbsp;{{application.user.lastName}}
</p>
<p>
<strong>Email:</strong><br/>
{{application.user.email}}
</p>
<p>
<strong>University ID:</strong><br/>
{{application.user.universityId}}
</p>
<p>
<strong>Matriculation Number:</strong><br/>
{{application.user.matriculationNumber}}
</p>
<p>
<strong>Study program:</strong><br/>
{{application.user.studyProgram}}&nbsp;{{application.user.studyDegree}}&nbsp;(Enrolled at {{application.user.enrolledAt}})
</p>
<p>
<strong>Thesis Title Suggestion:</strong><br/>
{{application.thesisTitle}}
</p>
<p>
<strong>Desired Thesis Start Date:</strong><br/>
{{application.desiredStartDate}}
</p>
<p>
<strong>Motivation:</strong><br/>
{{application.motivation}}
</p>
<br/>
<p>
<strong>Special Skills:</strong><br/>
{{application.user.specialSkills}}
</p>
<br/>
<p>
<strong>Interests:</strong><br/>
{{application.user.interests}}
</p>
<br/>
<p>
<strong>Projects:</strong><br/>
{{application.user.projects}}
</p>
<br/>

<p>
Full Details: <a target="_blank" rel="noopener noreferrer nofollow" href="{{applicationUrl}}">{{applicationUrl}}</a>
</p>

<p><strong>You can find the submitted files in the attachment part of this email.</strong></p>
83 changes: 50 additions & 33 deletions server/mail-templates/application-created-student.html
Original file line number Diff line number Diff line change
@@ -1,40 +1,57 @@
<p>Dear {{student.firstName}},</p>
<p>Dear {{recipientName}},</p>

<p>With this email we confirm your successful thesis application submission.</p>
<p>We received the following thesis application details:</p>

<hr>

<p><strong>Name:</strong>&nbsp;</p>
<p>{{student.firstName}}&nbsp;{{student.lastName}}</p>
<br/>
<p><strong>Email:</strong>&nbsp;</p>
<p>{{student.email}}</p>
<br/>
<p><strong>University ID:</strong>&nbsp;</p>
<p>{{student.tumId}}</p>
<br/>
<p><strong>Matriculation Number:</strong>&nbsp;</p>
<p>{{student.matriculationNumber}}</p>
<br/>
<p><strong>Study program:</strong>&nbsp;</p>
<p>{{application.studyProgram}}&nbsp;{{application.studyDegree}}&nbsp;(Enrolled at {{application.enrolledAt}})</p>
<br/>
<p><br><strong>Desired Thesis Start Date:</strong>&nbsp;</p>
<p>{{application.desiredThesisStart}}</p>
<br/>
<p><strong>Special Skills:</strong>&nbsp;</p>
<p>{{application.specialSkills}}</p>
<br/>
<p><strong>Motivation:</strong>&nbsp;</p>
<p>{{application.motivation}}</p>
<br/>
<p><strong>Interests:</strong>&nbsp;</p>
<p>{{application.interests}}</p>
<br/>
<p><strong>Projects:</strong>&nbsp;</p>
<p>{{application.projects}}</p>
<br/>
<p><strong>Thesis Title Suggestion:</strong>&nbsp;</p>
<p>{{application.thesisTitle}}</p>
<p>
<strong>Name:</strong><br/>
{{application.user.firstName}}&nbsp;{{application.user.lastName}}
</p>
<p>
<strong>Email:</strong><br/>
{{application.user.email}}
</p>
<p>
<strong>University ID:</strong><br/>
{{application.user.universityId}}
</p>
<p>
<strong>Matriculation Number:</strong><br/>
{{application.user.matriculationNumber}}
</p>
<p>
<strong>Study program:</strong><br/>
{{application.user.studyProgram}}&nbsp;{{application.user.studyDegree}}&nbsp;(Enrolled at {{application.user.enrolledAt}})
</p>
<p>
<strong>Thesis Title Suggestion:</strong><br/>
{{application.thesisTitle}}
</p>
<p>
<strong>Desired Thesis Start Date:</strong><br/>
{{application.desiredStartDate}}
</p>
<p>
<strong>Motivation:</strong><br/>
{{application.motivation}}
</p>
<br/>
<p>
<strong>Special Skills:</strong><br/>
{{application.user.specialSkills}}
</p>
<br/>
<p>
<strong>Interests:</strong><br/>
{{application.user.interests}}
</p>
<br/>
<p>
<strong>Projects:</strong><br/>
{{application.user.projects}}
</p>
<br/>

<p><strong>You can find the submitted files in the attachment part of this email.</strong></p>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<p>Dear {{student.firstName}},</p>
<p>Dear {{recipientName}},</p>
<p>
Thank you for your interest in pursuing your thesis under my supervision.
I have carefully reviewed your application and supporting documents.
Expand Down
28 changes: 28 additions & 0 deletions server/mail-templates/thesis-assessment-added.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<p>Dear {{recipientName}},</p>

<p>
{{assessment.createdBy.firstName}} {{assessment.createdBy.lastName}} added an assessment to thesis "{{thesis.title}}"
</p>

<p>
<strong>Summary</strong><br />
{{assessment.summary}}
</p>

<p>
<strong>Positives</strong><br />
{{assessment.positives}}
</p>

<p>
<strong>Negatives</strong><br />
{{assessment.negatives}}
</p>

<p>
<strong>Grade Suggestion</strong>: {{assessment.gradeSuggestion}}
</p>

<p>
Full Details: <a target="_blank" rel="noopener noreferrer nofollow" href="{{thesisUrl}}">{{thesisUrl}}</a>
</p>
12 changes: 12 additions & 0 deletions server/mail-templates/thesis-closed.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<p>Dear {{recipientName}},</p>

<p>
{{deletingUser.firstName}} {{deletingUser.lastName}} closed thesis "{{thesis.title}}".
Please contact your advisor or supervisor if you think that this was a mistake.
</p>

<p>
Full Details: <a target="_blank" rel="noopener noreferrer nofollow" href="{{thesisUrl}}">{{thesisUrl}}</a>
</p>

{{config.signature}}
14 changes: 14 additions & 0 deletions server/mail-templates/thesis-comment-posted.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<p>Dear {{recipientName}},</p>

<p>
{{comment.createdBy.firstName}} {{comment.createdBy.lastName}} posted a comment on thesis "{{thesis.title}}"
</p>

<p>
<strong>Message</strong><br />
{{comment.message}}
</p>

<p>
Full Details: <a target="_blank" rel="noopener noreferrer nofollow" href="{{thesisUrl}}">{{thesisUrl}}</a>
</p>
18 changes: 18 additions & 0 deletions server/mail-templates/thesis-created.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<p>Dear {{recipientName}},</p>

<p>
{{creatingUser.firstName}} {{creatingUser.lastName}} created and assigned a thesis to you: <a target="_blank" rel="noopener noreferrer nofollow" href="{{thesisUrl}}">{{thesisUrl}}</a>
</p>

<p>
<strong>Title</strong>: {{thesis.title}}<br />
<strong>Supervisor</strong>: {{thesis.supervisors}}<br />
<strong>Advisor</strong>: {{thesis.advisors}}<br />
<strong>Student</strong>: {{thesis.students}}<br />
</p>

<p>
The next step is that you write a proposal and submit it on <a target="_blank" rel="noopener noreferrer nofollow" href="{{thesisUrl}}">{{thesisUrl}}</a>
</p>

{{config.signature}}
20 changes: 20 additions & 0 deletions server/mail-templates/thesis-final-grade.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<p>Dear {{recipientName}},</p>

<p>
{{thesis.supervisors}} added the final grade to your thesis "{{thesis.title}}"
</p>

<p>
<strong>Final Grade</strong>: {{thesis.grade.finalGrade}}
</p>

<p>
<strong>Feedback</strong><br />
{{thesis.grade.feedback}}
</p>

<p>
Full Details: <a target="_blank" rel="noopener noreferrer nofollow" href="{{thesisUrl}}">{{thesisUrl}}</a>
</p>

{{config.signature}}
14 changes: 14 additions & 0 deletions server/mail-templates/thesis-final-submission.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<p>Dear {{recipientName}},</p>

<p>
{{thesis.students}} submitted thesis "{{thesis.title}}".
</p>

<p>
You can find the submitted files in the attachment part of this email.
The next step is to write an assessment about the thesis.
</p>

<p>
Full Details: <a target="_blank" rel="noopener noreferrer nofollow" href="{{thesisUrl}}">{{thesisUrl}}</a>
</p>
9 changes: 9 additions & 0 deletions server/mail-templates/thesis-presentation-deleted.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<p>Dear {{recipientName}},</p>

<p>
{{deletingUser.firstName}} {{deletingUser.lastName}} cancelled the presentation scheduled at {{presentation.scheduledAt}} for thesis "{{thesis.title}}"
</p>

<p>
Full Details: <a target="_blank" rel="noopener noreferrer nofollow" href="{{thesisUrl}}">{{thesisUrl}}</a>
</p>
29 changes: 29 additions & 0 deletions server/mail-templates/thesis-presentation-scheduled.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<p>Dear {{recipientName}},</p>

<p>
{{presentation.createdBy.firstName}} {{presentation.createdBy.lastName}} scheduled a presentation for thesis "{{thesis.title}}"
</p>

<p>
<strong>Type</strong><br />
{{presentation.type}}
</p>

<p>
<strong>Location</strong><br />
{{presentation.location}}
</p>

<p>
<strong>Stream URL</strong><br />
{{presentation.streamUrl}}
</p>

<p>
<strong>Scheduled At</strong><br />
{{presentation.scheduledAt}}
</p>

<p>
Full Details: <a target="_blank" rel="noopener noreferrer nofollow" href="{{thesisUrl}}">{{thesisUrl}}</a>
</p>
7 changes: 7 additions & 0 deletions server/mail-templates/thesis-proposal-accepted.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<p>Dear {{recipientName}},</p>

<p>
{{proposal.approvedBy.firstName}} {{proposal.approvedBy.lastName}} approved the proposal of thesis "{{thesis.title}}".
The next step is to start writing the thesis.
You can see your submission deadline on <a target="_blank" rel="noopener noreferrer nofollow" href="{{thesisUrl}}">{{thesisUrl}}</a>.
</p>
Loading
Loading