Skip to content

Commit 569b88a

Browse files
committed
chore(platform-objects): picklist type label in the metadata-forms translation bundles
Claude-Session: https://claude.ai/code/session_01Sfe5YjBLwB9J3y8fvm2xq1 Co-authored-by: Claude <noreply@anthropic.com>
1 parent 0e70e85 commit 569b88a

5 files changed

Lines changed: 18 additions & 0 deletions

File tree

‎.changeset/19518-picklist-kind.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
'@objectstack/spec': minor
3+
'@objectstack/platform-objects': patch
34
---
45

56
feat(spec): the `picklist` metadata kind — a shared option list that select fields reference by name (#19518)
@@ -11,3 +12,4 @@ Clause-②: yes (widening)
1112
- **The served shape.** `PicklistServedFieldSchema` declares what a client reads for a picklist-bound field: the resolved `options` next to the `picklist` that names the list. This release does not resolve the reference. Until the runtime does, a picklist-bound field is served without options, and the liveness ledger grades the key `planned` and warns an author who writes it.
1213
- **Extensions.** `defineStack({ picklistExtensions: [{ extend, options }] })` adds options to a picklist that another package owns. It can only add; removing or renaming a value stays with the owning package.
1314
- **Translation.** `TranslationData` gains `picklists.<name>.{ label?, options: { value: label } }`. `translatePicklist` translates a served picklist item. `translateObject` gives a picklist-bound field the list's option labels, and a field-level `options` entry still wins over them.
15+
- **Studio type label.** `@objectstack/platform-objects` carries the `picklist` type's label and description in its metadata-forms translation bundles (en, zh-CN, ja-JP, es-ES).

‎packages/platform-objects/src/apps/translations/en.metadata-forms.generated.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -923,6 +923,10 @@ export const enMetadataForms: NonNullable<TranslationData['metadataForms']> = {
923923
label: "Seed Data",
924924
description: "Fixture / initialization data applied on publish"
925925
},
926+
picklist: {
927+
label: "Picklist",
928+
description: "Shared option list that select fields reference by name"
929+
},
926930
mapping: {
927931
label: "Import Mapping",
928932
description: "Reusable import/export field mapping (rename + transforms), referenced by name at import"

‎packages/platform-objects/src/apps/translations/es-ES.metadata-forms.generated.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -923,6 +923,10 @@ export const esESMetadataForms: NonNullable<TranslationData['metadataForms']> =
923923
label: "Datos semilla",
924924
description: "Datos predefinidos / de inicialización aplicados al publicar"
925925
},
926+
picklist: {
927+
label: "Lista de selección",
928+
description: "Lista de opciones compartida a la que los campos de selección hacen referencia por nombre"
929+
},
926930
mapping: {
927931
label: "Mapeo de importación",
928932
description: "Mapeo de campos de importación/exportación reutilizable (renombrado + transformaciones), referenciado por nombre al importar"

‎packages/platform-objects/src/apps/translations/ja-JP.metadata-forms.generated.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -923,6 +923,10 @@ export const jaJPMetadataForms: NonNullable<TranslationData['metadataForms']> =
923923
label: "シードデータ",
924924
description: "公開時に適用されるフィクスチャ/初期化データ"
925925
},
926+
picklist: {
927+
label: "選択リスト",
928+
description: "選択フィールドが名前で参照する共有の選択肢リスト"
929+
},
926930
mapping: {
927931
label: "インポートマッピング",
928932
description: "再利用可能なインポート/エクスポートのフィールドマッピング(リネーム + 変換)。インポート時に名前で参照します"

‎packages/platform-objects/src/apps/translations/zh-CN.metadata-forms.generated.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -923,6 +923,10 @@ export const zhCNMetadataForms: NonNullable<TranslationData['metadataForms']> =
923923
label: "种子数据",
924924
description: "发布时应用的预置/初始化数据"
925925
},
926+
picklist: {
927+
label: "共享选项集",
928+
description: "选择字段按名称引用的共享选项列表"
929+
},
926930
mapping: {
927931
label: "导入映射",
928932
description: "可复用的导入/导出字段映射(重命名 + 转换),在导入时按名称引用"

0 commit comments

Comments
 (0)