Skip to content

ONE-26: Email 通知渠道每用户 SMTP 配置界面 - #136

Merged
mapxn merged 1 commit into
mainfrom
agent/mary/50a32b3f8657
Oct 22, 2026
Merged

mapxn merged 1 commit into
mainfrom
agent/mary/50a32b3f8657

Conversation

@mapxn

@mapxn mapxn commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

ONE-26 前端:Email 通知渠道每用户 SMTP 配置界面。

  • Email 渠道表单新增 smtp_host、smtp_port、smtp_username、smtp_password、smtp_from,并补上 from_name(契约字段)。
  • smtp_port 输入与提交均为字符串(inputMode=numeric 仅改善移动端键盘)。
  • smtp_password 为 password 输入:GET 回显 ••••••,原样(或空)提交即保留旧值,前端不做明文回显。
  • Email 字段 label/提示走 i18n(channels.*,zh/en 各 8 条),其他渠道保持原样。
  • 不涉及后端与设置页「邮件服务」。

验证:cd web && pnpm build(tsc -b + vite build)通过;biome lint . 无新增问题;headless Chrome 手测见子单评论。

…el (ONE-26)

Add smtp_host / smtp_port / smtp_username / smtp_password / smtp_from and
from_name to the Email channel form in Channel Management, keeping the
frozen notification_configs.email_config contract:

- smtp_port stays a string on input and in the PUT body.
- smtp_password uses a password input; the API echoes •••••• and the value
  is submitted back unchanged (or empty) so the backend keeps the old one.
- Email field labels/hints are localized through new channels.* keys in
  zh.json / en.json; other channels keep their existing labels.
- Values are trimmed before submitting; the Email card explains that it is
  independent of Settings → Email Service (system mail untouched).

Co-authored-by: multica-agent <github@multica.ai>
@mapxn
mapxn merged commit 8c7b07c into main Oct 22, 2026
1 check passed
@mapxn
mapxn deleted the agent/mary/50a32b3f8657 branch October 22, 2026 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant