Skip to content

Commit 84b1e0c

Browse files
feat(spec): Studio list columns for 27 metadata types, translated on both doors (#36926)
<!-- claude-projects-attribution: {"github_login":"os-support-ai"} --> _Requested by **Yibo Wang** · [project thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwBDErTg6aA1Xze24mDcUfseY)_ Fixes #36860 > **Held for the maintainer's own review.** This is part (b) of the card's two-PR split. The whole card measured about 3,530 changed lines, over the 3,000-line human-review line, so the maintainer ruled that every part goes to their own review whatever its size: splitting must not route around it. This PR stays a draft and out of the merge queue until the maintainer has read it. Part (a), #36881, merged on L1 + L2 before that ruling and is handed to the maintainer with this one. This part closes the card: the other 26 types, their header translations in all 11 bundles, the console's own declarations moved into the spec, and the runtime dispatcher translating the types listing, which folds in #36886 (the dispatcher answered `/meta/types` in English). Clause-②: yes (widening: `/meta/types` serves `list` on 26 more entries, and the runtime dispatcher's listing is now translated) Metadata-protocol: none ## 维护者速读 - 工作室里 27 类元数据(对象、字段、视图、页面、流程、报表、智能体等)的列表列改由平台规范统一声明,列头按界面语言显示(11 种语言都有译文);经运行时分发器访问的主机,类型列表也不再一律显示英文。 - 属于工作室元数据列表标准化(#36860 的第二部分,第一部分是 #36881):控制台、命令行和 AI 客户端读同一份列定义。 - 影响打开这些列表的管理员;列名和顺序有变化(例如页面列表去掉了不存在的 route 列)。出错时页面退回默认列,合并后可直接撤回。 - 需要你亲自审阅后再决定合并:这一卡总量超过 3,000 行,按你的要求分拆后的每一部分都交你审,本 PR 不进合并队列。 ## What changes - **Registry (`@objectstack/spec`).** `METADATA_LIST_REGISTRY` declares 27 types: the first batch (`hook`, `flow`, `job`, `api`, `action`, `report`, `dataset`, `email_template`, `assignment_rule`, `sharing_rule`, `queue`, `agent`, `tool`, `skill`, `doc`, `seed`, `mapping`, `picklist`, `translation`) and the eight the console declared itself (`object`, `field`, `view`, `page`, `dashboard`, `permission`, `position`, `book`). Every column is a key the type's schema declares, checked by the reconciliation test, whose roster now asserts all 27. Keys the card proposed that no schema declares were dropped or corrected, as reported in the card's thread. - **Headers in every language (`@objectstack/platform-objects`).** The 52 headers no form field already labels get their own `metadataForms.<type>.fields.<path>.label` leaf, regenerated with `node scripts/check-i18n-bundles.mjs --write` and translated in all ten non-English locales. No zh-CN, ja-JP or es-ES leaf echoes the English. A column the form labels reads the form's words. - **Both doors translate the listing (`@objectstack/rest`, `@objectstack/runtime`), #36886.** `translateMetaTypesListing` (`meta-item-read-gate.ts`) is the one translation of the types listing: type labels and descriptions, form labels, list headers and schema titles. `RestServer`'s `GET /meta` now delegates to it, and the runtime dispatcher's `GET /meta` and `GET /meta/types` call it with the request's locale and answer through `successWithHeaders` with `Vary: Accept-Language`, as `RestServer` and the rest of the meta domain do. Before, the dispatcher served `getMetaTypes()` untranslated, so a zh-CN reader of a dispatcher-served host got English for all of it. - **Console (`@object-ui/app-shell`).** `builtinComponents.tsx` and `anchors.ts` drop their `listColumns` and keep only what the schema cannot say: a field row's server-stamped `object` (`listExtraColumns`), a position's holder count and granted permission sets, a view's derived display type and a book's audience (`listCells`), and a sharing rule's `sharedWith` rendering plus its `_packageId`. `object` was registered twice with disagreeing columns (the later won); both declarations are gone, so the spec's is the only one. A page's former `route` column named no `PageSchema` key and is dropped. - **Changelog for what admins see (`@object-ui/app-shell`).** The changeset names the private console package, which `.changeset/config.json` versions (`privatePackages.version: true`), and says what changes on screen: no fixed column widths on the moved lists (except the view list's display type and the book list's audience), the Fields list reads name, type, label, then object, the sharing-rule header reads "Access Level", and the Pages list shows type and description in place of the dropped route column. - **Summary cells read an expression's source (`@object-ui/app-shell`).** The `summary` renderer joined only an object's scalar members, so a cron schedule, whose `expression` is served as the `{ dialect, source }` envelope, read `cron · UTC`. An expression envelope member now contributes its `source`, so a cron job reads `cron · <expression> · UTC` (the showcase job: `cron · 0 1 * * * · UTC`). Any other object member stays out, as before. - **Echo ledgers (`@objectstack/platform-objects` tests).** The bare-type ledger reads a type as bare when its catalog entry has no form `sections`, since a type with no form now carries `fields` for its column headers; the metadata-form catalog count grows by the 52 header rows (771 → 823). - **Docs.** `content/docs/protocol/kernel/i18n-standard.mdx` adds the list columns row (`resolveMetadataListLabels`), the slot paragraph, and says all three resolvers run in `GET /meta` on both doors. ## Tests - `packages/spec/src/system/metadata-list-zod-reconciliation.test.ts`: the roster assertion grows from `['hook']` to the 27 types (111 passed). - `packages/lint/src/i18n-walk.metadata-list-columns.test.ts` (new, the L2 N2 pin on #36881): a column on a type with no form gets its own slot entry seeded with the header (`job.schedule` → `Schedule`), a dotted path the form leaves out gets one (`agent` `model.model` → `Model`), a column the form labels keeps exactly one entry, the form's (`hook.events`), and every registry column has exactly one entry (4 passed). - `packages/runtime/src/domains/meta-types-translation-parity-36886.test.ts` (new): both dispatcher doors answer zh-CN with the same label, form label and headers as `RestServer` (`{ label: '钩子', form: '事件', headers: ['名称', '事件'] }`), and both carry `Vary: Accept-Language`, as `RestServer` does. Controls: an en request, and a host with no i18n service, answer as declared. Ablations: putting back `deps.success(result)` reds the zh-CN case (1 failed, 2 passed); answering the translated body without the header reds the Vary case (1 failed, 3 passed). - `ui/.../ResourceListPage.servedListColumns-36860.test.tsx`: mounts each moved list under setup (`?scope=environment`) and checks the served headers, plus the view list keeping its derived display type through its console cell override. ## Screenshots (card acceptance, zh-CN) Taken on a booted `examples/app-showcase`: hooks and flows built from `9ce7a6d0` (the commits after it until `f2edd9de` change only the changeset and tests), the Jobs list re-taken on `f2edd9de`, console at `/apps/setup/metadata/<type>?scope=environment`, browser locale zh-CN. Stored in the project's shared files under `objectstack-seat3-ux/36860-shots/`: - `hook-list-zh.png`: 钩子 (8). Headers 名称 · 显示名称 · 对象 · 事件 · 优先级 · 异步 · 描述 · 来源. Events read as a list (`beforeInsert, beforeUpdate`), async as ✓ / ×. - `flow-list-zh.png`: 流程 (33). Headers 名称 · 显示名称 · 类型 · 描述 · 来源. Type reads as a badge (`autolaunched`, `record_change`, `schedule`, `screen`). - `job-list-zh.png`: 后台任务 (1). Headers 名称 · 显示名称 · 调度计划 · 已启用 · 描述 · 来源. The schedule reads `cron · 0 1 * * * · UTC` (it read `cron · UTC` before `f2edd9de`, L1 S4), enabled ✓. Every `GET /api/v1/meta` the console made answered 200 with `Vary: Accept-Language`. Item labels and descriptions stay in English: they are the example app's own text, which has no zh translation. ## Acceptance notes - L2 nits on #36881 carried here: N1 (headers marked localized while the dispatcher served them untranslated) is closed by the #36886 fold; N2 pin added (above); N3 (`listInclude` prose true only after the position move) is now true; the reconciliation roster grows. `@object-ui/app-shell` was first left out of the changeset on that review's advice, and is back in on this PR's L1 (S3), because `.changeset/config.json` versions private packages. N7 (the reconciliation test copies `humanizeFieldPath`) is unchanged. - #36887 (`GetMetaTypesResponseSchema` declares neither `schema` nor `form`) is not in this PR; it follows as its own small PR. - #36886 is folded in without a closing keyword; it is closed by hand when this lands. - `report`'s `dataset` header reads `Data Source`, the report form's label on current `main`. - Overlap: `node scripts/pm/overlap-check.mjs` against `main` and the two open PRs sharing files: #36869 (`rest-server.ts`) merges cleanly; #36802 conflicts in `object-lifecycle-panel-echo-decisions.test.ts`, where both PRs move the catalog count and add a receipt line. Whichever lands second resolves it to the sum of both receipts. ## Verification Read first, by risk: 1. `packages/runtime/src/domains/meta.ts`: the two `getMetaTypes` sites now translated, and the locale they read. 2. `packages/rest/src/meta-item-read-gate.ts` with `rest-server.ts`: `translateMetaTypesListing` must answer exactly what `translateMetaTypesResponse` answered before. 3. `ui/packages/app-shell/src/services/builtinComponents.tsx` and `anchors.ts`: what the console keeps after the move. 4. Spot-read a bundle, e.g. `zh-CN.metadata-forms.generated.ts`, for the 52 new leaves. Two-minute check: `pnpm --filter @objectstack/runtime exec vitest run src/domains/meta-types-translation-parity-36886.test.ts`. Expect 4 passed. <details><summary>Gates on 2fe89a7 (first round; the rework commits 9ce7a6d, 137ae10, 06064a1 and f2edd9d re-ran the gates they touch, listed last)</summary> - `node scripts/pm/dispatch-gates.mjs --ran`: 125 derived, 125 run, 0 NOT-MEASURED, all exit 0. Fixed in this PR along the way: `check:test-source-alias` (module-top imports in the new tests), `check:spec-parsed-alias` (`MetadataListCellTypeParsed`) and `check:engine-double-contract` (ledger rewritten with `--write`). Three gates first exited 3 on prerequisites and were re-run green after fetching the plugin-teardown fixture commit and building the packages that had no dist. - `check-governed-merges --branch HEAD`: not governed, 2,834 changed lines (+2,591 / −243), 2,220 of them the 11 generated bundles. - `tsc --noEmit` is clean for `@objectstack/rest` and `@objectstack/runtime`. `@object-ui/app-shell` type-check was not measured locally (the ui workspace deps have no dist); CI's type-check lane is the verdict. - Tests: runtime `domains/meta` 2,756 passed; rest meta 2,263; app-shell `metadata-admin` 222; spec reconciliation 111; lint pin 4; rest list headers + schema titles 6. - Rework round 2: `servedListColumns.test.tsx` + `ResourceListPage.servedListColumns-36860.test.tsx` 17 passed, with a new case for a served cron envelope and a control for an object member with no `source`; ablation (back to scalar members only) reds it (1 failed, 10 passed). ESLint clean on both files. - Rework round: runtime parity test 4 passed; platform-objects `bare-type-display-echo-decisions` + `object-lifecycle-panel-echo-decisions` 73 passed (the two files CI's Test Core (6/10) failed on 99dc6d0); `check-changeset-fixed`, `check-empty-changeset` and `check-changeset-no-major` (with this body) exit 0. </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01WGufzg7mFFG5b13DcQ93kf <!-- signed: repo:objectstack#3 · os-support-ai · session_01WGufzg7mFFG5b13DcQ93kf --> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 305fe60 commit 84b1e0c

30 files changed

Lines changed: 2641 additions & 246 deletions
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
'@objectstack/spec': patch
3+
'@objectstack/rest': patch
4+
'@objectstack/runtime': patch
5+
'@objectstack/platform-objects': patch
6+
'@object-ui/app-shell': patch
7+
---
8+
9+
feat(spec): Studio list columns for 27 metadata types, served in the reader's language on both doors
10+
11+
Clause-②: yes (widening: `/meta/types` serves `list` on 26 more entries, and the runtime dispatcher's listing is now translated)
12+
Metadata-protocol: none
13+
14+
`METADATA_LIST_REGISTRY` now declares the Studio list columns of 27 metadata types: the first batch (`hook`, `flow`, `job`, `api`, `action`, `report`, `dataset`, `email_template`, `assignment_rule`, `sharing_rule`, `queue`, `agent`, `tool`, `skill`, `doc`, `seed`, `mapping`, `picklist`, `translation`) and the eight types the console used to declare itself (`object`, `field`, `view`, `page`, `dashboard`, `permission`, `position`, `book`). Every column names a key the type's schema declares, checked by the reconciliation test. Nothing an author writes changes: the registry is the spec's own constant.
15+
16+
- **Headers in every shipped language.** The 52 headers no form field already labels get their own `metadataForms.<type>.fields.<path>.label` leaf in the 11 platform bundles (`@objectstack/platform-objects`), translated in all ten non-English locales. A column the form labels reads the form's words.
17+
- **Both doors translate the listing.** The runtime dispatcher's `GET /meta` and `GET /meta/types` now answer the types listing in the request's language, as `RestServer`'s `GET /meta` does: type labels, form labels, list headers and schema titles. Both run one function, `translateMetaTypesListing` (`@objectstack/rest`). Before this, a host served through the dispatcher answered all of it in English.
18+
- **The console's own declarations move into the spec.** Studio's lists of objects, fields, views, pages, dashboards, permission sets, positions and books read the served columns. The console keeps only what the schema cannot say: a field row's server-stamped `object`, a position's holder count and granted permission sets, a view's derived display type, a book's audience and a sharing rule's `sharedWith` rendering. The console declared `object`'s columns twice, in two registrations that disagreed (the later one won); both declarations are gone, so one remains, in the spec. A page's former `route` column named no `PageSchema` key and is dropped. What an admin sees in Studio (`@object-ui/app-shell`): the metadata lists of all 27 types show the spec's columns, in the declared order, with headers in the reader's language. The moved lists lose the console's fixed column widths (the view list's display type and the book list's audience keep theirs), the Fields list reads name, type, label, then object, the sharing-rule list's header reads "Access Level" where it read "Access", and the Pages list shows type and description in place of the dropped route column. A summary cell reads an expression member as its source, so the Jobs list's schedule shows a cron job's expression (`cron · 0 2 * * * · UTC`), not only its kind and time zone.

‎content/docs/protocol/kernel/i18n-standard.mdx‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,9 +574,14 @@ through the one the renderer reads for that node:
574574
|:---|:---|:---|
575575
| a form field, a composite's child | `FormFieldSpec.label` / `helpText` / `placeholder` | `resolveMetadataFormLabels(form, type, bundle, opts)` |
576576
| a property of a repeater row (a table column header) | the JSON Schema `items.properties[k].title` | `resolveMetadataFormSchemaTitles(schema, type, bundle, opts)` |
577+
| a column of the type's Studio list (`METADATA_LIST_REGISTRY`) | the served `list.columns[].label` | `resolveMetadataListLabels(list, type, bundle, opts)` |
577578

578-
Both run in `GET /api/v1/meta`, which serves every type's `form` and `schema`
579-
already localised for the request's locale; a client deriving the schema itself
579+
A list column reads the field slot of its own path, so a column and the form
580+
field of the same key read the same words. `os i18n extract` emits that slot for
581+
a column path the form does not declare, with the column's header as the source.
582+
583+
All three run in `GET /api/v1/meta`, which serves every type's `form`, `list`
584+
and `schema` already localised for the request's locale; a client deriving the schema itself
580585
with `z.toJSONSchema` applies the second one to its own copy, over a bundle it
581586
carries itself. Only `label` crosses over to the schema (as `title`); `helpText`
582587
and `placeholder` stay on the form.
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
2+
3+
/**
4+
* objectstack#36860 — `walkMetadataForms` emits the form field slot
5+
* `metadataForms.<type>.fields.<path>.label` for every Studio list column
6+
* (`METADATA_LIST_REGISTRY`), so the server can translate each header.
7+
*
8+
* - a column whose path the type's form does not label (a type with no form,
9+
* or a path the form leaves out) gets its own entry, seeded with the
10+
* column's header;
11+
* - a column the form already labels keeps the form's entry, so the slot
12+
* holds one English source;
13+
* - every column of every type has an entry, so no header reaches a reader
14+
* untranslatable.
15+
*/
16+
import { describe, it, expect } from 'vitest';
17+
import { METADATA_LIST_REGISTRY } from '@objectstack/spec/system';
18+
import { collectExpectedEntries } from './i18n-walk.js';
19+
20+
const entries = collectExpectedEntries({}, { warnedGroups: new Set() });
21+
const slot = (type: string, path: string) =>
22+
entries.filter((e) => e.path.join('\u0000') === ['metadataForms', type, 'fields', path, 'label'].join('\u0000'));
23+
24+
describe('list column headers are walked into the form field slot (objectstack#36860)', () => {
25+
it('a column on a type with no form gets its own entry, seeded with the header', () => {
26+
const [entry] = slot('job', 'schedule');
27+
expect(entry).toBeDefined();
28+
expect(entry.sourceValue).toBe('Schedule');
29+
});
30+
31+
it('a dotted column path the form does not label gets its own entry', () => {
32+
const [entry] = slot('agent', 'model.model');
33+
expect(entry).toBeDefined();
34+
expect(entry.sourceValue).toBe('Model');
35+
});
36+
37+
it('a column the form already labels keeps one entry, the form field\'s', () => {
38+
const found = slot('hook', 'events');
39+
expect(found).toHaveLength(1);
40+
expect(found[0].source).toBe('metadataFormField');
41+
});
42+
43+
it('every column of every declared list has an entry at its slot', () => {
44+
const missing: string[] = [];
45+
for (const [type, list] of Object.entries(METADATA_LIST_REGISTRY)) {
46+
for (const column of list.columns) {
47+
if (slot(type, column.field).length !== 1) missing.push(`${type}.${column.field}`);
48+
}
49+
}
50+
expect(missing).toEqual([]);
51+
});
52+
});

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

Lines changed: 189 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,15 +1088,54 @@ export const arMetadataForms: NonNullable<TranslationData['metadataForms']> = {
10881088
},
10891089
seed: {
10901090
label: "البيانات الأولية",
1091-
description: "بيانات تجهيز / تهيئة تُطبَّق عند النشر"
1091+
description: "بيانات تجهيز / تهيئة تُطبَّق عند النشر",
1092+
fields: {
1093+
object: {
1094+
label: "الكائن"
1095+
},
1096+
mode: {
1097+
label: "الوضع"
1098+
}
1099+
}
10921100
},
10931101
picklist: {
10941102
label: "قائمة الاختيار",
1095-
description: "قائمة خيارات مشتركة تشير إليها حقول الاختيار بالاسم"
1103+
description: "قائمة خيارات مشتركة تشير إليها حقول الاختيار بالاسم",
1104+
fields: {
1105+
name: {
1106+
label: "الاسم"
1107+
},
1108+
label: {
1109+
label: "التسمية"
1110+
},
1111+
options: {
1112+
label: "الخيارات"
1113+
},
1114+
description: {
1115+
label: "الوصف"
1116+
}
1117+
}
10961118
},
10971119
mapping: {
10981120
label: "تعيين الاستيراد",
1099-
description: "تعيين حقول قابل لإعادة الاستخدام للاستيراد/التصدير (إعادة تسمية + تحويلات)، يُشار إليه بالاسم عند الاستيراد"
1121+
description: "تعيين حقول قابل لإعادة الاستخدام للاستيراد/التصدير (إعادة تسمية + تحويلات)، يُشار إليه بالاسم عند الاستيراد",
1122+
fields: {
1123+
name: {
1124+
label: "الاسم"
1125+
},
1126+
label: {
1127+
label: "التسمية"
1128+
},
1129+
targetObject: {
1130+
label: "الكائن الهدف"
1131+
},
1132+
mode: {
1133+
label: "الوضع"
1134+
},
1135+
sourceFormat: {
1136+
label: "تنسيق المصدر"
1137+
}
1138+
}
11001139
},
11011140
view: {
11021141
label: "طريقة العرض",
@@ -1420,6 +1459,9 @@ export const arMetadataForms: NonNullable<TranslationData['metadataForms']> = {
14201459
"sharing.lockedBy": {
14211460
label: "مقفل بواسطة",
14221461
helpText: "المستخدم الذي قفل تهيئة طريقة العرض"
1462+
},
1463+
object: {
1464+
label: "الكائن"
14231465
}
14241466
}
14251467
},
@@ -2576,7 +2618,24 @@ export const arMetadataForms: NonNullable<TranslationData['metadataForms']> = {
25762618
}
25772619
},
25782620
job: {
2579-
label: "مهمة خلفية"
2621+
label: "مهمة خلفية",
2622+
fields: {
2623+
name: {
2624+
label: "الاسم"
2625+
},
2626+
label: {
2627+
label: "التسمية"
2628+
},
2629+
schedule: {
2630+
label: "الجدول الزمني"
2631+
},
2632+
enabled: {
2633+
label: "مُفعَّل"
2634+
},
2635+
description: {
2636+
label: "الوصف"
2637+
}
2638+
}
25802639
},
25812640
datasource: {
25822641
label: "مصدر البيانات"
@@ -2586,10 +2645,41 @@ export const arMetadataForms: NonNullable<TranslationData['metadataForms']> = {
25862645
},
25872646
api: {
25882647
label: "نقطة نهاية API",
2589-
description: "عنوان HTTP ثابت تستدعيه الأنظمة الأخرى لتشغيل تدفق أو للعمل مع السجلات في التطبيق"
2648+
description: "عنوان HTTP ثابت تستدعيه الأنظمة الأخرى لتشغيل تدفق أو للعمل مع السجلات في التطبيق",
2649+
fields: {
2650+
name: {
2651+
label: "الاسم"
2652+
},
2653+
method: {
2654+
label: "الأسلوب"
2655+
},
2656+
path: {
2657+
label: "المسار"
2658+
},
2659+
type: {
2660+
label: "النوع"
2661+
},
2662+
"objectParams.object": {
2663+
label: "الكائن"
2664+
},
2665+
"objectParams.operation": {
2666+
label: "العملية"
2667+
}
2668+
}
25902669
},
25912670
translation: {
2592-
label: "الترجمة"
2671+
label: "الترجمة",
2672+
fields: {
2673+
name: {
2674+
label: "الاسم"
2675+
},
2676+
label: {
2677+
label: "التسمية"
2678+
},
2679+
locale: {
2680+
label: "اللغة"
2681+
}
2682+
}
25932683
},
25942684
email_template: {
25952685
label: "قالب البريد الإلكتروني",
@@ -2666,11 +2756,45 @@ export const arMetadataForms: NonNullable<TranslationData['metadataForms']> = {
26662756
},
26672757
doc: {
26682758
label: "الوثائق",
2669-
description: "صفحة مساعدة مكتوبة بصيغة Markdown تشحنها حزمة أو تكتبها بنفسك"
2759+
description: "صفحة مساعدة مكتوبة بصيغة Markdown تشحنها حزمة أو تكتبها بنفسك",
2760+
fields: {
2761+
name: {
2762+
label: "الاسم"
2763+
},
2764+
label: {
2765+
label: "التسمية"
2766+
},
2767+
group: {
2768+
label: "المجموعة"
2769+
},
2770+
tags: {
2771+
label: "الوسوم"
2772+
},
2773+
description: {
2774+
label: "الوصف"
2775+
}
2776+
}
26702777
},
26712778
book: {
26722779
label: "كتاب الوثائق",
2673-
description: "جدول محتويات يجمّع صفحات المساعدة في أقسام مرتبة"
2780+
description: "جدول محتويات يجمّع صفحات المساعدة في أقسام مرتبة",
2781+
fields: {
2782+
name: {
2783+
label: "الاسم"
2784+
},
2785+
label: {
2786+
label: "التسمية"
2787+
},
2788+
audience: {
2789+
label: "الجمهور"
2790+
},
2791+
groups: {
2792+
label: "المجموعات"
2793+
},
2794+
description: {
2795+
label: "الوصف"
2796+
}
2797+
}
26742798
},
26752799
permission: {
26762800
label: "مجموعة الأذونات",
@@ -2774,15 +2898,66 @@ export const arMetadataForms: NonNullable<TranslationData['metadataForms']> = {
27742898
},
27752899
sharing_rule: {
27762900
label: "قاعدة المشاركة",
2777-
description: "قاعدة تعلنها حزمة لمشاركة السجلات؛ وتؤلّف المؤسسات قواعدها الخاصة في الإعداد"
2901+
description: "قاعدة تعلنها حزمة لمشاركة السجلات؛ وتؤلّف المؤسسات قواعدها الخاصة في الإعداد",
2902+
fields: {
2903+
name: {
2904+
label: "الاسم"
2905+
},
2906+
label: {
2907+
label: "التسمية"
2908+
},
2909+
object: {
2910+
label: "الكائن"
2911+
},
2912+
sharedWith: {
2913+
label: "مُشارَك مع"
2914+
},
2915+
accessLevel: {
2916+
label: "مستوى الوصول"
2917+
}
2918+
}
27782919
},
27792920
queue: {
27802921
label: "قائمة الانتظار",
2781-
description: "مجموعة مُسمّاة من الأشخاص يمكن أن تبقى السجلات فيها حتى يتولّى أحدهم السجل؛ وتزوّد المؤسسات قوائمها بالأشخاص في الإعداد"
2922+
description: "مجموعة مُسمّاة من الأشخاص يمكن أن تبقى السجلات فيها حتى يتولّى أحدهم السجل؛ وتزوّد المؤسسات قوائمها بالأشخاص في الإعداد",
2923+
fields: {
2924+
name: {
2925+
label: "الاسم"
2926+
},
2927+
label: {
2928+
label: "التسمية"
2929+
},
2930+
members: {
2931+
label: "الأعضاء"
2932+
},
2933+
description: {
2934+
label: "الوصف"
2935+
}
2936+
}
27822937
},
27832938
assignment_rule: {
27842939
label: "قاعدة الإسناد",
2785-
description: "قاعدة تعلنها حزمة لتوجيه السجلات الجديدة إلى قائمة انتظار أو إلى شخص"
2940+
description: "قاعدة تعلنها حزمة لتوجيه السجلات الجديدة إلى قائمة انتظار أو إلى شخص",
2941+
fields: {
2942+
name: {
2943+
label: "الاسم"
2944+
},
2945+
label: {
2946+
label: "التسمية"
2947+
},
2948+
object: {
2949+
label: "الكائن"
2950+
},
2951+
entries: {
2952+
label: "الإدخالات"
2953+
},
2954+
active: {
2955+
label: "نشط"
2956+
},
2957+
description: {
2958+
label: "الوصف"
2959+
}
2960+
}
27862961
},
27872962
agent: {
27882963
label: "وكيل الذكاء الاصطناعي",
@@ -2864,6 +3039,9 @@ export const arMetadataForms: NonNullable<TranslationData['metadataForms']> = {
28643039
guardrails: {
28653040
label: "حواجز الحماية",
28663041
helpText: "قواعد السلامة وسياسات المحتوى"
3042+
},
3043+
"model.model": {
3044+
label: "النموذج"
28673045
}
28683046
}
28693047
},

‎packages/platform-objects/src/apps/translations/bare-type-display-echo-decisions.test.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,10 @@ function carriesToken(text: string, token: string): boolean {
431431
*/
432432
function isBare(type: string): boolean {
433433
const entry = (enMetadataForms as Record<string, any>)[type];
434-
return !!entry && entry.fields === undefined && entry.sections === undefined;
434+
// A form panel is what carries `sections`. Since #36860 a type with no form
435+
// may still carry `fields` — the headers of its Studio list columns
436+
// (`METADATA_LIST_REGISTRY`) — and stays bare: it has no panel.
437+
return !!entry && entry.sections === undefined;
435438
}
436439

437440
interface BareLeaf {

0 commit comments

Comments
 (0)