Skip to content
Merged
18 changes: 18 additions & 0 deletions .changeset/34908-view-dashboard-audience-form-row.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
'@objectstack/spec': patch
'@objectstack/platform-objects': patch
'@object-ui/app-shell': patch
---

feat(spec): the view and dashboard authoring forms offer the audience gate, `requiredPermissions`

Clause-②: no
Metadata-protocol: none

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.

- **`@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).
- **`@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.
- **`@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.

Nothing to migrate.
Original file line number Diff line number Diff line change
Expand Up @@ -1659,6 +1659,10 @@ export const arMetadataForms: NonNullable<TranslationData['metadataForms']> = {
label: "مقفل بواسطة",
helpText: "المستخدم الذي قفل تهيئة طريقة العرض"
},
requiredPermissions: {
label: "Required Permissions",
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."
},
object: {
label: "الكائن"
}
Expand Down Expand Up @@ -1874,6 +1878,10 @@ export const arMetadataForms: NonNullable<TranslationData['metadataForms']> = {
label: "عوامل التصفية",
description: "عوامل التصفية الافتراضية والعامة المطبَّقة على عناصر الواجهة."
},
access: {
label: "Access",
description: "Who can see this dashboard."
},
advanced: {
label: "متقدم",
description: "ضبط إمكانية الوصول والأداء."
Expand Down Expand Up @@ -2054,6 +2062,10 @@ export const arMetadataForms: NonNullable<TranslationData['metadataForms']> = {
},
"globalFilters.targetWidgets": {
label: "عناصر الواجهة المستهدفة"
},
requiredPermissions: {
label: "Required Permissions",
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."
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ export const arGeneratedSourceHashes: Readonly<Record<string, string>> = {
"metadataForms.dashboard.fields.dateRange.defaultRange.label": "c1f190468a0e2b35",
"metadataForms.dashboard.fields.dateRange.field.helpText": "bbd8025863a4481a",
"metadataForms.dashboard.fields.dateRange.field.label": "7cd8aace5973d40c",
"metadataForms.dashboard.fields.requiredPermissions.helpText": "00e5446e61cf5759",
"metadataForms.dashboard.fields.requiredPermissions.label": "a47b2168b71f5e68",
"metadataForms.dashboard.sections.access.description": "fea0fbc00761c87f",
"metadataForms.dashboard.sections.access.label": "5a06534d8d136ba3",
"metadataForms.email_template.fields.fromOverride.helpText": "c5e29fa12ee1525b",
"metadataForms.email_template.fields.variables.helpText": "27197774c2cda633",
"metadataForms.field.fields.inlineEdit.helpText": "1ce60e4c6d5fc0e1",
Expand All @@ -63,6 +67,8 @@ export const arGeneratedSourceHashes: Readonly<Record<string, string>> = {
"metadataForms.report.fields.exportOptions.formats.label": "193cd91818d64ef7",
"metadataForms.report.fields.exportOptions.includeHeaders.helpText": "44cbc80015ff051d",
"metadataForms.report.fields.exportOptions.includeHeaders.label": "f114a4778c9727ae",
"metadataForms.view.fields.requiredPermissions.helpText": "c4599be2ffa06c02",
"metadataForms.view.fields.requiredPermissions.label": "a47b2168b71f5e68",
"objects.sys_email.fields.message_id.label": "14cd089a4062f4b1",
"objects.sys_email_template.fields.package_id.help": "e1f8cc4d0105cedc",
"objects.sys_email_template.fields.package_id.label": "aacf5e74a8641b2b",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1659,6 +1659,10 @@ export const deMetadataForms: NonNullable<TranslationData['metadataForms']> = {
label: "Gesperrt von",
helpText: "Benutzer, der die Ansichtskonfiguration gesperrt hat"
},
requiredPermissions: {
label: "Required Permissions",
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."
},
object: {
label: "Objekt"
}
Expand Down Expand Up @@ -1874,6 +1878,10 @@ export const deMetadataForms: NonNullable<TranslationData['metadataForms']> = {
label: "Filter",
description: "Standard- und globale Filter, die auf alle Widgets angewendet werden."
},
access: {
label: "Access",
description: "Who can see this dashboard."
},
advanced: {
label: "Erweitert",
description: "Barrierefreiheit und Leistungsoptimierung."
Expand Down Expand Up @@ -2054,6 +2062,10 @@ export const deMetadataForms: NonNullable<TranslationData['metadataForms']> = {
},
"globalFilters.targetWidgets": {
label: "Ziel-Widgets"
},
requiredPermissions: {
label: "Required Permissions",
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."
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,12 @@ export const deGeneratedSourceHashes: Readonly<Record<string, string>> = {
"metadataForms.dashboard.fields.dateRange.field.helpText": "bbd8025863a4481a",
"metadataForms.dashboard.fields.dateRange.field.label": "7cd8aace5973d40c",
"metadataForms.dashboard.fields.name.label": "5274417ff1ccaf01",
"metadataForms.dashboard.fields.requiredPermissions.helpText": "00e5446e61cf5759",
"metadataForms.dashboard.fields.requiredPermissions.label": "a47b2168b71f5e68",
"metadataForms.dashboard.fields.widgets.label": "bd4bf82396edd638",
"metadataForms.dashboard.label": "b03d84f15ecdbb1e",
"metadataForms.dashboard.sections.access.description": "fea0fbc00761c87f",
"metadataForms.dashboard.sections.access.label": "5a06534d8d136ba3",
"metadataForms.dashboard.sections.layout.label": "7f508ea1bb2c3a6b",
"metadataForms.dashboard.sections.widgets.label": "bd4bf82396edd638",
"metadataForms.dataset.fields.filter.label": "802895ec427fc6af",
Expand Down Expand Up @@ -124,6 +128,8 @@ export const deGeneratedSourceHashes: Readonly<Record<string, string>> = {
"metadataForms.view.fields.kanban.label": "dd95c452aa71459e",
"metadataForms.view.fields.name.label": "5274417ff1ccaf01",
"metadataForms.view.fields.navigation.label": "51cd9fc784a9643f",
"metadataForms.view.fields.requiredPermissions.helpText": "c4599be2ffa06c02",
"metadataForms.view.fields.requiredPermissions.label": "a47b2168b71f5e68",
"metadataForms.view.fields.userActions.filter.label": "802895ec427fc6af",
"metadataForms.view.fields.userFilters.element.label": "e480e4fe57239c98",
"metadataForms.view.sections.gantt.label": "57ffc6ef520edfc5",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1659,6 +1659,10 @@ export const enMetadataForms: NonNullable<TranslationData['metadataForms']> = {
label: "Locked By",
helpText: "User who locked the view configuration"
},
requiredPermissions: {
label: "Required Permissions",
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."
},
object: {
label: "Object"
}
Expand Down Expand Up @@ -1874,6 +1878,10 @@ export const enMetadataForms: NonNullable<TranslationData['metadataForms']> = {
label: "Filters",
description: "Default and global filters applied across widgets."
},
access: {
label: "Access",
description: "Who can see this dashboard."
},
advanced: {
label: "Advanced",
description: "Accessibility and performance tuning."
Expand Down Expand Up @@ -2054,6 +2062,10 @@ export const enMetadataForms: NonNullable<TranslationData['metadataForms']> = {
},
"globalFilters.targetWidgets": {
label: "Target Widgets"
},
requiredPermissions: {
label: "Required Permissions",
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."
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1659,6 +1659,10 @@ export const esESMetadataForms: NonNullable<TranslationData['metadataForms']> =
label: "Bloqueado por",
helpText: "Usuario que bloqueó la configuración de la vista"
},
requiredPermissions: {
label: "Permisos requeridos",
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."
},
object: {
label: "Objeto"
}
Expand Down Expand Up @@ -1874,6 +1878,10 @@ export const esESMetadataForms: NonNullable<TranslationData['metadataForms']> =
label: "Filtros",
description: "Filtros predeterminados y globales aplicados a todos los widgets."
},
access: {
label: "Acceso",
description: "Quién puede ver este panel."
},
advanced: {
label: "Avanzado",
description: "Ajustes de accesibilidad y rendimiento."
Expand Down Expand Up @@ -2054,6 +2062,10 @@ export const esESMetadataForms: NonNullable<TranslationData['metadataForms']> =
},
"globalFilters.targetWidgets": {
label: "Widgets de destino"
},
requiredPermissions: {
label: "Permisos requeridos",
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."
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1659,6 +1659,10 @@ export const frMetadataForms: NonNullable<TranslationData['metadataForms']> = {
label: "Verrouillé par",
helpText: "Utilisateur qui a verrouillé la configuration de la vue"
},
requiredPermissions: {
label: "Required Permissions",
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."
},
object: {
label: "Objet"
}
Expand Down Expand Up @@ -1874,6 +1878,10 @@ export const frMetadataForms: NonNullable<TranslationData['metadataForms']> = {
label: "Filtres",
description: "Filtres par défaut et globaux appliqués à l’ensemble des widgets."
},
access: {
label: "Access",
description: "Who can see this dashboard."
},
advanced: {
label: "Avancé",
description: "Réglages d’accessibilité et de performances."
Expand Down Expand Up @@ -2054,6 +2062,10 @@ export const frMetadataForms: NonNullable<TranslationData['metadataForms']> = {
},
"globalFilters.targetWidgets": {
label: "Widgets cibles"
},
requiredPermissions: {
label: "Required Permissions",
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."
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ export const frGeneratedSourceHashes: Readonly<Record<string, string>> = {
"metadataForms.dashboard.fields.dateRange.field.helpText": "bbd8025863a4481a",
"metadataForms.dashboard.fields.dateRange.field.label": "7cd8aace5973d40c",
"metadataForms.dashboard.fields.description.label": "779a4342c8eb6707",
"metadataForms.dashboard.fields.requiredPermissions.helpText": "00e5446e61cf5759",
"metadataForms.dashboard.fields.requiredPermissions.label": "a47b2168b71f5e68",
"metadataForms.dashboard.fields.widgets.label": "bd4bf82396edd638",
"metadataForms.dashboard.sections.access.description": "fea0fbc00761c87f",
"metadataForms.dashboard.sections.access.label": "5a06534d8d136ba3",
"metadataForms.dashboard.sections.widgets.label": "bd4bf82396edd638",
"metadataForms.dataset.fields.description.label": "779a4342c8eb6707",
"metadataForms.dataset.fields.dimensions.label": "d75e6dd9d87e93b4",
Expand Down Expand Up @@ -160,6 +164,8 @@ export const frGeneratedSourceHashes: Readonly<Record<string, string>> = {
"metadataForms.view.fields.navigation.label": "51cd9fc784a9643f",
"metadataForms.view.fields.navigation.mode.label": "74dde5013435abdc",
"metadataForms.view.fields.pagination.label": "309131fbaca258df",
"metadataForms.view.fields.requiredPermissions.helpText": "c4599be2ffa06c02",
"metadataForms.view.fields.requiredPermissions.label": "a47b2168b71f5e68",
"metadataForms.view.fields.selection.type.label": "901bb552898b2cab",
"metadataForms.view.fields.type.label": "901bb552898b2cab",
"metadataForms.view.sections.gantt.label": "57ffc6ef520edfc5",
Expand Down
Loading
Loading