Skip to content

copy(permission): soften high-risk card title to 敏感操作申请 - #20

Merged
RowitZou merged 1 commit into
mainfrom
feature/card-copy
Jun 14, 2026
Merged

copy(permission): soften high-risk card title to 敏感操作申请#20
RowitZou merged 1 commit into
mainfrom
feature/card-copy

Conversation

@RowitZou

Copy link
Copy Markdown
Owner

What

高危权限审批卡的标题从 高危操作申请 / "high-risk operation request" 软化为 敏感操作申请 / "sensitive operation request"

Why

用户反馈红色 + "高危" 看起来过于吓人。但红色严重度本身是 load-bearing 的——它只在窄的破坏性集合触发(rm/sudo/eval、系统 & 凭证路径写入、飞书破坏性删除),并且和「禁用"以后都允许"按钮」绑死。降成黄色会让 rm -rf 和一次普通工具调用视觉上无法区分。

所以保留红色 + 保留禁用 always-allow,只软化标题措辞,让卡片读起来是「请留意」而非「高危」。

Scope

只动 src/i18n/locales.ts 两个字符串值(zh/en 同步),不动 key、不动 _shapeCheck、不动严重度逻辑(high-risk.ts / permission-card.tsred template 与按钮裁剪均不变)。

🤖 Generated with Claude Code

The high-risk permission card stays red and keeps the disabled
"always allow" button — the severity signal is load-bearing since
it only fires on a narrow destructive set (rm/sudo/eval, system &
credential path writes, Feishu destructive deletes). Only the title
wording is softened from 高危操作申请 / "high-risk operation request"
to 敏感操作申请 / "sensitive operation request" so the card reads as
"pay attention" rather than alarming. en/zh kept in sync.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 14, 2026 02:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Feishu permission-approval card copy to reduce alarm while keeping the “high-risk” visual severity and behavior unchanged (red template + no “allow always” for high-risk).

Changes:

  • Update zh-CN Feishu high-risk card title from “高危操作申请” to “敏感操作申请”.
  • Update en Feishu high-risk card title from “high-risk operation request” to “sensitive operation request”.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@RowitZou
RowitZou merged commit 99f67d8 into main Jun 14, 2026
1 check passed
@RowitZou
RowitZou deleted the feature/card-copy branch June 14, 2026 02:28
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.

2 participants