From 75ff7ae7550a1fcae79da285282b5d290267c5c2 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 3 Dec 2026 14:39:06 +0000 Subject: [PATCH 1/7] =?UTF-8?q?fix(app-shell,spec):=20review=20follow-ups?= =?UTF-8?q?=20of=20#39207=20=E2=80=94=20a=20cleared=20menu=20label=20keeps?= =?UTF-8?q?=20the=20node's=20keywords?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - designModeMenuSave: clearing a translated label drops only `label`; a node that still has keywords keeps them (N4). - translation-contributed-nav-bundle.test: header names the current control (N2). - the nav-keywords-without-label changeset names PlatformTranslationData and ServedTranslationData (N3). Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_01Utp6CXktGqE1JUHFoagYGj --- ...-nav-translation-keywords-without-label.md | 2 +- ...translation-contributed-nav-bundle.test.ts | 4 +- .../39210-menu-clear-label-keeps-keywords.md | 8 ++ .../designModeMenuSave-39210.test.ts | 82 +++++++++++++++++++ .../src/layout/designModeMenuSave.ts | 14 +++- 5 files changed, 105 insertions(+), 5 deletions(-) create mode 100644 ui/.changeset/39210-menu-clear-label-keeps-keywords.md create mode 100644 ui/packages/app-shell/src/layout/__tests__/designModeMenuSave-39210.test.ts diff --git a/.changeset/39146-nav-translation-keywords-without-label.md b/.changeset/39146-nav-translation-keywords-without-label.md index 77a1c1838f0..42cfe4b7dbe 100644 --- a/.changeset/39146-nav-translation-keywords-without-label.md +++ b/.changeset/39146-nav-translation-keywords-without-label.md @@ -7,7 +7,7 @@ feat(spec): a translation bundle can give a navigation entry this locale's keywo Clause-②: yes (widening) Metadata-protocol: added -Widened: a navigation translation node, `apps.APP.navigation.ID` in a translation bundle and in a registered `translation` item, now parses with `keywords` and no `label`; its `label` is optional whenever `keywords` is present. +Widened: a navigation translation node, `apps.APP.navigation.ID` in a translation bundle, in a registered `translation` item, in the platform's own translations (`PlatformTranslationData`) and in the body `GET /i18n/translations/:locale` serves (`ServedTranslationData`), now parses with `keywords` and no `label`; its `label` is optional whenever `keywords` is present. Before, a node had to carry `label`, so an author who only wanted to add this locale's search words for an entry had to restate a label too, and that pinned label went stale when the source label changed. Now the node can carry only `keywords`: the served app keeps the label the locale chain finds next (another locale's, else the entry's source label), and the locale's keywords are added to the entry's own, as before. diff --git a/packages/spec/src/system/translation-contributed-nav-bundle.test.ts b/packages/spec/src/system/translation-contributed-nav-bundle.test.ts index 77d4c1cc6bd..70f90c68028 100644 --- a/packages/spec/src/system/translation-contributed-nav-bundle.test.ts +++ b/packages/spec/src/system/translation-contributed-nav-bundle.test.ts @@ -21,7 +21,9 @@ * (this file is compiled by the package's test type-check); * - `defineStack` (strict) accepts the module stack carrying it; * - the bare schema parse — the `os validate` door's — accepts it; - * - CONTROL: a navigation entry still owes its own `label`, at both layers; + * - CONTROL: a navigation entry with neither `label` nor `keywords` is refused + * at the schema (the type takes it, since #39146 made `label` optional so a + * node may carry only this locale's `keywords`); * - CONTROL: an app entry that does author `label` keeps it. * * The `os validate` exit-code pin lives in diff --git a/ui/.changeset/39210-menu-clear-label-keeps-keywords.md b/ui/.changeset/39210-menu-clear-label-keeps-keywords.md new file mode 100644 index 00000000000..bad08b15746 --- /dev/null +++ b/ui/.changeset/39210-menu-clear-label-keeps-keywords.md @@ -0,0 +1,8 @@ +--- +"@object-ui/app-shell": patch +--- + +Clause-②: no +Metadata-protocol: none + +Clearing an entry's translated name in the design mode's menu now keeps that entry's translated search keywords in the language's menu translation. Before, the save deleted the entry's whole translation node, so the keywords written for that language went with the name. A node left with no keywords is still deleted (objectstack#39210). diff --git a/ui/packages/app-shell/src/layout/__tests__/designModeMenuSave-39210.test.ts b/ui/packages/app-shell/src/layout/__tests__/designModeMenuSave-39210.test.ts new file mode 100644 index 00000000000..91d7633e5b9 --- /dev/null +++ b/ui/packages/app-shell/src/layout/__tests__/designModeMenuSave-39210.test.ts @@ -0,0 +1,82 @@ +// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license. + +/** + * Clearing an entry's translated label in the design mode's menu keeps that + * entry's translated keywords (objectstack#39210, review N4 of #39207). + * + * A navigation translation node may carry only this locale's `keywords` + * (#39146). The menu save used to delete the whole node when a label was + * cleared, so the locale's search words went with it. Now a cleared label + * drops `label` only; a node left with no keywords translates nothing and is + * still deleted. + */ + +import { describe, expect, it, vi } from 'vitest'; + +vi.mock('../../assistant/assistantBus', async (importOriginal) => ({ + ...(await importOriginal>()), + emitMetadataRefresh: vi.fn(), +})); + +import { menuTranslationName, writeAppMenu, type AppMenuSaveDoors } from '../designModeMenuSave'; + +const TEXTS = { pendingDraft: 'pending draft' }; +const PKG = 'com.acme.crm'; +const TRANSLATION = menuTranslationName('crm', 'zh-CN'); + +/** Write `labels` over the stored translation item `stored`; answers the body saved. */ +async function saveOver(stored: Record, labels: Record) { + const saved: unknown[] = []; + const doors: Pick = { + client: { + layered: async () => ({ code: stored, effective: stored, overlayVersion: 'v1' }), + save: async (_type, _name, body) => { + saved.push(body); + return {}; + }, + publish: async () => ({}), + reset: async () => ({}), + }, + }; + await writeAppMenu( + { + appName: 'crm', + target: PKG, + body: {}, + publishPin: { ifMatch: 'v1' }, + writesMenu: false, + translation: { name: TRANSLATION, locale: 'zh-CN', labels }, + } as Parameters[0], + TEXTS, + doors, + ); + return saved[0] as { apps: { crm: { navigation: Record } } }; +} + +const storedWith = (navigation: Record) => ({ + name: TRANSLATION, + locale: 'zh-CN', + apps: { crm: { navigation } }, +}); + +describe('a cleared translated label keeps the entry\'s keywords (objectstack#39210)', () => { + it('a node with keywords loses only its label', async () => { + const body = await saveOver(storedWith({ leads: { label: '线索', keywords: ['潜客', '商机'] } }), { leads: null }); + expect(body.apps.crm.navigation).toEqual({ leads: { keywords: ['潜客', '商机'] } }); + }); + + it('CONTROL: a node with a label only is deleted', async () => { + const body = await saveOver(storedWith({ leads: { label: '线索' }, cases: { label: '工单' } }), { leads: null }); + expect(body.apps.crm.navigation).toEqual({ cases: { label: '工单' } }); + }); + + it('CONTROL: a node whose keywords are an empty list is deleted, since it translates nothing', async () => { + const body = await saveOver(storedWith({ leads: { label: '线索', keywords: [] } }), { leads: null }); + expect(body.apps.crm.navigation).toEqual({}); + }); + + it('CONTROL: a set label keeps the node\'s keywords', async () => { + const body = await saveOver(storedWith({ leads: { label: '线索', keywords: ['潜客'] } }), { leads: '潜在客户' }); + expect(body.apps.crm.navigation).toEqual({ leads: { label: '潜在客户', keywords: ['潜客'] } }); + }); +}); diff --git a/ui/packages/app-shell/src/layout/designModeMenuSave.ts b/ui/packages/app-shell/src/layout/designModeMenuSave.ts index d4c4b1c167d..300db293a2e 100644 --- a/ui/packages/app-shell/src/layout/designModeMenuSave.ts +++ b/ui/packages/app-shell/src/layout/designModeMenuSave.ts @@ -407,7 +407,7 @@ export function menuTranslationName(appName: string, locale: string): string { * Write the menu labels `write` as the translation of the app `appName` in * `target` (objectstack#36504), and publish it: the item as stored, its other * keys kept, with `apps.APP.navigation.ID.label` set (or dropped, for - * `null`) for each label. Translations of app navigation are read by entry + * `null`, keeping the node's `keywords` when it has any) for each label. Translations of app navigation are read by entry * id at those keys (`translateApp`), the pair's own first on a customized * installed app (ADR-0146 D2), so the reader's language reads the new name * and every other language keeps its own. @@ -429,8 +429,16 @@ async function writeMenuTranslation( const app = isRecord(apps[appName]) ? apps[appName] : {}; const navigation: Record = { ...(isRecord(app.navigation) ? app.navigation : {}) }; for (const [id, label] of Object.entries(write.labels)) { - if (label === null) delete navigation[id]; - else navigation[id] = { ...(isRecord(navigation[id]) ? navigation[id] : {}), label }; + const node = isRecord(navigation[id]) ? navigation[id] : {}; + if (label !== null) navigation[id] = { ...node, label }; + else { + // objectstack#39210 — a cleared label drops the label, not the node: a + // node may carry only this locale's `keywords` (#39146), and those stay. + // A node left with no keywords translates nothing and is deleted. + const { label: _cleared, ...rest } = node; + if (Array.isArray(rest.keywords) && rest.keywords.length > 0) navigation[id] = rest; + else delete navigation[id]; + } } const body = { ...stored, name: write.name, locale: write.locale, apps: { ...apps, [appName]: { ...app, navigation } } }; const pin = publishPinAt(layers); From 9ea6352e31cb8bb3f807298b24a3dc2566a4b656 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 3 Dec 2026 14:44:04 +0000 Subject: [PATCH 2/7] =?UTF-8?q?chore(app-shell):=20fold=20L1=20nits=20?= =?UTF-8?q?=E2=80=94=20rewrap=20docblock,=20drop=20test=20cast?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_01Utp6CXktGqE1JUHFoagYGj --- .../src/layout/__tests__/designModeMenuSave-39210.test.ts | 2 +- ui/packages/app-shell/src/layout/designModeMenuSave.ts | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ui/packages/app-shell/src/layout/__tests__/designModeMenuSave-39210.test.ts b/ui/packages/app-shell/src/layout/__tests__/designModeMenuSave-39210.test.ts index 91d7633e5b9..f4d28fb305f 100644 --- a/ui/packages/app-shell/src/layout/__tests__/designModeMenuSave-39210.test.ts +++ b/ui/packages/app-shell/src/layout/__tests__/designModeMenuSave-39210.test.ts @@ -46,7 +46,7 @@ async function saveOver(stored: Record, labels: Record[0], + }, TEXTS, doors, ); diff --git a/ui/packages/app-shell/src/layout/designModeMenuSave.ts b/ui/packages/app-shell/src/layout/designModeMenuSave.ts index 300db293a2e..6f9bc42dbe3 100644 --- a/ui/packages/app-shell/src/layout/designModeMenuSave.ts +++ b/ui/packages/app-shell/src/layout/designModeMenuSave.ts @@ -407,8 +407,9 @@ export function menuTranslationName(appName: string, locale: string): string { * Write the menu labels `write` as the translation of the app `appName` in * `target` (objectstack#36504), and publish it: the item as stored, its other * keys kept, with `apps.APP.navigation.ID.label` set (or dropped, for - * `null`, keeping the node's `keywords` when it has any) for each label. Translations of app navigation are read by entry - * id at those keys (`translateApp`), the pair's own first on a customized + * `null`, keeping the node's `keywords` when it has any) for each label. + * Translations of app navigation are read by entry id at those keys + * (`translateApp`), the pair's own first on a customized * installed app (ADR-0146 D2), so the reader's language reads the new name * and every other language keeps its own. * From d737f23590a51f53473a4201fced0b18c9e280ab Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 3 Dec 2026 14:44:37 +0000 Subject: [PATCH 3/7] chore: move the app-shell changeset to the root .changeset Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_01Utp6CXktGqE1JUHFoagYGj --- .../39210-menu-clear-label-keeps-keywords.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {ui/.changeset => .changeset}/39210-menu-clear-label-keeps-keywords.md (100%) diff --git a/ui/.changeset/39210-menu-clear-label-keeps-keywords.md b/.changeset/39210-menu-clear-label-keeps-keywords.md similarity index 100% rename from ui/.changeset/39210-menu-clear-label-keeps-keywords.md rename to .changeset/39210-menu-clear-label-keeps-keywords.md From fe48fbd9e88df88f556daed597f2a2001a7340b0 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 3 Dec 2026 15:28:07 +0000 Subject: [PATCH 4/7] feat(spec): a navigation keywords list is never empty, at both doors The nav item's `keywords` and the translation node's `keywords` refuse an empty list (`.min(1)`), per the maintainer's ruling on the review nit. Both keys are unreleased; the pending notes now state the final accept set. The objectui types mirror follows. Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_01Utp6CXktGqE1JUHFoagYGj --- .changeset/39052-nav-item-keywords.md | 2 +- ...-nav-translation-keywords-without-label.md | 2 +- content/docs/references/ui/app.mdx | 90 +++++++++---------- packages/spec/src/system/translation.zod.ts | 9 +- packages/spec/src/ui/app-nav-keywords.test.ts | 4 +- packages/spec/src/ui/app.zod.ts | 9 +- ui/packages/types/src/zod/app.zod.ts | 4 +- 7 files changed, 63 insertions(+), 57 deletions(-) diff --git a/.changeset/39052-nav-item-keywords.md b/.changeset/39052-nav-item-keywords.md index 9105832cdd0..ea58e0ad610 100644 --- a/.changeset/39052-nav-item-keywords.md +++ b/.changeset/39052-nav-item-keywords.md @@ -11,7 +11,7 @@ Metadata-protocol: added Setup pages are being renamed (#39050), so a page must still be found by its old name. Two optional keys carry that: -- **`keywords: string[]` on every navigation item** except `separator` (it sits on the shared nav base, beside `label`). Source-language words a person may type to find the entry, such as its old name. Search only: never shown, never a route, never a gate. Each keyword is one trimmed, non-empty word or phrase of at most 60 characters, and an entry takes at most 20 (the dataset synonym's rule); anything else is refused, not trimmed. `synonyms`, `searchTerms` and `searchKeywords` are refused with "did you mean `keywords`", and so is `aliases`, except on a `group`, where it is answered with both keys it can mean there (`keywords`, or `renamedFrom` for retired group ids). A `separator` refuses `keywords` with its own prescription. +- **`keywords: string[]` on every navigation item** except `separator` (it sits on the shared nav base, beside `label`). Source-language words a person may type to find the entry, such as its old name. Search only: never shown, never a route, never a gate. Each keyword is one trimmed, non-empty word or phrase of at most 60 characters, and an entry takes at least 1 and at most 20 (the dataset synonym's rule; an empty list is refused, so leave the key out instead); anything else is refused, not trimmed. `synonyms`, `searchTerms` and `searchKeywords` are refused with "did you mean `keywords`", and so is `aliases`, except on a `group`, where it is answered with both keys it can mean there (`keywords`, or `renamedFrom` for retired group ids). A `separator` refuses `keywords` with its own prescription. - **`keywords: string[]` on a translation bundle's navigation node**, beside `label`: `apps..navigation..keywords` gives this locale's aliases for the entry, keyed by the same entry id as the label, at both translation doors (the file bundle and the registered `translation` item), under the same rule as the item's. The node still owes its `label`, and an unknown key is still refused. The key is named `keywords`, not `aliases`, because `aliases` already means a retired-key rename map across the AI schemas. diff --git a/.changeset/39146-nav-translation-keywords-without-label.md b/.changeset/39146-nav-translation-keywords-without-label.md index 42cfe4b7dbe..decdefda402 100644 --- a/.changeset/39146-nav-translation-keywords-without-label.md +++ b/.changeset/39146-nav-translation-keywords-without-label.md @@ -11,4 +11,4 @@ Widened: a navigation translation node, `apps.APP.navigation.ID` in a translatio Before, a node had to carry `label`, so an author who only wanted to add this locale's search words for an entry had to restate a label too, and that pinned label went stale when the source label changed. Now the node can carry only `keywords`: the served app keeps the label the locale chain finds next (another locale's, else the entry's source label), and the locale's keywords are added to the entry's own, as before. -A node with neither `label` nor `keywords` is still refused, at the node's `label` path, with a message that names both keys. `os i18n check` and `os lint` still report a keywords-only node's label as untranslated where the label is owed: coverage reads `apps.APP.navigation.ID.label` and finds nothing there. +A node with neither `label` nor `keywords` is still refused, and so is an empty `keywords` list, which translates nothing (at both the node and the navigation item), at the node's `label` path, with a message that names both keys. `os i18n check` and `os lint` still report a keywords-only node's label as untranslated where the label is owed: coverage reads `apps.APP.navigation.ID.label` and finds nothing there. diff --git a/content/docs/references/ui/app.mdx b/content/docs/references/ui/app.mdx index a430f20918a..2465cb12d66 100644 --- a/content/docs/references/ui/app.mdx +++ b/content/docs/references/ui/app.mdx @@ -30,7 +30,7 @@ const result = ActionNavItemSchema.parse(data); | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -107,7 +107,7 @@ const result = ActionNavItemSchema.parse(data); | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -132,7 +132,7 @@ const result = ActionNavItemSchema.parse(data); | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -151,7 +151,7 @@ const result = ActionNavItemSchema.parse(data); | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -171,7 +171,7 @@ const result = ActionNavItemSchema.parse(data); | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -191,7 +191,7 @@ const result = ActionNavItemSchema.parse(data); | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -210,7 +210,7 @@ const result = ActionNavItemSchema.parse(data); | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -229,7 +229,7 @@ const result = ActionNavItemSchema.parse(data); | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -251,7 +251,7 @@ Documentation entry on the app menu (ADR-0046). Targets a `book` and/or a `doc` | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -279,7 +279,7 @@ Documentation entry on the app menu (ADR-0046). Targets a `book` and/or a `doc` | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -399,7 +399,7 @@ Documentation entry on the app menu (ADR-0046). Targets a `book` and/or a `doc` | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -432,7 +432,7 @@ Documentation entry on the app menu (ADR-0046). Targets a `book` and/or a `doc` | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -466,7 +466,7 @@ Documentation entry on the app menu (ADR-0046). Targets a `book` and/or a `doc` | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -499,7 +499,7 @@ Documentation entry on the app menu (ADR-0046). Targets a `book` and/or a `doc` | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -542,7 +542,7 @@ Documentation entry on the app menu (ADR-0046). Targets a `book` and/or a `doc` | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -567,7 +567,7 @@ Documentation entry on the app menu (ADR-0046). Targets a `book` and/or a `doc` | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -586,7 +586,7 @@ Documentation entry on the app menu (ADR-0046). Targets a `book` and/or a `doc` | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -606,7 +606,7 @@ Documentation entry on the app menu (ADR-0046). Targets a `book` and/or a `doc` | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -626,7 +626,7 @@ Documentation entry on the app menu (ADR-0046). Targets a `book` and/or a `doc` | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -645,7 +645,7 @@ Documentation entry on the app menu (ADR-0046). Targets a `book` and/or a `doc` | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -664,7 +664,7 @@ Documentation entry on the app menu (ADR-0046). Targets a `book` and/or a `doc` | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -686,7 +686,7 @@ Documentation entry on the app menu (ADR-0046). Targets a `book` and/or a `doc` | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -714,7 +714,7 @@ Documentation entry on the app menu (ADR-0046). Targets a `book` and/or a `doc` | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -751,7 +751,7 @@ A navigation contribution: a package injecting nav items into an app it does not | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -776,7 +776,7 @@ A navigation contribution: a package injecting nav items into an app it does not | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -795,7 +795,7 @@ A navigation contribution: a package injecting nav items into an app it does not | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -815,7 +815,7 @@ A navigation contribution: a package injecting nav items into an app it does not | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -835,7 +835,7 @@ A navigation contribution: a package injecting nav items into an app it does not | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -854,7 +854,7 @@ A navigation contribution: a package injecting nav items into an app it does not | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -873,7 +873,7 @@ A navigation contribution: a package injecting nav items into an app it does not | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -895,7 +895,7 @@ Documentation entry on the app menu (ADR-0046). Targets a `book` and/or a `doc` | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -923,7 +923,7 @@ Documentation entry on the app menu (ADR-0046). Targets a `book` and/or a `doc` | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -957,7 +957,7 @@ This schema accepts one of the following structures: | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -996,7 +996,7 @@ This schema accepts one of the following structures: | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -1029,7 +1029,7 @@ This schema accepts one of the following structures: | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -1063,7 +1063,7 @@ This schema accepts one of the following structures: | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -1097,7 +1097,7 @@ This schema accepts one of the following structures: | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -1130,7 +1130,7 @@ This schema accepts one of the following structures: | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -1170,7 +1170,7 @@ This schema accepts one of the following structures: | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -1206,7 +1206,7 @@ Documentation entry on the app menu (ADR-0046). Targets a `book` and/or a `doc` | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -1254,7 +1254,7 @@ Documentation entry on the app menu (ADR-0046). Targets a `book` and/or a `doc` | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -1290,7 +1290,7 @@ Documentation entry on the app menu (ADR-0046). Targets a `book` and/or a `doc` | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -1327,7 +1327,7 @@ Documentation entry on the app menu (ADR-0046). Targets a `book` and/or a `doc` | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -1360,7 +1360,7 @@ Documentation entry on the app menu (ADR-0046). Targets a `book` and/or a `doc` | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | @@ -1392,7 +1392,7 @@ Documentation entry on the app menu (ADR-0046). Targets a `book` and/or a `doc` | :--- | :--- | :--- | :--- | | **id** | `string` | ✅ | Unique identifier for this navigation item (lowercase snake_case) | | **label** | `string \| Record` | optional | Display proper label. Optional. Resolved in one order: (1) the bundle entry `apps..navigation..label` for the active locale chain, keyed by this entry's `id` — `translateApp` applies it at the `/meta` boundary, over the app's `navigation` tree (not `areas`); (2) else a present label as authored — its inline locale map's value for that locale, else its text; (3) else (absent) the CURRENT label of what the entry opens, at render time — the view's label when it names a labelled view, else the object's / dashboard's label — localized by the target's own translation. A present label is never replaced by its target's label and never translated by matching its text. Every real destination must have identity and text: identity is the target, text is inherited at render. No stored inherited flag; nothing is materialised for the absent case. | -| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | +| **keywords** | `string[]` | optional | Search aliases: other words a person may type to find this entry, such as its old name after a rename. Source-language strings as authored; another locale's aliases come from the translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: never shown as the entry's text, never a route, never a gate. Each trimmed, non-empty, at most 60 characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), and on a group, whose keywords find the entries under it. | | **icon** | `string` | optional | Icon name | | **order** | `number` | optional | Sort order within the same level (lower = first) | | **badge** | `string \| number` | optional | Badge text or count displayed on the item | diff --git a/packages/spec/src/system/translation.zod.ts b/packages/spec/src/system/translation.zod.ts index 7bb1d62e519..baa4601a933 100644 --- a/packages/spec/src/system/translation.zod.ts +++ b/packages/spec/src/system/translation.zod.ts @@ -1391,7 +1391,7 @@ const appTranslationDataShape = () => ({ * half of the nav item's `keywords`, keyed by the same entry id as * `label`. The accept set is the nav item's (ui/app.zod.ts * `navKeywordsSchema`: each trimmed, non-empty, at most 60 characters, - * at most 20), restated here because this module does not import the + * at least 1 and at most 20), restated here because this module does not import the * app schema; `app-nav-keywords.test.ts` holds both doors to the same * verdicts. * @@ -1413,11 +1413,14 @@ const appTranslationDataShape = () => ({ + 'leading or trailing whitespace, no line break. The schema refuses rather than trims it, so what is ' + 'stored is what was written.', }), - ).max(20, { error: () => 'an entry takes at most 20 keywords — keep the words people actually use for it.' }) + ).min(1, { + error: () => 'a navigation entry\'s `keywords` list is never empty — give at least one word a person would ' + + 'type to find the entry in this locale, or leave the key out.', + }).max(20, { error: () => 'an entry takes at most 20 keywords — keep the words people actually use for it.' }) .optional().describe( 'Search aliases for this navigation entry in this locale: the words a person ' + 'may type to find it, such as its old name after a rename. Each trimmed, non-empty, at most 60 ' - + 'characters; at most 20. They add to the entry\'s own keywords, never replace them; the command ' + + 'characters; at least 1, at most 20. They add to the entry\'s own keywords, never replace them; the command ' + 'palette matches both.', ), }).refine(requiredOneOf(['label', 'keywords']), { diff --git a/packages/spec/src/ui/app-nav-keywords.test.ts b/packages/spec/src/ui/app-nav-keywords.test.ts index 4305778e556..6213a301e8b 100644 --- a/packages/spec/src/ui/app-nav-keywords.test.ts +++ b/packages/spec/src/ui/app-nav-keywords.test.ts @@ -56,9 +56,9 @@ const BRANCHES: Array<[string, Branch, Record]> = [ const BASE = { id: 'nav_position_members', label: 'Position Members' }; const KEYWORDS = ['Position Holders', 'Assignments']; -/** Refused at both doors: blank, untrimmed, a line break, over 60 characters, over 20 entries, not strings. */ +/** Refused at both doors: an empty list (#39210), blank, untrimmed, a line break, over 60 characters, over 20 entries, not strings. */ const REFUSED_KEYWORDS: unknown[] = [ - [''], ['ok', ''], [' '], [' Holders'], ['Holders '], ['Position\nHolders'], ['x'.repeat(61)], + [], [''], ['ok', ''], [' '], [' Holders'], ['Holders '], ['Position\nHolders'], ['x'.repeat(61)], Array.from({ length: 21 }, (_, i) => `word ${i}`), [42], 'Position Holders', ]; /** Accepted at both doors: an inner space, CJK, and the two bounds exactly. */ diff --git a/packages/spec/src/ui/app.zod.ts b/packages/spec/src/ui/app.zod.ts index 54842b3cbe3..cbf3044447b 100644 --- a/packages/spec/src/ui/app.zod.ts +++ b/packages/spec/src/ui/app.zod.ts @@ -193,7 +193,7 @@ const NAV_GROUP_ALIASES_GUIDANCE = /** * The accept set of one search alias, shared by a nav item's `keywords` and a * translation bundle node's `keywords` (`system/translation.zod.ts` restates - * the same three numbers and rule; `app-nav-keywords.test.ts` holds the two + * the same numbers and rule; `app-nav-keywords.test.ts` holds the two * doors to the same verdicts). The rule is the dataset synonym's (ADR-0149 D1), * the repo's precedent for match-input words: one word or short phrase as a * person types it, refused rather than trimmed, so what is stored is what was @@ -205,6 +205,9 @@ const NAV_KEYWORD_NOT_TRIMMED = 'a navigation keyword is one word or phrase as a person types it in search: not empty, no leading or ' + 'trailing whitespace, no line break. The schema refuses rather than trims it, so what is stored is ' + 'what was written.'; +const NAV_KEYWORDS_EMPTY = + 'a navigation entry\'s `keywords` list is never empty — give at least one word a person would type to ' + + 'find the entry, or leave the key out.'; const navKeywordsSchema = () => z.array( z.string() .max(NAV_KEYWORD_MAX_LENGTH, { @@ -212,7 +215,7 @@ const navKeywordsSchema = () => z.array( + 'phrase a person would type to find the entry.', }) .regex(/^\S(?:.*\S)?$/u, { error: () => NAV_KEYWORD_NOT_TRIMMED }), -).max(NAV_KEYWORDS_MAX, { +).min(1, { error: () => NAV_KEYWORDS_EMPTY }).max(NAV_KEYWORDS_MAX, { error: () => `an entry takes at most ${NAV_KEYWORDS_MAX} keywords — keep the words people actually use for it.`, }); @@ -434,7 +437,7 @@ const BaseNavItemSchema = z.object({ + 'name after a rename. Source-language strings as authored; another locale\'s aliases come from the ' + "translation bundle entry `apps..navigation..keywords`, keyed by this entry's `id`. Search only: " + 'never shown as the entry\'s text, never a route, never a gate. Each trimmed, non-empty, at most 60 ' - + 'characters; at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, ' + + 'characters; at least 1, at most 20. The command palette reads it on the eight leaf kinds, object, dashboard, ' + 'page, report, component, url, doc and action entries (an action hit is drawn apart and runs the action), ' + 'and on a group, whose keywords find the entries under it.', ), diff --git a/ui/packages/types/src/zod/app.zod.ts b/ui/packages/types/src/zod/app.zod.ts index 0b85f8d0ad6..311a10fec25 100644 --- a/ui/packages/types/src/zod/app.zod.ts +++ b/ui/packages/types/src/zod/app.zod.ts @@ -287,9 +287,9 @@ const NavigationItemObject = z.looseObject({ // clean here and been thrown away. Spec: the nav base's `keywords` // (objectstack#39052), read by the command palette (objectstack#39055); // nothing in objectui reads it yet. The spec's accept set, restated (each - // trimmed, non-empty, at most 60 characters; at most 20), so `objectui + // trimmed, non-empty, at most 60 characters; at least 1 and at most 20), so `objectui // validate` refuses what the platform's save door refuses. - keywords: z.array(z.string().max(60).regex(/^\S(?:.*\S)?$/u)).max(20).optional().describe('Search aliases: other words a person may type to find this entry, such as its old name after a rename (spec field name)'), + keywords: z.array(z.string().max(60).regex(/^\S(?:.*\S)?$/u)).min(1).max(20).optional().describe('Search aliases: other words a person may type to find this entry, such as its old name after a rename (spec field name)'), // Type-specific target fields objectName: z.string().optional().describe('Target object name (type: object)'), From 44fabb99ac2b049decad73b58d21fef742463f1c Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 3 Dec 2026 15:57:41 +0000 Subject: [PATCH 5/7] chore(spec): declare the empty-keywords refusal as a narrowing in its own changeset 19.0.0-next.4 shipped both keys, so refusing an empty list narrows a released shape. The consumed pre/ notes go back to main's text. Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_01Utp6CXktGqE1JUHFoagYGj --- .changeset/39210-nav-keywords-never-empty.md | 17 +++++++++++++++++ .changeset/pre/39052-nav-item-keywords.md | 2 +- ...46-nav-translation-keywords-without-label.md | 4 ++-- 3 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 .changeset/39210-nav-keywords-never-empty.md diff --git a/.changeset/39210-nav-keywords-never-empty.md b/.changeset/39210-nav-keywords-never-empty.md new file mode 100644 index 00000000000..4fe30f56a02 --- /dev/null +++ b/.changeset/39210-nav-keywords-never-empty.md @@ -0,0 +1,17 @@ +--- +'@objectstack/spec': minor +'@object-ui/types': patch +--- + +feat(spec)!: a navigation `keywords` list is never empty, on the nav item and on the translation node + +Clause-②: yes (narrowing) +Metadata-protocol: narrowed + +**BREAKING** for metadata that writes an empty list: `keywords: []` on a navigation item, or on a translation bundle's navigation node `apps.APP.navigation.ID`, is now refused at every door where 19.0.0-next.4 accepted it. Fix: leave the key out. An empty list never matched a search and never translated anything, and no writer in the platform produces one: the nav editor and the design-mode menu omit the key instead. + +Narrowed: each `keywords` array now takes at least 1 and at most 20 words, at the nav item and at the translation node, with a message that says to leave the key out. A translation node carrying only `keywords: []` was accepted as a node that has keywords; it is now refused like a node with neither `label` nor `keywords`. + +The same node shape is also part of `PlatformTranslationData` and of `ServedTranslationData`, the body of `GET /i18n/translations/:locale`. Both took the 19.0.0-next.4 widening (a node may carry `keywords` without `label`) and now take this narrowing too. + +`@object-ui/types` mirrors the rule on its navigation item schema, so `objectui validate` refuses what the platform's save door refuses. diff --git a/.changeset/pre/39052-nav-item-keywords.md b/.changeset/pre/39052-nav-item-keywords.md index ea58e0ad610..9105832cdd0 100644 --- a/.changeset/pre/39052-nav-item-keywords.md +++ b/.changeset/pre/39052-nav-item-keywords.md @@ -11,7 +11,7 @@ Metadata-protocol: added Setup pages are being renamed (#39050), so a page must still be found by its old name. Two optional keys carry that: -- **`keywords: string[]` on every navigation item** except `separator` (it sits on the shared nav base, beside `label`). Source-language words a person may type to find the entry, such as its old name. Search only: never shown, never a route, never a gate. Each keyword is one trimmed, non-empty word or phrase of at most 60 characters, and an entry takes at least 1 and at most 20 (the dataset synonym's rule; an empty list is refused, so leave the key out instead); anything else is refused, not trimmed. `synonyms`, `searchTerms` and `searchKeywords` are refused with "did you mean `keywords`", and so is `aliases`, except on a `group`, where it is answered with both keys it can mean there (`keywords`, or `renamedFrom` for retired group ids). A `separator` refuses `keywords` with its own prescription. +- **`keywords: string[]` on every navigation item** except `separator` (it sits on the shared nav base, beside `label`). Source-language words a person may type to find the entry, such as its old name. Search only: never shown, never a route, never a gate. Each keyword is one trimmed, non-empty word or phrase of at most 60 characters, and an entry takes at most 20 (the dataset synonym's rule); anything else is refused, not trimmed. `synonyms`, `searchTerms` and `searchKeywords` are refused with "did you mean `keywords`", and so is `aliases`, except on a `group`, where it is answered with both keys it can mean there (`keywords`, or `renamedFrom` for retired group ids). A `separator` refuses `keywords` with its own prescription. - **`keywords: string[]` on a translation bundle's navigation node**, beside `label`: `apps..navigation..keywords` gives this locale's aliases for the entry, keyed by the same entry id as the label, at both translation doors (the file bundle and the registered `translation` item), under the same rule as the item's. The node still owes its `label`, and an unknown key is still refused. The key is named `keywords`, not `aliases`, because `aliases` already means a retired-key rename map across the AI schemas. diff --git a/.changeset/pre/39146-nav-translation-keywords-without-label.md b/.changeset/pre/39146-nav-translation-keywords-without-label.md index decdefda402..77a1c1838f0 100644 --- a/.changeset/pre/39146-nav-translation-keywords-without-label.md +++ b/.changeset/pre/39146-nav-translation-keywords-without-label.md @@ -7,8 +7,8 @@ feat(spec): a translation bundle can give a navigation entry this locale's keywo Clause-②: yes (widening) Metadata-protocol: added -Widened: a navigation translation node, `apps.APP.navigation.ID` in a translation bundle, in a registered `translation` item, in the platform's own translations (`PlatformTranslationData`) and in the body `GET /i18n/translations/:locale` serves (`ServedTranslationData`), now parses with `keywords` and no `label`; its `label` is optional whenever `keywords` is present. +Widened: a navigation translation node, `apps.APP.navigation.ID` in a translation bundle and in a registered `translation` item, now parses with `keywords` and no `label`; its `label` is optional whenever `keywords` is present. Before, a node had to carry `label`, so an author who only wanted to add this locale's search words for an entry had to restate a label too, and that pinned label went stale when the source label changed. Now the node can carry only `keywords`: the served app keeps the label the locale chain finds next (another locale's, else the entry's source label), and the locale's keywords are added to the entry's own, as before. -A node with neither `label` nor `keywords` is still refused, and so is an empty `keywords` list, which translates nothing (at both the node and the navigation item), at the node's `label` path, with a message that names both keys. `os i18n check` and `os lint` still report a keywords-only node's label as untranslated where the label is owed: coverage reads `apps.APP.navigation.ID.label` and finds nothing there. +A node with neither `label` nor `keywords` is still refused, at the node's `label` path, with a message that names both keys. `os i18n check` and `os lint` still report a keywords-only node's label as untranslated where the label is owed: coverage reads `apps.APP.navigation.ID.label` and finds nothing there. From 91b131b185c6d3239ce294d8d0e365b7dd0496bf Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 3 Dec 2026 15:58:14 +0000 Subject: [PATCH 6/7] chore(spec): register the empty-keywords narrowing in the ADR-0087 ledger Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_01Utp6CXktGqE1JUHFoagYGj --- .changeset/39210-nav-keywords-never-empty.md | 2 ++ .../19.nav-keywords-empty-list-refused.ts | 29 +++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 packages/spec/src/migrations/entries/semantic/19.nav-keywords-empty-list-refused.ts diff --git a/.changeset/39210-nav-keywords-never-empty.md b/.changeset/39210-nav-keywords-never-empty.md index 4fe30f56a02..19a817fb8b5 100644 --- a/.changeset/39210-nav-keywords-never-empty.md +++ b/.changeset/39210-nav-keywords-never-empty.md @@ -8,6 +8,8 @@ feat(spec)!: a navigation `keywords` list is never empty, on the nav item and on Clause-②: yes (narrowing) Metadata-protocol: narrowed + + **BREAKING** for metadata that writes an empty list: `keywords: []` on a navigation item, or on a translation bundle's navigation node `apps.APP.navigation.ID`, is now refused at every door where 19.0.0-next.4 accepted it. Fix: leave the key out. An empty list never matched a search and never translated anything, and no writer in the platform produces one: the nav editor and the design-mode menu omit the key instead. Narrowed: each `keywords` array now takes at least 1 and at most 20 words, at the nav item and at the translation node, with a message that says to leave the key out. A translation node carrying only `keywords: []` was accepted as a node that has keywords; it is now refused like a node with neither `label` nor `keywords`. diff --git a/packages/spec/src/migrations/entries/semantic/19.nav-keywords-empty-list-refused.ts b/packages/spec/src/migrations/entries/semantic/19.nav-keywords-empty-list-refused.ts new file mode 100644 index 00000000000..cbee7202daa --- /dev/null +++ b/packages/spec/src/migrations/entries/semantic/19.nav-keywords-empty-list-refused.ts @@ -0,0 +1,29 @@ +// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license. + +import type { SemanticMigration } from '../../types.js'; + +// [#39210] A narrowing of one value, not of a key: an empty `keywords` list on +// a navigation item, or on a translation bundle's navigation node, is refused +// where 19.0.0-next.4 accepted it. The key stays; only `[]` goes. No stored +// row has a meaning to carry over (an empty list matched no search and +// translated nothing), so no D2 conversion: the fix is to drop the key. +export const entry: SemanticMigration = { + id: 'nav-keywords-empty-list-refused', + surface: + 'An empty keywords list (keywords: []) on a navigation item in an app\'s navigation, or on a translation ' + + 'bundle\'s navigation node apps.APP.navigation.ID (the file bundle, a registered translation item, the ' + + 'platform translations and the served GET /i18n/translations/:locale body). Each keywords array now takes ' + + 'at least 1 and at most 20 words', + replacement: + 'Leave the keywords key out. A translation node whose only key was keywords: [] translates nothing: delete ' + + 'the node, or give it its translated label.', + reason: + 'An empty list matched no search and translated nothing, yet a translation node carrying only keywords: [] ' + + 'passed the rule that a node owes a label or keywords. Refusing it keeps that rule true and keeps the nav ' + + 'item and the translation node to one accept set. No writer in the platform produces an empty list.', + acceptanceCriteria: + 'AppSchema refuses a navigation item with keywords: [] and TranslationDataSchema refuses ' + + 'apps.APP.navigation.ID with keywords: [], each with a message that says to leave the key out; the same ' + + 'documents without the key, or with one keyword, parse.', + relevantWhen: { kind: 'stack-declares', keys: ['apps', 'translations'] }, +}; From 5e3ec28e3a9f9717f9ed362f57eff72e401175cc Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 3 Dec 2026 15:59:14 +0000 Subject: [PATCH 7/7] test(spec): pin the empty-keywords entry's relevance question Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_01Utp6CXktGqE1JUHFoagYGj --- .../src/migrations/semantic-relevance-coverage-38929.test.ts | 4 ++-- packages/spec/src/migrations/semantic-relevance.test.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/spec/src/migrations/semantic-relevance-coverage-38929.test.ts b/packages/spec/src/migrations/semantic-relevance-coverage-38929.test.ts index ed857d95f0b..4481d5749f6 100644 --- a/packages/spec/src/migrations/semantic-relevance-coverage-38929.test.ts +++ b/packages/spec/src/migrations/semantic-relevance-coverage-38929.test.ts @@ -370,7 +370,7 @@ const SITES: ReadonlyArray<{ site: string; stack: Record; entri entries: ['action-locations-page-parts-retired', 'object-grid-single-click-edit-retired', 'ui-action-type-ask-ai-retired', 'view-bulk-actions-declared-on-the-action', 'cel-list-equality-refused'], }, { site: 'dashboards[] (a header action)', stack: { dashboards: [{ name: 'd' }] }, entries: ['ui-action-type-ask-ai-retired', 'publish-refuses-views-and-dashboards-that-save-and-do-not-work'] }, - { site: 'apps[]', stack: { apps: [{ name: 'a' }] }, entries: ['publish-refuses-views-and-dashboards-that-save-and-do-not-work'] }, + { site: 'apps[]', stack: { apps: [{ name: 'a' }] }, entries: ['nav-keywords-empty-list-refused', 'publish-refuses-views-and-dashboards-that-save-and-do-not-work'] }, { site: 'hooks[]', stack: { hooks: [{ name: 'h' }] }, @@ -418,7 +418,7 @@ const SITES: ReadonlyArray<{ site: string; stack: Record; entri { site: 'translations[]', stack: { translations: [{ en: {} }] }, - entries: ['translation-form-tails-move-to-forms', 'translation-related-list-key-under-arrangement-refused', 'validation-rule-message-template-holes'], + entries: ['nav-keywords-empty-list-refused', 'translation-form-tails-move-to-forms', 'translation-related-list-key-under-arrangement-refused', 'validation-rule-message-template-holes'], }, { site: 'mappings[]', stack: { mappings: [{ name: 'm' }] }, entries: ['incremental-source-delete-policy-stated'] }, { site: 'books[]', stack: { books: [{ name: 'b' }] }, entries: ['book-audience-two-gates-and-catch-all-claim-refused'] }, diff --git a/packages/spec/src/migrations/semantic-relevance.test.ts b/packages/spec/src/migrations/semantic-relevance.test.ts index 1e9c764c25d..2c659a0f946 100644 --- a/packages/spec/src/migrations/semantic-relevance.test.ts +++ b/packages/spec/src/migrations/semantic-relevance.test.ts @@ -103,6 +103,7 @@ const EXPECTED_RELEVANCE: Readonly> = { '19:lookup-filter-record-path-structured-refused': ['objects', 'objectExtensions'], '19:lowered-hook-and-action-bodies-capabilities-judged': ['hooks', 'actions', 'objects'], '19:master-detail-related-list-tab-by-default': ['objects', 'objectExtensions'], + '19:nav-keywords-empty-list-refused': ['apps', 'translations'], '19:navigation-mode-record-open-deprecated': ['views', 'viewItems', 'objects'], '19:object-extension-place-and-cross-package-lists': ['objects', 'objectExtensions'], '19:object-grid-single-click-edit-retired': ['pages'],