Repository navigation
[v2] 网页角色名统一显示「管理员」,不再出现 owner - #370
Merged
Merged
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.
Refs ora-space/circus#1087
改动
网页用户可见文案里的角色名
owner统一改为「管理员」(代码、数据、接口里的owner角色不变):user-menu.tsx:用户菜单角色标签'owner'→'管理员'(成员保持「成员」)login-screen.tsx:登录被拒提示「请让 owner 邀请后再登录」→「请让管理员邀请后再登录」squads/invite-form.tsx:邀请被服务端拒绝的提示「只有 owner 可以邀请成员」→「只有管理员可以邀请成员」,并补了 403 forbidden 单测plugins/page.tsx:member 只读提示「需要工作区 owner 权限」→「需要工作区管理员权限」collaboration/task-views.ts:closeRefusal「或工作区 owner 能…」→「或工作区管理员能…」(同步更新 task-views.test、task-page.test)e2e/multiuser.spec.ts:登录被拒断言同步为「管理员邀请」已全面排查
frontend-v2/src用户可见文案,其余owner均为代码标识符、注释、接口数据或占位符(如ownerEmail、ownerUserId、GitHubowner/repo占位)。测试
vitest815 全过(含新增 forbidden 测试)、tsc、oxlint、vite build全绿multiuser.spec.ts的「管理员邀请」两处断言通过(本地首个多用户测试因 e2e 库的 owner 显示名与 fixture 不一致而失败,与本次文案改动无关;CI 用标准 fixture)截图
用户菜单显示「(管理员)」:
登录被拒提示「请让管理员邀请后再登录」: