You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[finding] objectui: QuickFilterBar JSDoc comments carry Chinese copy — Commandment #-1 applies to comments too #5446
Migrated to objectstack-ai/objectui#4021 under #7167 (file-at-destination ruling, maintainer 2026-08-10). Native GitHub issue transfer is not available to this session's credential, so the card was recreated at the destination; this thread stays as the authoritative history and is linked from the new card. Closing as not planned here — moved, not rejected.
发现于实现 objectstack#5427(objectui PR #3386)时,与该 issue 的缺陷相邻但不同,故单独记录、未在该 PR 顺手改(scope = issue)。
现象
packages/plugin-gantt/src/QuickFilterBar.tsx第 41 / 43 行的 JSDoc 注释里写着中文文案:AGENTS.md 诫条 #-1 的措辞覆盖注释,不止用户可见文案:"All user-facing text (component labels, buttons, titles, errors), code comments, docs …, and console/log messages MUST be English."
为什么是 observation-class 而不是缺陷
ObjectGantt把 label 写死了,QuickFilterBar本身行为正确(纯展示 + 回退英文),这一点在 objectui:ObjectGantthardcodes Chinese quick-filter labels — English-only-codebase violation, and the gantt toolbar is Chinese in every locale #5427 正文里已有明确结论;ObjectGantthardcodes Chinese quick-filter labels — English-only-codebase violation, and the gantt toolbar is Chinese in every locale #5427 把四条文案挪进gantt.quickFilter词条,注释里的中文示例已经不再对应任何调用点的字面量,更像是历史残留。建议
改成纯英文,并顺带指向新的词条键,例如:
同文件第 40-49 行的
QuickFilterLabels其余成员注释一并扫一遍即可。packages/plugin-gantt/src/QuickFilterBar.test.tsx:40也用中文字面量做 label 夹具 —— 那是测试数据(正在验证 label 透传),不属于本条,是否统一按英文夹具改写由维护者定。严重度交 PM triage,不自行判定。
Generated by Claude Code