Add email notification on new lesson comment

Notify admins/curators (or configured notificationEmails) when a student
leaves a comment under a lesson. New setting notifyOnComment (default on) +
toggle in admin settings. Fires only for student comments, not admin/curator
replies; comment text is HTML-escaped in the email.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-01 10:02:07 +05:00
parent d20e277535
commit 7c8e72cd94
4 changed files with 53 additions and 2 deletions
+5
View File
@@ -274,6 +274,11 @@ export function SettingsForm({ initial }: { initial: Settings }) {
checked={bool("notifyOnHomework")}
onChange={(v) => set("notifyOnHomework", v ? "true" : "false")}
/>
<Toggle
label="Уведомлять о новом комментарии под уроком"
checked={bool("notifyOnComment")}
onChange={(v) => set("notifyOnComment", v ? "true" : "false")}
/>
<Toggle
label="Уведомлять о новой регистрации ученика"
checked={bool("notifyOnRegistration")}