Skip to content

Commit d99e262

Browse files
baozhoutaoclaude
andcommitted
fix(showcase): _views 默认列表按运行时键 default 翻译,不是 list
合入 main 后 CI 仍红 451 → 452,本地却绿 —— 差别在于 CI 跑的是**分支与 main 的 合并结果**,而分支落后 main 136 个提交,其中 b3c1f3c#5164)改了 `_views` 的 键法:不带 `name` 声明的容器默认列表被 composer 注册为 `<object>.default`, bundle 的键就是这个裸运行时键。我写的 `_views.list` 是没有任何查找能到达的拼法, 正是 #5164 修掉的那个。 `ContactViews` 的注释里已经把这条定案写清楚了,我照它对齐。 顺带记下这次的教训并写进注释:**落后 main 的分支上「本地绿」不作数** —— 这条 只有在合并结果上才暴露。 合并后复跑:`check-i18n-coverage: OK (none new)`、`pnpm validate` exit 0、 `typecheck` 通过、146 tests passed。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 8498d49 commit d99e262

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • examples/app-showcase/src/system/translations

examples/app-showcase/src/system/translations/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,8 +421,12 @@ export const ShowcaseTranslationBundle = {
421421
fields: { f_lookups: { label: '查找 → 客户(多值)' } },
422422
// 三个视图共用一套门控动作,差别只在「被门控的字段是否也作为列显示」——
423423
// 即客户端是否展开它、投影是否本来就会带上它。见 ui/views/field-zoo.view.ts。
424+
// `_views.default` —— 容器的默认列表:它声明时不带 `name`,composer 把它
425+
// 注册为 `showcase_field_zoo.default`,bundle 的键就是这个裸运行时键
426+
// (#5164,2026-08-06 定案)。写成 `list` 是没有任何查找能到达的拼法 ——
427+
// 本条正是这么错过一次的:分支落后 main 时本地绿、合进 main 后 CI 红。
424428
_views: {
425-
list: { label: '字段动物园' },
429+
default: { label: '字段动物园' },
426430
gated_columns: { label: '被门控字段作为列' },
427431
inline_bulk_defs: { label: '内联批量定义' },
428432
},

0 commit comments

Comments
 (0)