mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-01 21:44:27 +00:00
feat(notification): add email notification infrastructure, smtp configuration, and periodic background delivery job (#431)
* feat(notification): add email notification support and dedicated workflow * feat(webui): add team email notification settings and test email dialog * refactor(webui): remove redundant card header from email notification settings * fix(notification): prevent sending notification emails to AI agents * feat(notification): display project, avatar, upload time and resolve mention names in notification emails * refactor(notification): remove uploadDebounceSeconds and naive workflow sleep * refactor(notification): remove temporal notification workflow and keep email infrastructure * fix(team): prevent leaking email notification settings and credentials in team settings * feat(notification): add periodic background job for batched email notification delivery * fix(notification): embed avatars and thumbnails as inline cid attachments
This commit is contained in:
@@ -295,6 +295,39 @@
|
||||
"kanban_comments": "Kanban Comments",
|
||||
"when_kanban_task_commented": "When someone comments on a task",
|
||||
|
||||
"email_notifications": "Email Notifications",
|
||||
"email_notifications_description": "Configure SMTP settings for sending email notifications to team members.",
|
||||
"enable_email_notifications": "Enable Email Notifications",
|
||||
"enable_email_notifications_description": "Send email notifications for comments, mentions, uploads, and other team activity.",
|
||||
"smtp_settings": "SMTP Server Settings",
|
||||
"smtp_host": "SMTP Host",
|
||||
"smtp_host_placeholder": "e.g. smtp.example.com",
|
||||
"smtp_port": "SMTP Port",
|
||||
"smtp_username": "Username",
|
||||
"smtp_username_placeholder": "e.g. user@example.com",
|
||||
"smtp_password": "Password",
|
||||
"smtp_password_placeholder": "Enter SMTP password",
|
||||
"smtp_password_keep_placeholder": "•••••••• (Leave blank to keep current)",
|
||||
"smtp_secure": "SSL / TLS (SMTPS)",
|
||||
"smtp_secure_description": "Connect directly over SSL/TLS (commonly used with port 465).",
|
||||
"smtp_ignore_cert": "Ignore Certificate Errors",
|
||||
"smtp_ignore_cert_description": "Allow self-signed or unverified SSL/TLS certificates.",
|
||||
"sender_settings": "Sender Information",
|
||||
"sender_from": "From Address",
|
||||
"sender_from_description": "Sender email address, for example: \"Shumai <noreply@example.com>\". Make sure to use an address you're allowed to send emails from.",
|
||||
"sender_reply_to": "Reply-To Address",
|
||||
"sender_reply_to_description": "Optional address where replies to notifications should be directed.",
|
||||
"save_and_send_test_email": "Save & Send Test Email",
|
||||
"send_test_email": "Send Test Email",
|
||||
"send_test_email_dialog_description": "Sender email address, for example: \"Shumai <noreply@example.com>\". Make sure to use an address you're allowed to send emails from.",
|
||||
"test_email_sent_successfully": "Test email sent successfully",
|
||||
"failed_to_send_test_email": "Failed to send test email",
|
||||
"email_settings_saved": "Email settings saved successfully",
|
||||
"failed_to_save_email_settings": "Failed to save email settings",
|
||||
"failed_to_load_email_settings": "Failed to load email settings",
|
||||
"smtp_host_required": "SMTP Host is required",
|
||||
"from_address_required": "From address is required",
|
||||
|
||||
"api_tokens": "API Tokens",
|
||||
"api_tokens_description": "Generate and manage API tokens. These tokens allow you or your agents to run terminal commands via shumai-cli.",
|
||||
"developer_settings": "Developer Settings",
|
||||
|
||||
@@ -295,6 +295,39 @@
|
||||
"kanban_comments": "看板评论",
|
||||
"when_kanban_task_commented": "当有人在任务中发表评论时",
|
||||
|
||||
"email_notifications": "邮件通知",
|
||||
"email_notifications_description": "配置用于向团队成员发送邮件通知的 SMTP 设置。",
|
||||
"enable_email_notifications": "启用邮件通知",
|
||||
"enable_email_notifications_description": "当有评论、提及、上传及其他团队活动时发送邮件通知。",
|
||||
"smtp_settings": "SMTP 服务器设置",
|
||||
"smtp_host": "SMTP 主机",
|
||||
"smtp_host_placeholder": "例如 smtp.example.com",
|
||||
"smtp_port": "SMTP 端口",
|
||||
"smtp_username": "用户名",
|
||||
"smtp_username_placeholder": "例如 user@example.com",
|
||||
"smtp_password": "密码",
|
||||
"smtp_password_placeholder": "输入 SMTP 密码",
|
||||
"smtp_password_keep_placeholder": "••••••••(留空以保持当前密码)",
|
||||
"smtp_secure": "SSL / TLS (SMTPS)",
|
||||
"smtp_secure_description": "直接使用 SSL/TLS 连接(通常用于 465 端口)。",
|
||||
"smtp_ignore_cert": "忽略证书错误",
|
||||
"smtp_ignore_cert_description": "允许自签名或未验证的 SSL/TLS 证书。",
|
||||
"sender_settings": "发件人信息",
|
||||
"sender_from": "发件人地址",
|
||||
"sender_from_description": "发件人邮箱地址,例如:“Shumai <noreply@example.com>”。请确保使用您有权使用的邮箱地址进行发送。",
|
||||
"sender_reply_to": "回复地址",
|
||||
"sender_reply_to_description": "通知邮件回复时指向的可选邮箱地址。",
|
||||
"save_and_send_test_email": "保存并发送测试邮件",
|
||||
"send_test_email": "发送测试邮件",
|
||||
"send_test_email_dialog_description": "发件人邮箱地址,例如:“Shumai <noreply@example.com>”。请确保使用您有权使用的邮箱地址进行发送。",
|
||||
"test_email_sent_successfully": "测试邮件发送成功",
|
||||
"failed_to_send_test_email": "发送测试邮件失败",
|
||||
"email_settings_saved": "邮件设置已保存",
|
||||
"failed_to_save_email_settings": "保存邮件设置失败",
|
||||
"failed_to_load_email_settings": "加载邮件设置失败",
|
||||
"smtp_host_required": "必须提供 SMTP 主机",
|
||||
"from_address_required": "必须提供发件人地址",
|
||||
|
||||
"api_tokens": "API 令牌",
|
||||
"api_tokens_description": "生成和管理 API 令牌。这些令牌允许您或您的智能体通过 shumai-cli 运行终端命令。",
|
||||
"developer_settings": "开发者设置",
|
||||
|
||||
Reference in New Issue
Block a user