Repository navigation
feat(TAP-13319): align alert center navigation with V2.0 naming - #678
Merged
Merged
Conversation
- 一级菜单改为告警中心 / Alert Center,展开或访问 /alert-center 默认进入通知记录 - 告警列表 / Alerts、通知记录 / Notifications、审计日志 / Audit Logs 等页面与入口三语文案按 V2.0 统一 - 通知详情无关联告警时隐藏查看告警跳转;告警详情的告警设置入口按权限显示 - 告警列表状态筛选默认显示全部状态,覆盖告警中、已恢复和已关闭 - 新增三语文案单测
weiliang110100
marked this pull request as ready for review
November 20, 2026 01:34
Group notification records and alerts under the alert center in the role permission page, drop the removed ops center group, and show the alert center, notifications, alerts and audit logs nodes with the menu names in all locales so permission search matches the new navigation. Permission codes and the saved role mappings are unchanged.
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.
变更说明
依据《TapData「告警中心」菜单及关联页面调整说明》V2.0(2026-11-19,替代 11-05 版),在 TAP-13209 基础上统一告警中心导航、页面名称与入口联动。仅调整导航、文案和入口显示条件,不改接口、数据模型和权限码。
修改后行为:
/alert-center)默认进入通知记录,已在其子页面时只展开不跳转。子菜单顺序与审计日志位置保持不变。v2_alarm_settings_menu权限显示。主要改动:
router/menu.ts、router/routes.ts、layouts/Sidebar.vue、views/notification/{AlarmEvents,AlarmEventDrawer,NotificationRecordDrawer}.vue、三语语言包、views/role/Role.vue;新增views/role/permission-titles.ts、apps/daas/tests/alert-center-naming.test.ts、apps/daas/tests/role-permission-tree.test.ts。不在本次范围:后端 TM 权限描述的三语翻译(其它未翻译分组在英文下仍显示中文描述,属既有状态)、任务监控任务级告警列表文案、已有可用路由路径。
验证
node --test apps/daas/tests/*.test.ts:32 项全部通过(新增 12 项三语文案用例、4 项角色权限分组用例)。pnpm exec eslint(本次改动的非语言包文件):0 错误。语言包文件的 5 项错误(默认导出、daas_cluster_cluster_lianjieshuliang_detail重复键)与基线881dfad6完全一致,非本次引入。pnpm exec prettier --check、node scripts/check-i18n.js(改动文件)、git diff --check:通过。pnpm --filter daas build:成功。84dd979a上 T1–T15 全部通过;验收中发现角色权限页未同步新菜单,已在bc237122修复并为 TAP-13323 补充步骤 10(角色权限页)。bc237122复验通过:权限树与简中/繁中/英文搜索符合预期,权限码与角色映射未变,全量回归 19 PASS / 0 FAIL / 3 WARN(观察项,经研发判断不影响验收);步骤 10 的勾选保存部分经研发决定不验(保存逻辑未改)。风险
openFirstChild的告警中心生效,其它菜单行为不变。IT 用例与覆盖
验证代码:bc237122cc637e51ec2b162627a647ef0b98f2aa
AgenticOps 版本 main-v1.6-69-bce300d8