Skip to content

feat: wire remaining dialogs to useModalA11y and unify zh agent terminology - #114

Merged
NeilJo-GY merged 1 commit into
mainfrom
feat/dialog-a11y-zh-i18n
Oct 2, 2026
Merged

NeilJo-GY merged 1 commit into
mainfrom
feat/dialog-a11y-zh-i18n

Conversation

@NeilJo-GY

Copy link
Copy Markdown
Contributor

Summary

  • Dialog a11y 收尾:CreateAgentDialog / ConnectAgentModal 接入共享 useModalA11y(Escape 关闭、焦点陷阱、焦点归还),与全库其他 dialog 对齐;CreateAgentDialog 补 aria-modal,Escape 在创建提交中(acting)被守卫;ConnectAgentModal 删除自写的 Escape 监听器。
  • zh 文案统一:聊天包 zh 段 UI 文案的 agent/Agents/Agent 统一为「智能体」(93 处),与站点 CN 页(claim/join 等)既有术语对齐;保留技术词 agent id / AgentPlanet 与所有 key 名不动;收紧替换后中文与「智能体」之间的多余空格。

已知不处理项(供 review 参考)

  • 同区价格不一致:CN 区 PlanCatalog zh 静态目录显示 Pro ¥58/月、Ultra ¥498/月,而后端 catalog(聊天壳面板与实际支付)为 ¥68/¥328;全球版 subscribe 页硬编码 $20/$200 进 PayPal create-order。分区定价是刻意的,但 CN 区内部两个价格疑似静态目录过期,建议确认后单独 PR 对齐。
  • 聊天壳内「agent id」技术词保留(用户决策)。

Test plan

  • packages/agent-chat 包级 tsc 通过
  • 根 npm run typecheck 通过
  • 人工抽查 zh 界面文案(菜单/空态/钱包/设置)无残留「agent」

…nology

- CreateAgentDialog / ConnectAgentModal: shared useModalA11y (Escape with
  acting guard, focus trap, focus return); add aria-modal, drop the
  hand-rolled Escape listener in ConnectAgentModal.
- zh messages: unify agent/Agents/Agent as 智能体 across UI copy (~93
  strings); keep technical terms (agent id, AgentPlanet) and code
  identifiers untouched; tighten CJK spacing around the replacement.

Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel

vercel Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
interfaze Ready Ready Preview Oct 2, 2026 4:23am UTC

@NeilJo-GY
NeilJo-GY merged commit d950bea into main Oct 2, 2026
3 checks passed
@NeilJo-GY
NeilJo-GY deleted the feat/dialog-a11y-zh-i18n branch October 2, 2026 04:33

This branch was successfully deployed

1 active deployment
Preview — e178dc5a Deployed Oct 2, 2026 by vercel[bot]
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.

1 participant