refactor(web): 侧栏「用户与组织」更名为「用户管理」

背景:
- 管理中心侧栏菜单名为「用户与组织」,与「角色管理」「部门管理」的命名方式不一致;
- 页面标题、面包屑仍沿用旧名,三处展示不统一;
- A1 文档与代码注释中该功能域本来即称「用户管理」。

改动:
- nav-config:菜单 label 改为「用户管理」,description 改为「成员账号、部门归属与登录状态」;
- breadcrumbs:用户新建 / 详情子路由的面包屑 2 处同步;
- UsersPage:页面 h1 同步;
- nav-config.spec / breadcrumbs.spec / e2e a1-identity 的标签与 heading 断言同步;
- 11-前端路由与目录规范、AppLayout 注释同步;PRD P-01 功能名保持「用户与组织管理」不变。

影响面:
- 仅前端文案与对应断言;路由、权限点、接口、数据均不变。

回滚方式:
- 回滚本提交即恢复原「用户与组织」文案与断言。

验证证据:
- pnpm format:check / lint / typecheck 通过;
- pnpm test:web 120/120 通过;
- Chrome 1440×900 实机:侧栏、面包屑、页面标题均显示「用户管理」。
This commit is contained in:
Stev_Wang committed 2026-11-03 15:54:13 +08:00
1 parent 3e384febf3
commit f849e443d7
8 files changed
+14 -14

No files matched your search

+2 -2
View File
@@ -408,7 +408,7 @@ async function submitLogin(page: Page): Promise<void> {
async function expectUsersPage(page: Page): Promise<void> {
await expect(page.getByTestId('app-shell')).toBeVisible();
await expect(page.getByRole('heading', { name: '用户与组织' })).toBeVisible();
await expect(page.getByRole('heading', { name: '用户管理' })).toBeVisible();
}
async function readSession(page: Page): Promise<SessionSnapshot> {
@@ -641,7 +641,7 @@ test('④ 停用后旧会话被拒(40301),再登录提示「账号已停
await page.goto('/system/users');
await expect(page).toHaveURL(/\/login/);
await expect(page.locator('.lx-login__notice')).toContainText('账号已被停用');
await expect(page.getByRole('heading', { name: '用户与组织' })).toHaveCount(0);
await expect(page.getByRole('heading', { name: '用户管理' })).toHaveCount(0);
await expect
.poll(
async () =>