Repository navigation
fix: 支持继续添加账号运维通知邮箱 - #1130
Merged
Merged
fix: 支持继续添加账号运维通知邮箱#1130
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
解决的问题与行为变化
账号运维已支持最多 10 个收件邮箱,但保存第一个邮箱后,“添加通知渠道”中的邮箱选项会被禁用,用户无法从添加入口继续加入收件人。
本次让已有邮箱时仍可选择添加,弹窗显示并保留现有地址,将新输入合并、忽略大小写去重,超过 10 个地址时阻止保存。编辑入口继续修改完整收件人列表,通知卡片逐行展示全部地址。
实际组件截图用固定的修复前提交作为对照,包括原有国模余额刷新截图,避免后续 PR 基线已包含修复时错误要求复现旧行为。
关联记录与来源
production,开发基线6dc962e5f6d0f11521e981c435acd0613c3b1d82。管理员新功能提示
NEW_FEATURE_NOTICES.accountOpsMultipleEmails,本次是既有多邮箱入口修复,不重新公告。NewFeatureBadge。复现与验收
ops@example.test作为现有收件人,已有 5 个 Webhook 且未配置 Webhook 加密密钥。oncall@example.test;保存后两个地址均保留,原邮件通道名称不变;重复地址只保留一份;达到 10 个时停止新增,仍可编辑列表。配置传输补充
沿用
PUT /admin/account-ops/notification-settings的recipient字符串,只提交收件列表和原邮件通道名称。不修改全局提醒开关、余额阈值或请求失败规则。后端邮箱格式校验、逐收件人投递与失败重试保持既有行为。无模型请求、流式或业务重试改动。实际验证
git diff --checkmake test-frontend9e64e84b0f07bfb655b4bcb2f86fd0ec0479f9df:账号运维回归、构建及实际组件截图.github/scripts/account-ops-add-email-screenshots.mjs最终 head 的 CI 截图附件,
add-email/内包含before-zh-entry.png、after-zh-entry.png、after-zh-append.png及英文对应图片。已复查中文追加弹窗和中英文入口截图,内容清晰,虚构地址无敏感信息。来源 SHA 为9e64e84b0f07bfb655b4bcb2f86fd0ec0479f9df;截图来自实际 Vue 组件和 mock API,不能作为整页导航或生产投递证明。首次 CI 在已有国模余额刷新截图的对照基线断言失败;已将其固定到真实修复前提交并通过最终 head 的前端流水线。另补充等待弹窗切换完成,避免截图停在过渡动画。
最终 head
9e64e84b0f07bfb655b4bcb2f86fd0ec0479f9df的全部已触发检查结束:20 项通过,18 项由工作流条件跳过,0 失败、0 待执行。账号运维测试、集成与截图流水线。合并前核对远端 production 的新增提交未改动本 PR 涉及文件及贡献指南。兼容性与运行影响
文档与用户可见变化
同步中文和英文提示:明确可继续添加、现有邮箱保留及 10 个上限。通知卡片逐行列出地址。合并不代表已发布或部署。
Agent 使用声明
提交前自查