Skip to content

Commit bb76b8c

Browse files
feat(spec): the view and dashboard forms offer the audience gate (requiredPermissions) (#37839)
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU <!-- claude-projects-attribution: {"github_login":"os-tesla"} --> _Requested by **Tesla** · [project thread](https://claude.ai/code/project/chan_01AXsQkLFKRdQCqQ3RTr6Jao?thread=cmsg_01AXsQkLFKRdQCqQ3RTr6Jao3jNGx6LmWH1CGtjYoMw3yP)_ Part of #34908 — the spec half (step 1 of the ruling's execution). The console and Studio picker is the second PR; the card stays open for it. Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:管理员在设计器里编辑列表视图或仪表盘时,多出一行「所需权限」,填上能力名,就只有持有该能力的人(经权限集或岗位)能看到;中文、日文、西文界面都有说明文字。 - 为什么做:中文客户要「管理员自己按岗位分视图、不找厂商」;平台的权限门早已由服务器强制执行,只是没有填写入口,这是按维护者选定的「给已有权限门补入口」做的第一步。 - 出错会怎样:填错能力名,或填了设置者本人没有的能力,单独保存的视图或仪表盘对所有人都不可见,包括设置者本人,直接打开也被拒绝;要先在设置里把这个能力授予某人,由他打开后改回。写在对象自身「列表视图」里的视图不同:对象的编辑者仍能看到,删掉这一行的值即可恢复。不涉及数据。 - 要你做什么:无 ## What changes Ruling 7103739693 (letter B) on #34908, verbatim: 「B 给已有权限门补入口 — 控制台和设计器加「谁能看此视图」选择,并显示哪些岗位会看到;不改协议,约2个PR。」 This PR is its step 1: a list view's and a dashboard's `requiredPermissions` (declared and server-enforced since ruling 6095014058) gets an authoring row. No key, value, gate or export changes. - **Premise (b) proved first** — `packages/rest/src/meta-view-audience-save-round-trip.test.ts`. The exact envelope the console's add-view door writes (`viewEnvelope`: the gate under `config`, beside the object binding), drafted (`PUT ?mode=draft`, `If-None-Match: *`) and published, keeps `requiredPermissions` in the draft read, the stored active row and the served item; the read gate then serves a holder and refuses a non-holder `403 PERMISSION_DENIED`. An edit that clears the gate stores no key and serves the non-holder again. Control: an ungated view is served to everyone. Real routes, real `saveMetaItem`, better-sqlite3 `sys_metadata`. The save door does not strip or refuse the key, so no fork. - **`packages/spec/src/ui/view.form.ts`** — the `navigation_sharing` section gains a `requiredPermissions` row (`string-tags`, the face `app.form.ts` and `action.form.ts` use). - **`packages/spec/src/ui/dashboard.form.ts`** — a new collapsed `Access` section holding the same row. - The two hints restate the clauses of `AUDIENCE_REQUIRED_PERMISSIONS_DESCRIPTION` (all of them required, empty is no gate, no any-of form, enforced by the server) in an administrator's words, and add what an administrator needs: a position passes on what its permission sets grant, and the gate applies to the person setting it too (a capability they do not hold, or a misspelt one, refuses the view or dashboard to them on every door, Studio included). They are worded for the person building the view, not copied verbatim from the describe, because the dashboard panel's hints are held to business wording (#36816). - **`packages/spec/src/system/metadata-form-zod-reconciliation.test.ts`** — the two `omit` ledger entries for `view` / `dashboard` `requiredPermissions` are dropped. Their own reason was "declared, not enforced yet … whether to offer it then is a ruling for the enforcement"; the gate has been live since #22639 and the offer is now ruled. - **Translations** — `node scripts/check-i18n-bundles.mjs --write`; zh-CN (「所需权限」 / 「访问权限」), ja-JP and es-ES leaves authored, the other seven locales left as extractor fills. The console's zh-CN overlay (`metadata-form-zh-cn.ts` for `view`, `metadata-form-i18n.ts` for `dashboard`) carries the same zh words. The translated-label positive control in `object-lifecycle-panel-echo-decisions.test.ts` moves 840 → 843 (two row labels + one section label). ## Tests <details><summary>Commands and results (head bd91d5c after merging origin/main)</summary> - Round 2 (L1-a 7211677883), head 98b17b2: `platform-objects` `src/apps/translations/` 28 files, 625 tests passed; spec `src/ui/` + `metadata-form-zod-reconciliation` 195 files, 6750 tests passed; ui `packages/app-shell/src/views/metadata-admin/` 804 files, 8686 passed, 1 skipped; `check:generated` 14/14; `check:i18n` and `check:i18n-stale-fill` OK. The round-1 results below are at bd91d5c. - `pnpm --filter @objectstack/rest exec vitest run src/meta-view-audience-save-round-trip.test.ts` → Test Files 1 passed, Tests 3 passed (re-run after the merge). - `packages/spec`: `vitest run src/ui/ src/kernel/repeater-item-titles.test.ts src/system` → 273 files; 1 failure (the ledger entries this PR drops), green once they were dropped: `metadata-form-zod-reconciliation.test.ts` 79/79; after the merge, that file plus `view-form-composite-children` and `dashboard-form-business-wording-36816`: 3 files, 110 tests passed. - `packages/platform-objects`: `vitest run src/` → 130 files, 2214 tests passed (after the ja-JP / es-ES wording and the 843 control); after the merge `src/apps/translations/` 28 files, 625 tests passed. - `ui`: `pnpm exec vitest run packages/app-shell/src/views/metadata-admin/ packages/plugin-designer/src/__tests__/designerForms.sharedSelect-11865.test.tsx` → 805 files, 8786 passed, 1 skipped. - `pnpm --filter @objectstack/rest typecheck` → exit 0 (test layer included). - `pnpm --filter @objectstack/spec check:generated` after the merge and a spec rebuild → all 14 generated artifacts up to date. </details> <details><summary>Derived gates (dispatch-gates --commands, 93 families)</summary> - Round 2, head 98b17b2: 93 derived, 93 run, 0 NOT-MEASURED, 0 UNRUN. 92 exited 0 on the sweep; `pnpm --dir ui exec vitest run scripts/` was SIGKILLed while the ui suite ran beside it and re-ran alone green (172 files passed, 2 skipped). The round-1 lines below are at bd91d5c. - 93 derived, 93 run (`--ran` reconciliation: 0 NOT-MEASURED, 0 UNRUN). - 87 exited 0 on the first pass. 5 exited 3 (prerequisite) and were re-run green: the four spec `dist` readers (`check:api-surface`, `check:dual-source-exports`, `check:entry-nameability`, `check:exported-any`) after a spec rebuild, and `check-plugin-teardown-shape --self-test` after unshallowing the clone. `check:authorable-surface`, `check:docs`, `check:i18n` and `check:i18n-stale-fill` were re-run green after the last translation edit. - NOT MEASURED: `check:dual-build-cjs-loads`, reason: it needs every package's `dist/` (a full `pnpm build`); this diff changes no package's build shape. CI runs it. </details> ## Acceptance notes - The ruling names the Studio list-view inspector as `ui/packages/app-shell/src/views/studio-design/ObjectListViewInspector.tsx`; that file no longer exists on `main`. Studio's view panel is `metadata-admin/inspectors/ViewVariantInspector.tsx`, which renders `viewForm` through `SchemaForm`, so the new row already appears there as a tag box. The capability picker (limited to the capabilities the environment knows) with the "which positions will see it" preview replaces that tag box in the second PR, together with the 新建视图 control, the shared-hint correction and the `capabilities.mdx` recipe. - The other seven locales (ar, de, fr, ko, pt-BR, ru, zh-Hant) read the English source for the three new leaves, as every recent form row has landed. ## Verification Open Studio on any list view, expand 导航与共享: the 所需权限 row is there with its hint. Type a capability name and publish: a user without it no longer sees the view in the switcher, and opening its URL answers 403. --- _Generated by [Claude Code](https://claude.ai/code/session_01L9qibxDBbvf7dEeutsepbm)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent b620c4b commit bb76b8c

26 files changed

Lines changed: 432 additions & 22 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/platform-objects': patch
4+
'@object-ui/app-shell': patch
5+
---
6+
7+
feat(spec): the view and dashboard authoring forms offer the audience gate, `requiredPermissions`
8+
9+
Clause-②: no
10+
Metadata-protocol: none
11+
12+
A list view's and a dashboard's `requiredPermissions` (the capabilities a caller must all hold to be served the item) has been enforced by the server's `/meta` read gate since it landed, but no authoring form offered it, so only a source file could set it. Both forms now carry the row; no key, value or gate changes.
13+
14+
- **`@objectstack/spec`.** `viewForm`'s "Navigation & sharing" section gains a `requiredPermissions` row (tags), and `dashboardForm` a new "Access" section holding the same row. The hint states the gate's rules in an administrator's words: every capability listed is required, an empty list is no gate, one capability granted to several permission sets is how to serve several groups, a position passes on what its permission sets grant, and the gate applies to the person setting it too (a capability they do not hold, or a misspelt one, locks them out of the item as well).
15+
- **`@objectstack/platform-objects`.** The `metadataForms` bundles carry the new rows; zh-CN (「所需权限」), ja-JP (「必要な権限」) and es-ES ("Permisos requeridos") carry translated labels and hints; the other seven locales fall back to the English source until translated.
16+
- **`@object-ui/app-shell`.** The console's zh-CN overlay for the two forms carries the same rows, so Studio's view inspector and the dashboard settings panel show them in Chinese.
17+
18+
Nothing to migrate.

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1659,6 +1659,10 @@ export const arMetadataForms: NonNullable<TranslationData['metadataForms']> = {
16591659
label: "مقفل بواسطة",
16601660
helpText: "المستخدم الذي قفل تهيئة طريقة العرض"
16611661
},
1662+
requiredPermissions: {
1663+
label: "Required Permissions",
1664+
helpText: "Who sees this view: the capabilities a person must hold, every one listed. Permission sets grant capabilities, and a position passes on the ones its permission sets grant. Leave it empty and everyone who can see the list sees this view. To show it to several groups, pick one capability and grant it to each group's permission set. The server enforces it: anyone else does not find the view in the list and is refused if they open it directly. The gate applies to you too: list a capability you do not hold, or misspell one, and you can no longer open this view either."
1665+
},
16621666
object: {
16631667
label: "الكائن"
16641668
}
@@ -1874,6 +1878,10 @@ export const arMetadataForms: NonNullable<TranslationData['metadataForms']> = {
18741878
label: "عوامل التصفية",
18751879
description: "عوامل التصفية الافتراضية والعامة المطبَّقة على عناصر الواجهة."
18761880
},
1881+
access: {
1882+
label: "Access",
1883+
description: "Who can see this dashboard."
1884+
},
18771885
advanced: {
18781886
label: "متقدم",
18791887
description: "ضبط إمكانية الوصول والأداء."
@@ -2054,6 +2062,10 @@ export const arMetadataForms: NonNullable<TranslationData['metadataForms']> = {
20542062
},
20552063
"globalFilters.targetWidgets": {
20562064
label: "عناصر الواجهة المستهدفة"
2065+
},
2066+
requiredPermissions: {
2067+
label: "Required Permissions",
2068+
helpText: "Who sees this dashboard: the capabilities a person must hold, every one listed. Permission sets grant capabilities, and a position passes on the ones its permission sets grant. Leave it empty and everyone sees this dashboard. To show it to several groups, pick one capability and grant it to each group's permission set. The server enforces it: anyone else does not find the dashboard in the list and is refused if they open it directly. The gate applies to you too: list a capability you do not hold, or misspell one, and you can no longer open this dashboard either."
20572069
}
20582070
}
20592071
},

‎packages/platform-objects/src/apps/translations/ar.source-hashes.generated.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ export const arGeneratedSourceHashes: Readonly<Record<string, string>> = {
4242
"metadataForms.dashboard.fields.dateRange.defaultRange.label": "c1f190468a0e2b35",
4343
"metadataForms.dashboard.fields.dateRange.field.helpText": "bbd8025863a4481a",
4444
"metadataForms.dashboard.fields.dateRange.field.label": "7cd8aace5973d40c",
45+
"metadataForms.dashboard.fields.requiredPermissions.helpText": "00e5446e61cf5759",
46+
"metadataForms.dashboard.fields.requiredPermissions.label": "a47b2168b71f5e68",
47+
"metadataForms.dashboard.sections.access.description": "fea0fbc00761c87f",
48+
"metadataForms.dashboard.sections.access.label": "5a06534d8d136ba3",
4549
"metadataForms.email_template.fields.fromOverride.helpText": "c5e29fa12ee1525b",
4650
"metadataForms.email_template.fields.variables.helpText": "27197774c2cda633",
4751
"metadataForms.field.fields.inlineEdit.helpText": "1ce60e4c6d5fc0e1",
@@ -63,6 +67,8 @@ export const arGeneratedSourceHashes: Readonly<Record<string, string>> = {
6367
"metadataForms.report.fields.exportOptions.formats.label": "193cd91818d64ef7",
6468
"metadataForms.report.fields.exportOptions.includeHeaders.helpText": "44cbc80015ff051d",
6569
"metadataForms.report.fields.exportOptions.includeHeaders.label": "f114a4778c9727ae",
70+
"metadataForms.view.fields.requiredPermissions.helpText": "c4599be2ffa06c02",
71+
"metadataForms.view.fields.requiredPermissions.label": "a47b2168b71f5e68",
6672
"objects.sys_email.fields.message_id.label": "14cd089a4062f4b1",
6773
"objects.sys_email_template.fields.package_id.help": "e1f8cc4d0105cedc",
6874
"objects.sys_email_template.fields.package_id.label": "aacf5e74a8641b2b",

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1659,6 +1659,10 @@ export const deMetadataForms: NonNullable<TranslationData['metadataForms']> = {
16591659
label: "Gesperrt von",
16601660
helpText: "Benutzer, der die Ansichtskonfiguration gesperrt hat"
16611661
},
1662+
requiredPermissions: {
1663+
label: "Required Permissions",
1664+
helpText: "Who sees this view: the capabilities a person must hold, every one listed. Permission sets grant capabilities, and a position passes on the ones its permission sets grant. Leave it empty and everyone who can see the list sees this view. To show it to several groups, pick one capability and grant it to each group's permission set. The server enforces it: anyone else does not find the view in the list and is refused if they open it directly. The gate applies to you too: list a capability you do not hold, or misspell one, and you can no longer open this view either."
1665+
},
16621666
object: {
16631667
label: "Objekt"
16641668
}
@@ -1874,6 +1878,10 @@ export const deMetadataForms: NonNullable<TranslationData['metadataForms']> = {
18741878
label: "Filter",
18751879
description: "Standard- und globale Filter, die auf alle Widgets angewendet werden."
18761880
},
1881+
access: {
1882+
label: "Access",
1883+
description: "Who can see this dashboard."
1884+
},
18771885
advanced: {
18781886
label: "Erweitert",
18791887
description: "Barrierefreiheit und Leistungsoptimierung."
@@ -2054,6 +2062,10 @@ export const deMetadataForms: NonNullable<TranslationData['metadataForms']> = {
20542062
},
20552063
"globalFilters.targetWidgets": {
20562064
label: "Ziel-Widgets"
2065+
},
2066+
requiredPermissions: {
2067+
label: "Required Permissions",
2068+
helpText: "Who sees this dashboard: the capabilities a person must hold, every one listed. Permission sets grant capabilities, and a position passes on the ones its permission sets grant. Leave it empty and everyone sees this dashboard. To show it to several groups, pick one capability and grant it to each group's permission set. The server enforces it: anyone else does not find the dashboard in the list and is refused if they open it directly. The gate applies to you too: list a capability you do not hold, or misspell one, and you can no longer open this dashboard either."
20572069
}
20582070
}
20592071
},

‎packages/platform-objects/src/apps/translations/de.source-hashes.generated.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,12 @@ export const deGeneratedSourceHashes: Readonly<Record<string, string>> = {
5656
"metadataForms.dashboard.fields.dateRange.field.helpText": "bbd8025863a4481a",
5757
"metadataForms.dashboard.fields.dateRange.field.label": "7cd8aace5973d40c",
5858
"metadataForms.dashboard.fields.name.label": "5274417ff1ccaf01",
59+
"metadataForms.dashboard.fields.requiredPermissions.helpText": "00e5446e61cf5759",
60+
"metadataForms.dashboard.fields.requiredPermissions.label": "a47b2168b71f5e68",
5961
"metadataForms.dashboard.fields.widgets.label": "bd4bf82396edd638",
6062
"metadataForms.dashboard.label": "b03d84f15ecdbb1e",
63+
"metadataForms.dashboard.sections.access.description": "fea0fbc00761c87f",
64+
"metadataForms.dashboard.sections.access.label": "5a06534d8d136ba3",
6165
"metadataForms.dashboard.sections.layout.label": "7f508ea1bb2c3a6b",
6266
"metadataForms.dashboard.sections.widgets.label": "bd4bf82396edd638",
6367
"metadataForms.dataset.fields.filter.label": "802895ec427fc6af",
@@ -124,6 +128,8 @@ export const deGeneratedSourceHashes: Readonly<Record<string, string>> = {
124128
"metadataForms.view.fields.kanban.label": "dd95c452aa71459e",
125129
"metadataForms.view.fields.name.label": "5274417ff1ccaf01",
126130
"metadataForms.view.fields.navigation.label": "51cd9fc784a9643f",
131+
"metadataForms.view.fields.requiredPermissions.helpText": "c4599be2ffa06c02",
132+
"metadataForms.view.fields.requiredPermissions.label": "a47b2168b71f5e68",
127133
"metadataForms.view.fields.userActions.filter.label": "802895ec427fc6af",
128134
"metadataForms.view.fields.userFilters.element.label": "e480e4fe57239c98",
129135
"metadataForms.view.sections.gantt.label": "57ffc6ef520edfc5",

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1659,6 +1659,10 @@ export const enMetadataForms: NonNullable<TranslationData['metadataForms']> = {
16591659
label: "Locked By",
16601660
helpText: "User who locked the view configuration"
16611661
},
1662+
requiredPermissions: {
1663+
label: "Required Permissions",
1664+
helpText: "Who sees this view: the capabilities a person must hold, every one listed. Permission sets grant capabilities, and a position passes on the ones its permission sets grant. Leave it empty and everyone who can see the list sees this view. To show it to several groups, pick one capability and grant it to each group's permission set. The server enforces it: anyone else does not find the view in the list and is refused if they open it directly. The gate applies to you too: list a capability you do not hold, or misspell one, and you can no longer open this view either."
1665+
},
16621666
object: {
16631667
label: "Object"
16641668
}
@@ -1874,6 +1878,10 @@ export const enMetadataForms: NonNullable<TranslationData['metadataForms']> = {
18741878
label: "Filters",
18751879
description: "Default and global filters applied across widgets."
18761880
},
1881+
access: {
1882+
label: "Access",
1883+
description: "Who can see this dashboard."
1884+
},
18771885
advanced: {
18781886
label: "Advanced",
18791887
description: "Accessibility and performance tuning."
@@ -2054,6 +2062,10 @@ export const enMetadataForms: NonNullable<TranslationData['metadataForms']> = {
20542062
},
20552063
"globalFilters.targetWidgets": {
20562064
label: "Target Widgets"
2065+
},
2066+
requiredPermissions: {
2067+
label: "Required Permissions",
2068+
helpText: "Who sees this dashboard: the capabilities a person must hold, every one listed. Permission sets grant capabilities, and a position passes on the ones its permission sets grant. Leave it empty and everyone sees this dashboard. To show it to several groups, pick one capability and grant it to each group's permission set. The server enforces it: anyone else does not find the dashboard in the list and is refused if they open it directly. The gate applies to you too: list a capability you do not hold, or misspell one, and you can no longer open this dashboard either."
20572069
}
20582070
}
20592071
},

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1659,6 +1659,10 @@ export const esESMetadataForms: NonNullable<TranslationData['metadataForms']> =
16591659
label: "Bloqueado por",
16601660
helpText: "Usuario que bloqueó la configuración de la vista"
16611661
},
1662+
requiredPermissions: {
1663+
label: "Permisos requeridos",
1664+
helpText: "Quién ve esta vista: las capacidades que una persona debe tener, todas las indicadas. Los conjuntos de permisos otorgan capacidades, y un puesto transmite las que otorgan sus conjuntos de permisos. Si se deja vacío, todos los que pueden ver la lista ven esta vista. Para mostrarla a varios grupos, elija una capacidad y otórguela al conjunto de permisos de cada grupo. El servidor lo aplica: los demás no encuentran la vista en la lista y se les deniega si la abren directamente. Esto también se aplica a usted: si indica una capacidad que no tiene, o la escribe mal, usted tampoco podrá volver a abrir esta vista."
1665+
},
16621666
object: {
16631667
label: "Objeto"
16641668
}
@@ -1874,6 +1878,10 @@ export const esESMetadataForms: NonNullable<TranslationData['metadataForms']> =
18741878
label: "Filtros",
18751879
description: "Filtros predeterminados y globales aplicados a todos los widgets."
18761880
},
1881+
access: {
1882+
label: "Acceso",
1883+
description: "Quién puede ver este panel."
1884+
},
18771885
advanced: {
18781886
label: "Avanzado",
18791887
description: "Ajustes de accesibilidad y rendimiento."
@@ -2054,6 +2062,10 @@ export const esESMetadataForms: NonNullable<TranslationData['metadataForms']> =
20542062
},
20552063
"globalFilters.targetWidgets": {
20562064
label: "Widgets de destino"
2065+
},
2066+
requiredPermissions: {
2067+
label: "Permisos requeridos",
2068+
helpText: "Quién ve este panel: las capacidades que una persona debe tener, todas las indicadas. Los conjuntos de permisos otorgan capacidades, y un puesto transmite las que otorgan sus conjuntos de permisos. Si se deja vacío, todos ven este panel. Para mostrarlo a varios grupos, elija una capacidad y otórguela al conjunto de permisos de cada grupo. El servidor lo aplica: los demás no encuentran el panel en la lista y se les deniega si lo abren directamente. Esto también se aplica a usted: si indica una capacidad que no tiene, o la escribe mal, usted tampoco podrá volver a abrir este panel."
20572069
}
20582070
}
20592071
},

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1659,6 +1659,10 @@ export const frMetadataForms: NonNullable<TranslationData['metadataForms']> = {
16591659
label: "Verrouillé par",
16601660
helpText: "Utilisateur qui a verrouillé la configuration de la vue"
16611661
},
1662+
requiredPermissions: {
1663+
label: "Required Permissions",
1664+
helpText: "Who sees this view: the capabilities a person must hold, every one listed. Permission sets grant capabilities, and a position passes on the ones its permission sets grant. Leave it empty and everyone who can see the list sees this view. To show it to several groups, pick one capability and grant it to each group's permission set. The server enforces it: anyone else does not find the view in the list and is refused if they open it directly. The gate applies to you too: list a capability you do not hold, or misspell one, and you can no longer open this view either."
1665+
},
16621666
object: {
16631667
label: "Objet"
16641668
}
@@ -1874,6 +1878,10 @@ export const frMetadataForms: NonNullable<TranslationData['metadataForms']> = {
18741878
label: "Filtres",
18751879
description: "Filtres par défaut et globaux appliqués à l’ensemble des widgets."
18761880
},
1881+
access: {
1882+
label: "Access",
1883+
description: "Who can see this dashboard."
1884+
},
18771885
advanced: {
18781886
label: "Avancé",
18791887
description: "Réglages d’accessibilité et de performances."
@@ -2054,6 +2062,10 @@ export const frMetadataForms: NonNullable<TranslationData['metadataForms']> = {
20542062
},
20552063
"globalFilters.targetWidgets": {
20562064
label: "Widgets cibles"
2065+
},
2066+
requiredPermissions: {
2067+
label: "Required Permissions",
2068+
helpText: "Who sees this dashboard: the capabilities a person must hold, every one listed. Permission sets grant capabilities, and a position passes on the ones its permission sets grant. Leave it empty and everyone sees this dashboard. To show it to several groups, pick one capability and grant it to each group's permission set. The server enforces it: anyone else does not find the dashboard in the list and is refused if they open it directly. The gate applies to you too: list a capability you do not hold, or misspell one, and you can no longer open this dashboard either."
20572069
}
20582070
}
20592071
},

‎packages/platform-objects/src/apps/translations/fr.source-hashes.generated.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,11 @@ export const frGeneratedSourceHashes: Readonly<Record<string, string>> = {
6464
"metadataForms.dashboard.fields.dateRange.field.helpText": "bbd8025863a4481a",
6565
"metadataForms.dashboard.fields.dateRange.field.label": "7cd8aace5973d40c",
6666
"metadataForms.dashboard.fields.description.label": "779a4342c8eb6707",
67+
"metadataForms.dashboard.fields.requiredPermissions.helpText": "00e5446e61cf5759",
68+
"metadataForms.dashboard.fields.requiredPermissions.label": "a47b2168b71f5e68",
6769
"metadataForms.dashboard.fields.widgets.label": "bd4bf82396edd638",
70+
"metadataForms.dashboard.sections.access.description": "fea0fbc00761c87f",
71+
"metadataForms.dashboard.sections.access.label": "5a06534d8d136ba3",
6872
"metadataForms.dashboard.sections.widgets.label": "bd4bf82396edd638",
6973
"metadataForms.dataset.fields.description.label": "779a4342c8eb6707",
7074
"metadataForms.dataset.fields.dimensions.label": "d75e6dd9d87e93b4",
@@ -160,6 +164,8 @@ export const frGeneratedSourceHashes: Readonly<Record<string, string>> = {
160164
"metadataForms.view.fields.navigation.label": "51cd9fc784a9643f",
161165
"metadataForms.view.fields.navigation.mode.label": "74dde5013435abdc",
162166
"metadataForms.view.fields.pagination.label": "309131fbaca258df",
167+
"metadataForms.view.fields.requiredPermissions.helpText": "c4599be2ffa06c02",
168+
"metadataForms.view.fields.requiredPermissions.label": "a47b2168b71f5e68",
163169
"metadataForms.view.fields.selection.type.label": "901bb552898b2cab",
164170
"metadataForms.view.fields.type.label": "901bb552898b2cab",
165171
"metadataForms.view.sections.gantt.label": "57ffc6ef520edfc5",

0 commit comments

Comments
 (0)