Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/setup-positions-nav-label.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@objectstack/plugin-security": patch
"@objectstack/platform-objects": patch
---

Setup navigation: the Access Control menu entry for `sys_position` is now labeled "Positions" (was still "Roles" after the ADR-0090 D3 rename) — `nav_roles` → `nav_positions`, with zh-CN 岗位 / ja-JP ポジション / es-ES Posiciones translations updated to match the position vocabulary.
6 changes: 3 additions & 3 deletions packages/platform-objects/src/apps/setup-nav.contributions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* that owns the underlying objects rather than living here (ADR-0029 K2):
* - `group_integrations` → `@objectstack/plugin-webhooks` (K2.a)
* - `group_approvals` → `@objectstack/plugin-approvals` (K2.b)
* - `group_access_control` Roles / Permission Sets → `@objectstack/plugin-security`
* - `group_access_control` Positions / Permission Sets → `@objectstack/plugin-security`
* - `group_access_control` Sharing Rules / Record Shares → `@objectstack/plugin-sharing`
* As each remaining domain moves to its capability plugin, its entries move out
* of this file into that plugin the same way.
Expand Down Expand Up @@ -78,12 +78,12 @@ export const SETUP_NAV_CONTRIBUTIONS: NavigationContribution[] = [
{
app: 'setup',
group: 'group_access_control',
// Priority 300 keeps API Keys after plugin-security's Roles / Permission
// Priority 300 keeps API Keys after plugin-security's Positions / Permission
// Sets (100) and plugin-sharing's Sharing Rules / Record Shares (200),
// preserving the original menu order.
priority: 300,
items: [
// Roles / Permission Sets are contributed by @objectstack/plugin-security
// Positions / Permission Sets are contributed by @objectstack/plugin-security
// and Sharing Rules / Record Shares by @objectstack/plugin-sharing
// (ADR-0029 K2). Only API Keys (sys_api_key, an identity object owned by
// plugin-auth) remains a platform-objects base entry here.
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-objects/src/apps/translations/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const en: TranslationData = {
nav_invitations: { label: 'Invitations' },

// Access Control
nav_roles: { label: 'Roles' },
nav_positions: { label: 'Positions' },
nav_permission_sets: { label: 'Permission Sets' },
nav_sharing_rules: { label: 'Sharing Rules' },
nav_record_shares: { label: 'Record Shares' },
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-objects/src/apps/translations/es-ES.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const esES: TranslationData = {
nav_organizations: { label: 'Organizaciones' },
nav_invitations: { label: 'Invitaciones' },

nav_roles: { label: 'Roles' },
nav_positions: { label: 'Posiciones' },
nav_permission_sets: { label: 'Conjuntos de Permisos' },
nav_sharing_rules: { label: 'Reglas de Compartición' },
nav_record_shares: { label: 'Registros Compartidos' },
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-objects/src/apps/translations/ja-JP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const jaJP: TranslationData = {
nav_organizations: { label: '組織' },
nav_invitations: { label: '招待' },

nav_roles: { label: 'ロール' },
nav_positions: { label: 'ポジション' },
nav_permission_sets: { label: '権限セット' },
nav_sharing_rules: { label: '共有ルール' },
nav_record_shares: { label: 'レコード共有' },
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-objects/src/apps/translations/zh-CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const zhCN: TranslationData = {
nav_organizations: { label: '组织' },
nav_invitations: { label: '邀请' },

nav_roles: { label: '角色' },
nav_positions: { label: '岗位' },
nav_capabilities: { label: '能力' },
nav_permission_sets: { label: '权限集' },
nav_sharing_rules: { label: '共享规则' },
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/plugin-security/src/security-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ export class SecurityPlugin implements Plugin {
group: 'group_access_control',
priority: 100,
items: [
{ id: 'nav_roles', type: 'object', label: 'Roles', objectName: 'sys_position', icon: 'shield-check' },
{ id: 'nav_positions', type: 'object', label: 'Positions', objectName: 'sys_position', icon: 'shield-check' },
{ id: 'nav_capabilities', type: 'object', label: 'Capabilities', objectName: 'sys_capability', icon: 'badge-check' },
{ id: 'nav_permission_sets', type: 'object', label: 'Permission Sets', objectName: 'sys_permission_set', icon: 'lock' },
],
Expand Down
6 changes: 3 additions & 3 deletions packages/spec/src/ui/app.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,10 @@ describe('NavigationItemSchema (Recursive)', () => {
objectName: 'user',
},
{
id: 'nav_roles',
label: 'Roles',
id: 'nav_positions',
label: 'Positions',
type: 'object' as const,
objectName: 'role',
objectName: 'position',
},
],
},
Expand Down