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
Migrated from objectstack-ai/objectstack#5446 under the file-at-destination ruling (objectstack-ai/objectstack#7167, maintainer 2026-08-10). Originally filed 2026-08-05T12:09:38Z. The full prior thread — including triage rulings and hold/restart conditions — remains on the source issue and MUST be read before acting on this card.
发现于实现 objectstack#5427(objectui PR objectstack-ai/objectstack#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 objectstack#5427 正文里已有明确结论;ObjectGantthardcodes Chinese quick-filter labels — English-only-codebase violation, and the gantt toolbar is Chinese in every locale objectstack#5427 把四条文案挪进gantt.quickFilter词条,注释里的中文示例已经不再对应任何调用点的字面量,更像是历史残留。建议
改成纯英文,并顺带指向新的词条键,例如:
同文件第 40-49 行的
QuickFilterLabels其余成员注释一并扫一遍即可。packages/plugin-gantt/src/QuickFilterBar.test.tsx:40也用中文字面量做 label 夹具 —— 那是测试数据(正在验证 label 透传),不属于本条,是否统一按英文夹具改写由维护者定。严重度交 PM triage,不自行判定。
Generated by Claude Code