From 410f08ce13e3098858a05fb4f16d94576eecadf1 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 4 Dec 2026 11:28:00 +0000 Subject: [PATCH 1/9] test(service-settings): Setup Knowledge description names where the provider and sources live (red) Claude-Session: https://claude.ai/code/session_01L9qibzbZZbDRcKrdCMMS2i --- .../knowledge-description-where-39439.test.ts | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 packages/services/service-settings/src/manifests/knowledge-description-where-39439.test.ts diff --git a/packages/services/service-settings/src/manifests/knowledge-description-where-39439.test.ts b/packages/services/service-settings/src/manifests/knowledge-description-where-39439.test.ts new file mode 100644 index 00000000000..4bd21154f8b --- /dev/null +++ b/packages/services/service-settings/src/manifests/knowledge-description-where-39439.test.ts @@ -0,0 +1,59 @@ +// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license. + +/** + * Setup → Knowledge says where the rest of the knowledge setup lives (#39439, + * item 1). + * + * The page holds the indexing defaults only. Its description used to call it + * the vector-store backend for knowledge sources, so an administrator setting + * up a knowledge base looked here for the embedding provider and for the + * sources, and found neither. The provider is chosen on the AI Model Service + * page, in its Embedder group; the sources are created in App Studio, under AI. + * The settings page has no link mechanism (an `action_button` handler's + * `navigate` kind is declared in the spec, but the console posts every action + * to the server), so the description names both places in plain text. + * + * Each place is named the way that locale names it: the AI page's title and its + * Embedder group's title are read from the same settings pack, and App Studio's + * name and its AI group from the Setup and Studio app bundle. A later rename of + * either page reds this test until the description follows it. + */ + +import { describe, expect, it } from 'vitest'; +import { SetupAppTranslations } from '@objectstack/platform-objects'; +import { knowledgeSettingsManifest } from './knowledge.manifest.js'; +import { settingsBuiltinTranslations } from '../translations/index.js'; + +type AnyRec = Record; + +const LOCALES = ['en', 'zh-CN', 'zh-Hant', 'ja-JP', 'ko', 'es-ES', 'fr', 'pt-BR', 'ru', 'de', 'ar'] as const; + +function settingsPack(locale: string): AnyRec { + return (settingsBuiltinTranslations as AnyRec)[locale].settings; +} + +function placeNames(locale: string): string[] { + const settings = settingsPack(locale); + const studio = (SetupAppTranslations as AnyRec)[locale].apps.studio; + return [ + settings.ai.title, + settings.ai.groups.embedder.title, + studio.label, + studio.navigation.group_ai.label, + ]; +} + +describe('Setup → Knowledge names where the embedding provider is set and where sources are created', () => { + it.each(LOCALES)('%s: the description names the AI Model Service page, its Embedder group, App Studio and its AI group', (locale) => { + const description: unknown = settingsPack(locale).knowledge.description; + expect(typeof description).toBe('string'); + const names = placeNames(locale); + // Control: every name is read, so a missing key cannot pass as "contained". + for (const name of names) expect(typeof name === 'string' && name.length > 0, `${locale}: a place name is missing`).toBe(true); + for (const name of names) expect(description as string, `${locale}: names "${name}"`).toContain(name); + }); + + it('the manifest literal is the English pack’s description, so a deployment without the bundle reads the same sentence', () => { + expect(knowledgeSettingsManifest.description).toBe(settingsPack('en').knowledge.description); + }); +}); From 114bf3aa67e7e856682dceb2a00ebde1d69e79d6 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 4 Dec 2026 11:31:37 +0000 Subject: [PATCH 2/9] fix(service-settings): Setup Knowledge says where the embedding provider is set and where sources are created Claude-Session: https://claude.ai/code/session_01L9qibzbZZbDRcKrdCMMS2i --- .../src/manifests/knowledge.manifest.ts | 14 +++++++++++--- .../service-settings/src/translations/ar.ts | 2 +- .../service-settings/src/translations/de.ts | 2 +- .../service-settings/src/translations/en.ts | 5 ++++- .../service-settings/src/translations/es-ES.ts | 2 +- .../service-settings/src/translations/fr.ts | 2 +- .../service-settings/src/translations/ja-JP.ts | 2 +- .../service-settings/src/translations/ko.ts | 2 +- .../service-settings/src/translations/pt-BR.ts | 2 +- .../service-settings/src/translations/ru.ts | 2 +- .../service-settings/src/translations/zh-CN.ts | 2 +- .../service-settings/src/translations/zh-Hant.ts | 2 +- 12 files changed, 25 insertions(+), 14 deletions(-) diff --git a/packages/services/service-settings/src/manifests/knowledge.manifest.ts b/packages/services/service-settings/src/manifests/knowledge.manifest.ts index 5f4d5c7ad0e..57fa9431531 100644 --- a/packages/services/service-settings/src/manifests/knowledge.manifest.ts +++ b/packages/services/service-settings/src/manifests/knowledge.manifest.ts @@ -58,9 +58,17 @@ const manifest = { version: 5, label: 'Knowledge', icon: 'BookOpen', + // [#39439 item 1] The page holds indexing defaults only. The description + // names, in plain text, the two places the rest of a knowledge setup lives: + // the embedding provider (AI Model Service → Embedder) and the sources + // themselves (App Studio → AI). Plain text because a settings page has no + // working link: the `navigate` handler kind is declared in the spec, but the + // console posts every `action_button` to the server. Each locale names both + // places with that locale's page names (`knowledge-description-where-39439.test.ts`). description: - 'Vector-store backend for RAG / knowledge sources. ' + - 'The embedder is configured separately under AI.', + 'Indexing defaults for knowledge sources. The embedding provider is set in AI Model Service → Embedder; ' + + 'a saved provider takes effect after a server restart. ' + + 'Knowledge sources themselves are created in App Studio → AI → Knowledge Sources.', scope: 'global', readPermission: 'manage_platform_settings', writePermission: 'manage_platform_settings', @@ -77,7 +85,7 @@ const manifest = { }; /** - * Knowledge — RAG vector-store backend configuration. Not in + * Knowledge — the knowledge service's indexing defaults. Not in * `builtinSettingsManifests`: `@objectstack/service-knowledge` registers it * when it is mounted, so a deployment without the knowledge service offers no * Knowledge page (#33933). diff --git a/packages/services/service-settings/src/translations/ar.ts b/packages/services/service-settings/src/translations/ar.ts index 84a06608c43..809a4510b80 100644 --- a/packages/services/service-settings/src/translations/ar.ts +++ b/packages/services/service-settings/src/translations/ar.ts @@ -679,7 +679,7 @@ export const ar: PlatformTranslationData = { }, knowledge: { title: 'المعرفة', - description: 'الواجهة الخلفية لمخزن المتجهات لـ RAG ومصادر المعرفة.', + description: 'القيم الافتراضية للفهرسة لمصادر المعرفة. يُضبط مزوّد التضمين في خدمة نماذج الذكاء الاصطناعي → Embedder، ويسري المزوّد المحفوظ بعد إعادة تشغيل الخادم. أمّا مصادر المعرفة نفسها فتُنشأ في App Studio → الذكاء الاصطناعي → مصادر المعرفة.', groups: { indexing: { title: 'افتراضيات الفهرسة', diff --git a/packages/services/service-settings/src/translations/de.ts b/packages/services/service-settings/src/translations/de.ts index 25ca6f06aae..da6c98a4f97 100644 --- a/packages/services/service-settings/src/translations/de.ts +++ b/packages/services/service-settings/src/translations/de.ts @@ -716,7 +716,7 @@ export const de: PlatformTranslationData = { }, knowledge: { title: 'Wissen', - description: 'Vektorspeicher-Backend für RAG und Wissensquellen.', + description: 'Standardwerte für die Indizierung von Wissensquellen. Der Embedding-Anbieter wird unter KI-Modelldienst → Embedder festgelegt; ein gespeicherter Anbieter gilt nach einem Neustart des Servers. Wissensquellen selbst werden in App Studio → KI → Wissensquellen angelegt.', groups: { indexing: { title: 'Standardwerte für die Indexierung', diff --git a/packages/services/service-settings/src/translations/en.ts b/packages/services/service-settings/src/translations/en.ts index dee34328c88..dab034a035e 100644 --- a/packages/services/service-settings/src/translations/en.ts +++ b/packages/services/service-settings/src/translations/en.ts @@ -428,7 +428,10 @@ export const en: PlatformTranslationData = { }, knowledge: { title: 'Knowledge', - description: 'Vector-store backend for RAG / knowledge sources.', + description: + 'Indexing defaults for knowledge sources. The embedding provider is set in AI Model Service → Embedder; ' + + 'a saved provider takes effect after a server restart. ' + + 'Knowledge sources themselves are created in App Studio → AI → Knowledge Sources.', groups: { indexing: { title: 'Indexing defaults', description: 'A value set on a knowledge source itself wins over these defaults.' }, diff --git a/packages/services/service-settings/src/translations/es-ES.ts b/packages/services/service-settings/src/translations/es-ES.ts index 28f38a075c3..6429d06b1bf 100644 --- a/packages/services/service-settings/src/translations/es-ES.ts +++ b/packages/services/service-settings/src/translations/es-ES.ts @@ -584,7 +584,7 @@ export const esES: PlatformTranslationData = { knowledge: { title: 'Conocimiento', - description: 'Backend de almacén de vectores para RAG / fuentes de conocimiento.', + description: 'Valores predeterminados de indexación de las fuentes de conocimiento. El proveedor de embeddings se configura en Servicio de modelos de IA → Embedder; un proveedor guardado se aplica tras reiniciar el servidor. Las fuentes de conocimiento se crean en App Studio → IA → Fuentes de conocimiento.', groups: { indexing: { title: 'Valores predeterminados de indexación', description: 'Un valor definido en la propia fuente de conocimiento prevalece sobre estos valores predeterminados.' }, diff --git a/packages/services/service-settings/src/translations/fr.ts b/packages/services/service-settings/src/translations/fr.ts index 1f497ac5143..8b3308ce874 100644 --- a/packages/services/service-settings/src/translations/fr.ts +++ b/packages/services/service-settings/src/translations/fr.ts @@ -725,7 +725,7 @@ export const fr: PlatformTranslationData = { }, knowledge: { title: 'Connaissances', - description: 'Backend de stockage vectoriel pour le RAG et les sources de connaissances.', + description: 'Valeurs d’indexation par défaut des sources de connaissances. Le fournisseur d’embeddings se configure dans Service de modèles d’IA → Embedder ; un fournisseur enregistré s’applique après un redémarrage du serveur. Les sources de connaissances se créent dans App Studio → IA → Sources de connaissances.', groups: { indexing: { title: 'Valeurs d’indexation par défaut', diff --git a/packages/services/service-settings/src/translations/ja-JP.ts b/packages/services/service-settings/src/translations/ja-JP.ts index 6b8908151ed..f117d71c030 100644 --- a/packages/services/service-settings/src/translations/ja-JP.ts +++ b/packages/services/service-settings/src/translations/ja-JP.ts @@ -583,7 +583,7 @@ export const jaJP: PlatformTranslationData = { knowledge: { title: 'ナレッジ', - description: 'RAG / ナレッジソース用のベクトルストアバックエンド。', + description: 'ナレッジソースのインデックス既定値です。埋め込みプロバイダーは「AI モデルサービス → Embedder」で設定し、保存後にサーバーを再起動すると有効になります。ナレッジソース自体は「App Studio → AI → ナレッジソース」で作成します。', groups: { indexing: { title: 'インデックスのデフォルト値', description: 'ナレッジソース自体に設定した値が、これらの既定値より優先されます。' }, diff --git a/packages/services/service-settings/src/translations/ko.ts b/packages/services/service-settings/src/translations/ko.ts index 4bb488152bb..ceec9a8ca33 100644 --- a/packages/services/service-settings/src/translations/ko.ts +++ b/packages/services/service-settings/src/translations/ko.ts @@ -556,7 +556,7 @@ export const ko: PlatformTranslationData = { }, knowledge: { title: '지식', - description: 'RAG / 지식 소스용 벡터 저장소 백엔드입니다.', + description: '지식 소스의 인덱싱 기본값입니다. 임베딩 공급자는 AI 모델 서비스 → Embedder에서 설정하며, 저장한 공급자는 서버를 다시 시작한 후 적용됩니다. 지식 소스 자체는 App Studio → AI → 지식 소스에서 만듭니다.', groups: { indexing: { title: '인덱싱 기본값', description: '지식 소스 자체에 설정한 값이 이 기본값보다 우선합니다.' }, }, diff --git a/packages/services/service-settings/src/translations/pt-BR.ts b/packages/services/service-settings/src/translations/pt-BR.ts index 307757e2679..96d27d1b44d 100644 --- a/packages/services/service-settings/src/translations/pt-BR.ts +++ b/packages/services/service-settings/src/translations/pt-BR.ts @@ -712,7 +712,7 @@ export const ptBR: PlatformTranslationData = { }, knowledge: { title: 'Conhecimento', - description: 'Back-end de armazenamento vetorial para RAG e fontes de conhecimento.', + description: 'Padrões de indexação das fontes de conhecimento. O provedor de embeddings é definido em Serviço de modelos de IA → Embedder; um provedor salvo passa a valer após reiniciar o servidor. As fontes de conhecimento são criadas no App Studio → IA → Fontes de conhecimento.', groups: { indexing: { title: 'Padrões de indexação', diff --git a/packages/services/service-settings/src/translations/ru.ts b/packages/services/service-settings/src/translations/ru.ts index 09a67531c0a..34f0a99c2ea 100644 --- a/packages/services/service-settings/src/translations/ru.ts +++ b/packages/services/service-settings/src/translations/ru.ts @@ -725,7 +725,7 @@ export const ru: PlatformTranslationData = { }, knowledge: { title: 'Знания', - description: 'Бэкенд векторного хранилища для RAG и источников знаний.', + description: 'Параметры индексации по умолчанию для источников знаний. Поставщик эмбеддингов задаётся в разделе Сервис моделей ИИ → Embedder; сохранённый поставщик начинает работать после перезапуска сервера. Сами источники знаний создаются в App Studio → ИИ → Источники знаний.', groups: { indexing: { title: 'Параметры индексации по умолчанию', diff --git a/packages/services/service-settings/src/translations/zh-CN.ts b/packages/services/service-settings/src/translations/zh-CN.ts index 6d0e02048ac..9956119680d 100644 --- a/packages/services/service-settings/src/translations/zh-CN.ts +++ b/packages/services/service-settings/src/translations/zh-CN.ts @@ -613,7 +613,7 @@ export const zhCN: PlatformTranslationData = { knowledge: { title: '知识库', - description: 'RAG / 知识源使用的向量存储后端。', + description: '知识源的索引默认值。向量化提供商在「AI 模型服务 → 向量化」中设置,保存后重启服务器才生效。知识源本身在「应用搭建 → AI → 知识源」中创建。', groups: { indexing: { title: '索引默认值', description: '在知识源上单独设定的值优先于这些默认值。' }, }, diff --git a/packages/services/service-settings/src/translations/zh-Hant.ts b/packages/services/service-settings/src/translations/zh-Hant.ts index 379f3a992ac..b71067352b1 100644 --- a/packages/services/service-settings/src/translations/zh-Hant.ts +++ b/packages/services/service-settings/src/translations/zh-Hant.ts @@ -498,7 +498,7 @@ export const zhHant: PlatformTranslationData = { }, knowledge: { title: '知識庫', - description: 'RAG/知識來源使用的向量儲存後端。', + description: '知識來源的索引預設值。向量化提供者在「AI 模型服務 → Embedder」中設定,儲存後重新啟動伺服器才生效。知識來源本身在「應用搭建 → AI → 知識來源」中建立。', groups: { indexing: { title: '索引預設值', description: '在知識來源本身設定的值優先於這些預設值。' }, }, From 510a7db1e86f6622b2c2b9ac76539dc665c92593 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 4 Dec 2026 11:32:56 +0000 Subject: [PATCH 3/9] feat(setup): Delivery Log opens the notification delivery list (recipient, channel, status) Claude-Session: https://claude.ai/code/session_01L9qibzbZZbDRcKrdCMMS2i --- .../src/apps/setup-nav.contributions.ts | 15 ++- .../notification-delivery-log-39439.test.ts | 113 ++++++++++++++++++ .../objects/notification-delivery.object.ts | 21 ++++ 3 files changed, 144 insertions(+), 5 deletions(-) create mode 100644 packages/services/service-messaging/src/objects/notification-delivery-log-39439.test.ts diff --git a/packages/platform-objects/src/apps/setup-nav.contributions.ts b/packages/platform-objects/src/apps/setup-nav.contributions.ts index 015f8780b61..b3961355d7e 100644 --- a/packages/platform-objects/src/apps/setup-nav.contributions.ts +++ b/packages/platform-objects/src/apps/setup-nav.contributions.ts @@ -274,11 +274,16 @@ export const SETUP_NAV_CONTRIBUTIONS: NavigationContribution[] = [ // Last in the group, after Notification Preferences. priority: 400, items: [ - // What was sent, to whom and whether it arrived (`sys_notification`'s - // `recent` list). Gated on `manage_platform_settings`, the gate the - // retired Diagnostics group gave it, so it is served to exactly the - // members it was before. - { id: 'nav_notifications', type: 'object', label: 'Delivery Log', objectName: 'sys_notification', viewName: 'recent', icon: 'bell', requiresObject: 'sys_notification', requiredPermissions: ['manage_platform_settings'], keywords: ['Notification Events', 'Notifications'] }, + // What was sent, to whom and whether it arrived: the delivery outbox's + // `recent` list, one row per recipient and channel with its status + // (`sys_notification_delivery`, `@objectstack/service-messaging`). It + // opened the notification EVENT list (`sys_notification`) before, which + // carries no recipient, channel or outcome (#39439 item 5). + // `requiresObject` hides the entry where the messaging service, which + // registers the object, is not mounted. Gated on + // `manage_platform_settings`, the gate the retired Diagnostics group gave + // it, so it is served to exactly the members it was before. + { id: 'nav_notifications', type: 'object', label: 'Delivery Log', objectName: 'sys_notification_delivery', viewName: 'recent', icon: 'bell', requiresObject: 'sys_notification_delivery', requiredPermissions: ['manage_platform_settings'], keywords: ['Notification Events', 'Notifications'] }, ], }, { diff --git a/packages/services/service-messaging/src/objects/notification-delivery-log-39439.test.ts b/packages/services/service-messaging/src/objects/notification-delivery-log-39439.test.ts new file mode 100644 index 00000000000..b478042e1a8 --- /dev/null +++ b/packages/services/service-messaging/src/objects/notification-delivery-log-39439.test.ts @@ -0,0 +1,113 @@ +// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license. + +/** + * Setup → Notifications → Delivery Log answers "did the approver get the + * email?" (#39439, item 5). + * + * The entry used to open `sys_notification`'s `recent` list: one row per + * notification EVENT, with a topic and a severity and no recipient, channel or + * outcome, because the event carries none of them. The per-recipient, + * per-channel row that does is the delivery outbox, `sys_notification_delivery` + * (`recipient_user_id`, `recipient_id`, `channel`, `status`, `attempts`, + * `error`), and the entry now opens that object's own `recent` list, the shape + * Setup's HTTP Deliveries entry already has (`sys_http_delivery`). + * + * Pinned in this package, where both halves are visible: the object's view + * (here) and the Setup entry `@objectstack/platform-objects` contributes. The + * entry keeps its gate (`manage_platform_settings`), its label and its place. + */ + +import { describe, expect, it } from 'vitest'; +import { SETUP_NAV_CONTRIBUTIONS } from '@objectstack/platform-objects/apps'; +import { NotificationDelivery } from './notification-delivery.object.js'; +import { enObjects } from '../translations/en.objects.generated.js'; +import { zhCNObjects } from '../translations/zh-CN.objects.generated.js'; +import { jaJPObjects } from '../translations/ja-JP.objects.generated.js'; +import { esESObjects } from '../translations/es-ES.objects.generated.js'; +import { zhHantObjects } from '../translations/zh-Hant.objects.generated.js'; +import { arObjects } from '../translations/ar.objects.generated.js'; +import { frObjects } from '../translations/fr.objects.generated.js'; +import { ptBRObjects } from '../translations/pt-BR.objects.generated.js'; +import { ruObjects } from '../translations/ru.objects.generated.js'; +import { deObjects } from '../translations/de.objects.generated.js'; +import { koObjects } from '../translations/ko.objects.generated.js'; + +type AnyRec = Record; + +const BUNDLES: Record = { + en: enObjects, + 'zh-CN': zhCNObjects, + 'ja-JP': jaJPObjects, + 'es-ES': esESObjects, + 'zh-Hant': zhHantObjects, + ar: arObjects, + fr: frObjects, + 'pt-BR': ptBRObjects, + ru: ruObjects, + de: deObjects, + ko: koObjects, +}; + +const def = NotificationDelivery as unknown as AnyRec; +const recent = (def.listViews ?? {}).recent as AnyRec | undefined; +const columnNames = (): string[] => + ((recent?.columns ?? []) as Array).map((c) => (typeof c === 'string' ? c : c.field)); + +function deliveryLogEntry(): AnyRec | undefined { + for (const c of SETUP_NAV_CONTRIBUTIONS as AnyRec[]) { + if (c.app !== 'setup') continue; + const hit = (c.items ?? []).find((i: AnyRec) => i.id === 'nav_notifications'); + if (hit) return { ...hit, group: c.group }; + } + return undefined; +} + +describe('sys_notification_delivery: the recent list names who, by which channel, and the outcome', () => { + it('declares a `recent` grid over this object, newest first', () => { + expect(recent).toBeDefined(); + expect(recent!.type).toBe('grid'); + expect(recent!.data).toEqual({ provider: 'object', object: 'sys_notification_delivery' }); + expect(recent!.sort).toEqual([{ field: 'created_at', order: 'desc' }]); + }); + + it('lists the recipient (person and address), channel, status and when, plus the topic, attempts and error', () => { + expect(columnNames()).toEqual( + expect.arrayContaining(['recipient_user_id', 'recipient_id', 'channel', 'status', 'topic', 'attempts', 'error', 'created_at']), + ); + }); + + it('every column is a field this object declares', () => { + const fields = Object.keys(def.fields ?? {}); + for (const name of columnNames()) expect(fields, `column ${name}`).toContain(name); + }); + + it.each(Object.keys(BUNDLES))('%s: the view label and its empty state are carried', (locale) => { + const view = BUNDLES[locale].sys_notification_delivery?._views?.recent as AnyRec | undefined; + expect(typeof view?.label === 'string' && view.label.trim().length > 0, 'label').toBe(true); + expect(typeof view?.emptyState?.title === 'string' && view.emptyState.title.trim().length > 0, 'emptyState.title').toBe(true); + expect(typeof view?.emptyState?.message === 'string' && view.emptyState.message.trim().length > 0, 'emptyState.message').toBe(true); + }); +}); + +describe('Setup → Delivery Log opens the delivery list', () => { + it('names sys_notification_delivery and its `recent` view, shown only where the object is registered', () => { + const entry = deliveryLogEntry(); + expect(entry).toBeDefined(); + expect(entry).toMatchObject({ + type: 'object', + objectName: 'sys_notification_delivery', + viewName: 'recent', + requiresObject: 'sys_notification_delivery', + }); + // The view it names is one this object declares. + expect(Object.keys(def.listViews ?? {})).toContain(entry!.viewName); + }); + + it('keeps its label, group and gate', () => { + expect(deliveryLogEntry()).toMatchObject({ + label: 'Delivery Log', + group: 'group_notifications', + requiredPermissions: ['manage_platform_settings'], + }); + }); +}); diff --git a/packages/services/service-messaging/src/objects/notification-delivery.object.ts b/packages/services/service-messaging/src/objects/notification-delivery.object.ts index 3036ed917e0..6d81eebcdef 100644 --- a/packages/services/service-messaging/src/objects/notification-delivery.object.ts +++ b/packages/services/service-messaging/src/objects/notification-delivery.object.ts @@ -84,6 +84,27 @@ export const NotificationDelivery = ObjectSchema.create({ nameField: 'display_title', // [ADR-0079] canonical primary-title pointer (mirrors deprecated displayNameField) highlightFields: ['notification_id', 'recipient_id', 'channel', 'status', 'attempts'], + // [#39439 item 5] What Setup → Notifications → Delivery Log opens + // (`nav_notifications`, `@objectstack/platform-objects`): one row per send, + // naming who it was for (the person, and the address it went to), the + // channel, the outcome and when — what "did the approver get the email?" + // asks, and what the notification EVENT (`sys_notification`) cannot say. The + // shape of Setup's other delivery log, `sys_http_delivery`'s `recent`: + // `error` beside the status, because a `pending` row waiting for its retry + // carries the last attempt's error too. + listViews: { + recent: { + type: 'grid', + name: 'recent', + label: 'Recent', + data: { provider: 'object', object: 'sys_notification_delivery' }, + columns: ['recipient_user_id', 'recipient_id', 'channel', 'status', 'topic', 'attempts', 'error', 'created_at'], + sort: [{ field: 'created_at', order: 'desc' }], + pagination: { pageSize: 50 }, + emptyState: { title: 'No deliveries', message: 'Nothing has been sent to anyone yet.' }, + }, + }, + fields: { id: Field.text({ label: 'Delivery ID', required: true, readonly: true }), From ee996e24a4207f0ad37b4345d0863f2c1b3f67b5 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 4 Dec 2026 11:39:17 +0000 Subject: [PATCH 4/9] feat(service-messaging): translate the delivery list's view label and empty state Claude-Session: https://claude.ai/code/session_01L9qibzbZZbDRcKrdCMMS2i --- .../src/translations/ar.objects.generated.ts | 9 +++++++++ .../src/translations/de.objects.generated.ts | 9 +++++++++ .../src/translations/en.objects.generated.ts | 9 +++++++++ .../src/translations/es-ES.objects.generated.ts | 9 +++++++++ .../src/translations/fr.objects.generated.ts | 9 +++++++++ .../src/translations/ja-JP.objects.generated.ts | 9 +++++++++ .../src/translations/ko.objects.generated.ts | 9 +++++++++ .../src/translations/pt-BR.objects.generated.ts | 9 +++++++++ .../src/translations/ru.objects.generated.ts | 9 +++++++++ .../src/translations/zh-CN.objects.generated.ts | 9 +++++++++ .../src/translations/zh-Hant.objects.generated.ts | 9 +++++++++ 11 files changed, 99 insertions(+) diff --git a/packages/services/service-messaging/src/translations/ar.objects.generated.ts b/packages/services/service-messaging/src/translations/ar.objects.generated.ts index 89e6f59827c..ae975195943 100644 --- a/packages/services/service-messaging/src/translations/ar.objects.generated.ts +++ b/packages/services/service-messaging/src/translations/ar.objects.generated.ts @@ -194,6 +194,15 @@ export const arObjects: NonNullable = { updated_at: { label: "تاريخ التحديث" } + }, + _views: { + recent: { + label: "الأحدث", + emptyState: { + title: "لا توجد عمليات إرسال", + message: "لم يُرسَل شيء إلى أي أحد بعد." + } + } } }, sys_notification_preference: { diff --git a/packages/services/service-messaging/src/translations/de.objects.generated.ts b/packages/services/service-messaging/src/translations/de.objects.generated.ts index 3b19098dca0..f7737fd93d4 100644 --- a/packages/services/service-messaging/src/translations/de.objects.generated.ts +++ b/packages/services/service-messaging/src/translations/de.objects.generated.ts @@ -194,6 +194,15 @@ export const deObjects: NonNullable = { updated_at: { label: "Aktualisiert am" } + }, + _views: { + recent: { + label: "Neueste", + emptyState: { + title: "Keine Zustellungen", + message: "Bisher wurde an niemanden etwas gesendet." + } + } } }, sys_notification_preference: { diff --git a/packages/services/service-messaging/src/translations/en.objects.generated.ts b/packages/services/service-messaging/src/translations/en.objects.generated.ts index 3693c1913b9..ceda6e20857 100644 --- a/packages/services/service-messaging/src/translations/en.objects.generated.ts +++ b/packages/services/service-messaging/src/translations/en.objects.generated.ts @@ -194,6 +194,15 @@ export const enObjects: NonNullable = { updated_at: { label: "Updated At" } + }, + _views: { + recent: { + label: "Recent", + emptyState: { + title: "No deliveries", + message: "Nothing has been sent to anyone yet." + } + } } }, sys_notification_preference: { diff --git a/packages/services/service-messaging/src/translations/es-ES.objects.generated.ts b/packages/services/service-messaging/src/translations/es-ES.objects.generated.ts index 10cf91434b7..16631bd3b7c 100644 --- a/packages/services/service-messaging/src/translations/es-ES.objects.generated.ts +++ b/packages/services/service-messaging/src/translations/es-ES.objects.generated.ts @@ -194,6 +194,15 @@ export const esESObjects: NonNullable = { updated_at: { label: "Updated At" } + }, + _views: { + recent: { + label: "Recientes", + emptyState: { + title: "Sin envíos", + message: "Todavía no se ha enviado nada a nadie." + } + } } }, sys_notification_preference: { diff --git a/packages/services/service-messaging/src/translations/fr.objects.generated.ts b/packages/services/service-messaging/src/translations/fr.objects.generated.ts index 7beecc001fb..17618d2f718 100644 --- a/packages/services/service-messaging/src/translations/fr.objects.generated.ts +++ b/packages/services/service-messaging/src/translations/fr.objects.generated.ts @@ -194,6 +194,15 @@ export const frObjects: NonNullable = { updated_at: { label: "Mis à jour le" } + }, + _views: { + recent: { + label: "Récents", + emptyState: { + title: "Aucun envoi", + message: "Rien n’a encore été envoyé à personne." + } + } } }, sys_notification_preference: { diff --git a/packages/services/service-messaging/src/translations/ja-JP.objects.generated.ts b/packages/services/service-messaging/src/translations/ja-JP.objects.generated.ts index 1e721572510..8b652df1922 100644 --- a/packages/services/service-messaging/src/translations/ja-JP.objects.generated.ts +++ b/packages/services/service-messaging/src/translations/ja-JP.objects.generated.ts @@ -194,6 +194,15 @@ export const jaJPObjects: NonNullable = { updated_at: { label: "Updated At" } + }, + _views: { + recent: { + label: "最近", + emptyState: { + title: "送信履歴はありません", + message: "まだ誰にも通知を送信していません。" + } + } } }, sys_notification_preference: { diff --git a/packages/services/service-messaging/src/translations/ko.objects.generated.ts b/packages/services/service-messaging/src/translations/ko.objects.generated.ts index a986d6e248d..193158ea2c8 100644 --- a/packages/services/service-messaging/src/translations/ko.objects.generated.ts +++ b/packages/services/service-messaging/src/translations/ko.objects.generated.ts @@ -194,6 +194,15 @@ export const koObjects: NonNullable = { updated_at: { label: "수정 일시" } + }, + _views: { + recent: { + label: "최근", + emptyState: { + title: "발송 기록 없음", + message: "아직 누구에게도 알림을 보내지 않았습니다." + } + } } }, sys_notification_preference: { diff --git a/packages/services/service-messaging/src/translations/pt-BR.objects.generated.ts b/packages/services/service-messaging/src/translations/pt-BR.objects.generated.ts index b1f16a5739c..6830c93c593 100644 --- a/packages/services/service-messaging/src/translations/pt-BR.objects.generated.ts +++ b/packages/services/service-messaging/src/translations/pt-BR.objects.generated.ts @@ -194,6 +194,15 @@ export const ptBRObjects: NonNullable = { updated_at: { label: "Atualizado em" } + }, + _views: { + recent: { + label: "Recentes", + emptyState: { + title: "Nenhum envio", + message: "Nada foi enviado a ninguém ainda." + } + } } }, sys_notification_preference: { diff --git a/packages/services/service-messaging/src/translations/ru.objects.generated.ts b/packages/services/service-messaging/src/translations/ru.objects.generated.ts index bec7c0026d1..adb072a6453 100644 --- a/packages/services/service-messaging/src/translations/ru.objects.generated.ts +++ b/packages/services/service-messaging/src/translations/ru.objects.generated.ts @@ -194,6 +194,15 @@ export const ruObjects: NonNullable = { updated_at: { label: "Обновлено" } + }, + _views: { + recent: { + label: "Недавние", + emptyState: { + title: "Отправок нет", + message: "Пока никому ничего не отправлено." + } + } } }, sys_notification_preference: { diff --git a/packages/services/service-messaging/src/translations/zh-CN.objects.generated.ts b/packages/services/service-messaging/src/translations/zh-CN.objects.generated.ts index 03779a5802a..a859fda798f 100644 --- a/packages/services/service-messaging/src/translations/zh-CN.objects.generated.ts +++ b/packages/services/service-messaging/src/translations/zh-CN.objects.generated.ts @@ -194,6 +194,15 @@ export const zhCNObjects: NonNullable = { updated_at: { label: "更新时间" } + }, + _views: { + recent: { + label: "最近", + emptyState: { + title: "暂无发送记录", + message: "还没有向任何人发送过通知。" + } + } } }, sys_notification_preference: { diff --git a/packages/services/service-messaging/src/translations/zh-Hant.objects.generated.ts b/packages/services/service-messaging/src/translations/zh-Hant.objects.generated.ts index 932704b112d..e8c5ed34d9c 100644 --- a/packages/services/service-messaging/src/translations/zh-Hant.objects.generated.ts +++ b/packages/services/service-messaging/src/translations/zh-Hant.objects.generated.ts @@ -194,6 +194,15 @@ export const zhHantObjects: NonNullable = { updated_at: { label: "更新時間" } + }, + _views: { + recent: { + label: "最近", + emptyState: { + title: "尚無傳送記錄", + message: "尚未向任何人傳送過通知。" + } + } } }, sys_notification_preference: { From f585dc8db0f1be9987197964678ee7838e624004 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 4 Dec 2026 11:44:31 +0000 Subject: [PATCH 5/9] test(platform-objects): Setup Delivery Log names the messaging service's delivery object Claude-Session: https://claude.ai/code/session_01L9qibzbZZbDRcKrdCMMS2i --- .../src/apps/caller-scoped-first-list-view.test.ts | 6 ++++-- packages/platform-objects/src/platform-objects.test.ts | 5 ++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/packages/platform-objects/src/apps/caller-scoped-first-list-view.test.ts b/packages/platform-objects/src/apps/caller-scoped-first-list-view.test.ts index 20124052105..f8cb7e12659 100644 --- a/packages/platform-objects/src/apps/caller-scoped-first-list-view.test.ts +++ b/packages/platform-objects/src/apps/caller-scoped-first-list-view.test.ts @@ -173,8 +173,10 @@ describe('the population is derived from Setup and Account navigation (#21972)', it('cannot read exactly these named objects from this package', () => { // `sys_inbox_message` is `@objectstack/service-messaging`'s; the Account - // app's Notifications entry names it, and names `mine`. - expect(UNRESOLVED).toEqual(['sys_inbox_message']); + // app's Notifications entry names it, and names `mine`. So is + // `sys_notification_delivery`, which Setup's Delivery Log names with its + // `recent` view (#39439), a view that is not caller-scoped. + expect(UNRESOLVED).toEqual(['sys_inbox_message', 'sys_notification_delivery']); }); it('finds exactly these named objects declaring only caller-scoped list views', () => { diff --git a/packages/platform-objects/src/platform-objects.test.ts b/packages/platform-objects/src/platform-objects.test.ts index 713a79d0af6..6d623bc29a2 100644 --- a/packages/platform-objects/src/platform-objects.test.ts +++ b/packages/platform-objects/src/platform-objects.test.ts @@ -670,7 +670,10 @@ describe('@objectstack/platform-objects', () => { // `requiresObject`), so nothing here can read their `enable`. Named // rather than skipped: a NEW unresolvable target must be classified by // hand instead of silently dropping out of this gate's coverage. - const FOREIGN_NAV_OBJECTS = new Set(['sys_notification']); + // `sys_notification_delivery` is `@objectstack/service-messaging`'s (Setup's + // Delivery Log, #39439); `service-messaging`'s + // `notification-delivery-log-39439.test.ts` pins that it lists. + const FOREIGN_NAV_OBJECTS = new Set(['sys_notification_delivery']); const objectEntries = (): Array<{ id: string; objectName: string }> => { const out: Array<{ id: string; objectName: string }> = []; From 86cd33ffe41c48a63d443b3151d7e6bb4de8cb26 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 4 Dec 2026 11:45:09 +0000 Subject: [PATCH 6/9] chore(changeset): Setup Knowledge description and Delivery Log Claude-Session: https://claude.ai/code/session_01L9qibzbZZbDRcKrdCMMS2i --- .../39439-setup-knowledge-and-delivery-log.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .changeset/39439-setup-knowledge-and-delivery-log.md diff --git a/.changeset/39439-setup-knowledge-and-delivery-log.md b/.changeset/39439-setup-knowledge-and-delivery-log.md new file mode 100644 index 00000000000..e8d0afa207d --- /dev/null +++ b/.changeset/39439-setup-knowledge-and-delivery-log.md @@ -0,0 +1,16 @@ +--- +'@objectstack/platform-objects': patch +'@objectstack/service-messaging': patch +'@objectstack/service-settings': patch +--- + +fix(setup): Setup → Knowledge says where the rest of a knowledge setup lives, and Delivery Log shows who each notification went to, by which channel, and whether it was delivered + +Clause-②: no +Metadata-protocol: none + +Who sees it: a platform administrator in Setup. + +- **Setup → Knowledge** no longer calls itself the vector-store backend. It holds the indexing defaults, and its description now names the two other places a knowledge base is set up: the embedding provider, under AI Model Service → Embedder (a saved provider takes effect after a server restart), and the knowledge sources themselves, created in App Studio → AI. The sentence is in every shipped language, with each page named the way that language names it. It is plain text, not a link. +- **Setup → Notifications → Delivery Log** now opens the delivery list (`sys_notification_delivery`, new `recent` view) instead of the notification event list. Each row is one send: the recipient (the person, and the address it went to), the channel, the status (pending, in flight, success, dead, suppressed), the attempts, the last error, the topic and when it was queued, newest first. The entry keeps its name, its place and its gate (`manage_platform_settings`), and it is shown only where the messaging service is mounted. The event list (`sys_notification`, with its Send In-App Message action) is no longer opened from this entry. +- The topic still shows as its key (for example `approval.requested`): the platform has no display names for notification topics. From 56430398080fd664940ef5d471b7bb8c0c4ed69a Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 4 Dec 2026 13:10:38 +0000 Subject: [PATCH 7/9] feat(setup): Notification Events keeps its own Setup entry, gated on setup.write Delivery Log now opens the delivery list, so the notification event list, whose toolbar carries Send In-App Message, gets its own entry in Notifications after Delivery Log (nav_notification_events, sys_notification view recent, requiresObject). It is gated on setup.write, the capability the action and its door demand, so organization administrators reach it. The "Notification Events" search alias moves off Delivery Log. Label in the 11 platform-objects app bundles with source hashes; the Notifications row pins and a new audience describe in the Setup audience pin follow. Claude-Session: https://claude.ai/code/session_01L9qibzbZZbDRcKrdCMMS2i Co-authored-by: Claude --- .../setup-diagnostics-audience.pin.test.ts | 67 ++++++++++++++++++- .../src/apps/setup-nav.contributions.ts | 18 ++++- .../apps/setup-platform-items-39057.test.ts | 33 ++++++++- .../src/apps/translations/ar.source-hashes.ts | 1 + .../src/apps/translations/ar.ts | 1 + .../src/apps/translations/de.source-hashes.ts | 1 + .../src/apps/translations/de.ts | 1 + .../src/apps/translations/en.ts | 1 + .../apps/translations/es-ES.source-hashes.ts | 1 + .../src/apps/translations/es-ES.ts | 1 + .../src/apps/translations/fr.source-hashes.ts | 1 + .../src/apps/translations/fr.ts | 1 + .../apps/translations/ja-JP.source-hashes.ts | 1 + .../src/apps/translations/ja-JP.ts | 1 + .../src/apps/translations/ko.source-hashes.ts | 1 + .../src/apps/translations/ko.ts | 1 + .../apps/translations/pt-BR.source-hashes.ts | 1 + .../src/apps/translations/pt-BR.ts | 1 + .../src/apps/translations/ru.source-hashes.ts | 1 + .../src/apps/translations/ru.ts | 1 + .../apps/translations/zh-CN.source-hashes.ts | 1 + .../src/apps/translations/zh-CN.ts | 1 + .../translations/zh-Hant.source-hashes.ts | 1 + .../src/apps/translations/zh-Hant.ts | 1 + .../src/platform-objects.test.ts | 5 +- .../src/setup-nav-groups-39058.test.ts | 4 +- 26 files changed, 140 insertions(+), 8 deletions(-) diff --git a/packages/cli/test/setup-diagnostics-audience.pin.test.ts b/packages/cli/test/setup-diagnostics-audience.pin.test.ts index 033f33e8205..d5d2ab36b82 100644 --- a/packages/cli/test/setup-diagnostics-audience.pin.test.ts +++ b/packages/cli/test/setup-diagnostics-audience.pin.test.ts @@ -42,8 +42,9 @@ import { describe, expect, it, vi } from 'vitest'; import { SchemaRegistry } from '@objectstack/objectql'; import { SETUP_APP, SETUP_NAV_CONTRIBUTIONS } from '@objectstack/platform-objects/apps'; import { AuditPlugin } from '@objectstack/plugin-audit'; +import { securityDefaultPermissionSets } from '@objectstack/plugin-security'; import { RestServer } from '@objectstack/rest'; -import { ADMIN_FULL_ACCESS_CAPABILITIES } from '@objectstack/spec'; +import { ADMIN_FULL_ACCESS_CAPABILITIES, ORGANIZATION_ADMIN } from '@objectstack/spec'; type AnyRec = Record; @@ -190,3 +191,67 @@ describe('Setup → Diagnostics: each entry is served to the holders of its own expect(diagnostics(admin)?.[0]).toBe('nav_audit_logs'); }); }); + +// --------------------------------------------------------------------------- +// Setup → Notifications → Notification Events, served to the audience of the +// action it carries (#39439) +// --------------------------------------------------------------------------- +// The event list (`sys_notification`) carries Send In-App Message, the Setup +// action ruled for organization administrators (ruling 6810324463 on #32445), +// gated on `setup.write`. Delivery Log now opens the delivery list, so the +// event list has its own entry, `nav_notification_events`, gated on that same +// `setup.write`. Read over the wire, per caller: +// +// - the shipped organization-administrator set, and nothing else → served +// Notification Events in Notifications, and not Delivery Log (that one +// keeps `manage_platform_settings`, which the set deliberately withholds); +// - `setup.access` without `setup.write` → not served it, anywhere in Setup; +// - the platform administrator → both, Notification Events after Delivery Log. +// +// The organization administrator's permissions are read off the set the +// security plugin ships, never retyped here, so a change to that set is +// judged by this pin. + +const NOTIFICATIONS = 'group_notifications'; + +/** The served children of Notifications by id, or `undefined` when the group is not served. */ +function notifications(app: AnyRec): string[] | undefined { + const found = ((app?.navigation ?? []) as AnyRec[]).find((g) => g?.id === NOTIFICATIONS); + return found ? ((found.children ?? []) as AnyRec[]).map((c) => String(c?.id)) : undefined; +} + +/** The system permissions of the shipped organization-administrator set. */ +function organizationAdminPermissions(): string[] { + const set = securityDefaultPermissionSets.find((s) => s.name === ORGANIZATION_ADMIN); + if (!set) throw new Error(`the security plugin ships no ${ORGANIZATION_ADMIN} set`); + return [...(set.systemPermissions ?? [])]; +} + +describe('Setup → Notifications → Notification Events: served to the holders of setup.write', () => { + it('a caller holding only the shipped organization-administrator set is served Notification Events, and not Delivery Log', async () => { + const permissions = organizationAdminPermissions(); + // Control: the set holds the action's capability and is denied platform + // settings, so the two answers below are the two gates. + expect(permissions).toContain('setup.write'); + expect(permissions).not.toContain('manage_platform_settings'); + const setup = await servedSetup(permissions); + expect(notifications(setup)).toContain('nav_notification_events'); + expect(allIds(setup.navigation)).not.toContain('nav_notifications'); + const entry = ((setup.navigation as AnyRec[]).find((g) => g?.id === NOTIFICATIONS)?.children as AnyRec[]) + .find((c) => c?.id === 'nav_notification_events'); + expect(entry).toMatchObject({ type: 'object', objectName: 'sys_notification', viewName: 'recent' }); + }); + + it('a caller without setup.write is not served Notification Events, anywhere in Setup', async () => { + const reader = await servedSetup(['setup.access']); + expect(allIds(reader.navigation)).not.toContain('nav_notification_events'); + // Control: the app itself is served to this member. + expect(allIds(reader.navigation).length).toBeGreaterThan(0); + }); + + it('the platform administrator is served Delivery Log, then Notification Events', async () => { + const admin = await servedSetup(ADMIN_FULL_ACCESS_CAPABILITIES.systemPermissions ?? []); + const ids = notifications(admin) ?? []; + expect(ids.slice(-2)).toEqual(['nav_notifications', 'nav_notification_events']); + }); +}); diff --git a/packages/platform-objects/src/apps/setup-nav.contributions.ts b/packages/platform-objects/src/apps/setup-nav.contributions.ts index b3961355d7e..fae724995f2 100644 --- a/packages/platform-objects/src/apps/setup-nav.contributions.ts +++ b/packages/platform-objects/src/apps/setup-nav.contributions.ts @@ -38,7 +38,7 @@ * group_currency_units 100 * group_notifications 200: Email / SMS Channel, after Notification * Templates; 201–399 Notification Preferences; - * 400: Delivery Log + * 400: Delivery Log, then Notification Events * group_login_security 100 * group_integrations_dev 100: API Keys, OAuth Applications; 101–499 the * plugins' integrations; 500: Public Forms last @@ -283,7 +283,21 @@ export const SETUP_NAV_CONTRIBUTIONS: NavigationContribution[] = [ // registers the object, is not mounted. Gated on // `manage_platform_settings`, the gate the retired Diagnostics group gave // it, so it is served to exactly the members it was before. - { id: 'nav_notifications', type: 'object', label: 'Delivery Log', objectName: 'sys_notification_delivery', viewName: 'recent', icon: 'bell', requiresObject: 'sys_notification_delivery', requiredPermissions: ['manage_platform_settings'], keywords: ['Notification Events', 'Notifications'] }, + { id: 'nav_notifications', type: 'object', label: 'Delivery Log', objectName: 'sys_notification_delivery', viewName: 'recent', icon: 'bell', requiresObject: 'sys_notification_delivery', requiredPermissions: ['manage_platform_settings'], keywords: ['Notifications'] }, + // What was emitted: the notification EVENT list (`sys_notification`'s + // `recent` list, one row per `emit()`), and the list whose toolbar + // carries Send In-App Message, the Setup action an organization + // administrator sends an in-app message with (ruling 6810324463 on + // #32445; #39439). Delivery Log above answers who each event reached. + // Gated on `setup.write`, the capability that action and its door + // demand, so the entry is served to exactly the audience the action is + // for: organization administrators and the platform administrator. + // `manage_platform_settings` would withhold it from the organization + // administrator, who holds `setup.write` and is deliberately denied + // platform settings. Who reads the rows stays the object grant's call; + // who sends stays the door's. `requiresObject` hides the entry where the + // messaging service, which registers the object, is not mounted. + { id: 'nav_notification_events', type: 'object', label: 'Notification Events', objectName: 'sys_notification', viewName: 'recent', icon: 'bell-ring', requiresObject: 'sys_notification', requiredPermissions: ['setup.write'] }, ], }, { diff --git a/packages/platform-objects/src/apps/setup-platform-items-39057.test.ts b/packages/platform-objects/src/apps/setup-platform-items-39057.test.ts index 85dc569e270..57ef59e29e4 100644 --- a/packages/platform-objects/src/apps/setup-platform-items-39057.test.ts +++ b/packages/platform-objects/src/apps/setup-platform-items-39057.test.ts @@ -88,6 +88,10 @@ const platformItem = (id: string): NavItem | undefined => // contributes, in the table's order. Users & Organization ends with the // active organization's page (`nav_organization`, 当前组织), which the table // does not list: it stays in the group it was in, after the listed entries. +// Notifications ends with the notification event list (`nav_notification_events`, +// 通知事件), which the table does not list either: the plan keeps every page +// as its own entry, and once Delivery Log opened the delivery list (#39439) +// the event list, with its Send In-App Message action, needed its own. const TABLE: ReadonlyArray = [ ['group_users_org', ['nav_settings_company', 'nav_users', 'nav_invitations', 'nav_teams', 'nav_business_units', 'nav_organizations', 'nav_organization'], ['公司信息', '用户', '邀请', '团队', '业务单元', '所有组织', '当前组织']], ['group_access_sharing', ['nav_access_directory'], ['岗位与权限']], @@ -96,7 +100,7 @@ const TABLE: ReadonlyArray = { nav_settings_ai: ['AI & Embedder'], nav_settings_lifecycle: ['Data Lifecycle'], // The literal said "Notification Events" while the English bundle served - // "Notifications": both were names an administrator read. - nav_notifications: ['Notification Events', 'Notifications'], + // "Notifications": both were names an administrator read. "Notification + // Events" is the name of the event list's own entry now (#39439), so a + // search for it finds that entry, not the Delivery Log. + nav_notifications: ['Notifications'], nav_sessions: ['Sessions'], }; @@ -234,6 +240,7 @@ describe('Setup platform-owned entries: groups, order, names and aliases (#39057 // between them and the Delivery Log. expect(priorities('group_notifications', 'nav_settings_mail')).toBe(200); expect(priorities('group_notifications', 'nav_notifications')).toBe(400); + expect(priorities('group_notifications', 'nav_notification_events')).toBe(400); // Public Forms last, after the integrations other packages contribute. expect(priorities('group_integrations_dev', 'nav_api_keys')).toBe(100); expect(priorities('group_integrations_dev', 'nav_public_forms')).toBe(500); @@ -269,6 +276,26 @@ describe('Setup platform-owned entries: groups, order, names and aliases (#39057 }); } + it('Notification Events: its own entry after Delivery Log, named in every locale, and the only one that name finds', () => { + // The event list (`sys_notification`), whose toolbar carries Send In-App + // Message, gated on that action's capability (#39439). + expect(platformItem('nav_notification_events')).toMatchObject({ + type: 'object', label: 'Notification Events', objectName: 'sys_notification', viewName: 'recent', + requiresObject: 'sys_notification', requiredPermissions: ['setup.write'], + }); + const EVENTS: Record = { + 'en': 'Notification Events', 'zh-CN': '通知事件', 'zh-Hant': '通知事件', 'ja-JP': '通知イベント', 'ko': '알림 이벤트', + 'es-ES': 'Eventos de notificación', 'fr': 'Événements de notification', 'pt-BR': 'Eventos de notificação', + 'ru': 'События уведомлений', 'de': 'Benachrichtigungsereignisse', 'ar': 'أحداث الإشعارات', + }; + for (const locale of LOCALES) { + expect({ locale, node: bundleNode(locale, 'nav_notification_events') }).toEqual({ locale, node: { label: EVENTS[locale] } }); + } + // No other entry keeps the name as a search alias. + const all = SETUP_NAV_CONTRIBUTIONS.flatMap((c) => c.items as NavItem[]); + expect(all.filter((i) => (i.keywords ?? []).includes('Notification Events')).map((i) => i.id)).toEqual([]); + }); + it('Business Units keeps its name and carries 部门 / 组织架构 / 事业部 (ruling D4)', () => { const item = platformItem('nav_business_units'); expect(item?.label).toBe('Business Units'); diff --git a/packages/platform-objects/src/apps/translations/ar.source-hashes.ts b/packages/platform-objects/src/apps/translations/ar.source-hashes.ts index ac5198083e7..6f2b5610bae 100644 --- a/packages/platform-objects/src/apps/translations/ar.source-hashes.ts +++ b/packages/platform-objects/src/apps/translations/ar.source-hashes.ts @@ -125,6 +125,7 @@ export const arSourceHashes: Readonly> = { 'apps.setup.navigation.nav_sessions.label': '05a759e3a230615e', 'apps.setup.navigation.nav_audit_logs.label': 'b2fad40733012b18', 'apps.setup.navigation.nav_notifications.label': '6cdb0d37e6bea5d0', + 'apps.setup.navigation.nav_notification_events.label': 'c6b63aaeb1aed3ae', 'apps.setup.navigation.nav_webhooks.label': '8fdd81bc76459a6a', 'apps.setup.navigation.nav_http_deliveries.label': '340f81dc6ea64987', 'apps.setup.navigation.nav_datasources.label': '2f0648ce23158e6f', diff --git a/packages/platform-objects/src/apps/translations/ar.ts b/packages/platform-objects/src/apps/translations/ar.ts index d9bf7a83eda..29f5a4e2c73 100644 --- a/packages/platform-objects/src/apps/translations/ar.ts +++ b/packages/platform-objects/src/apps/translations/ar.ts @@ -121,6 +121,7 @@ export const ar: TranslationData = { nav_sessions: { label: 'الجلسات النشطة', keywords: ['الجلسات'] }, nav_audit_logs: { label: 'سجل التدقيق' }, nav_notifications: { label: 'سجل الإرسال', keywords: ['الإشعارات'] }, + nav_notification_events: { label: 'أحداث الإشعارات' }, // Integrations — contributed at RUNTIME by the owning capability // plugins (ADR-0029 K2), so no static walk of SETUP_APP can see them. diff --git a/packages/platform-objects/src/apps/translations/de.source-hashes.ts b/packages/platform-objects/src/apps/translations/de.source-hashes.ts index 4e45df7e7cb..66ca783eaf5 100644 --- a/packages/platform-objects/src/apps/translations/de.source-hashes.ts +++ b/packages/platform-objects/src/apps/translations/de.source-hashes.ts @@ -126,6 +126,7 @@ export const deSourceHashes: Readonly> = { 'apps.setup.navigation.nav_sessions.label': '05a759e3a230615e', 'apps.setup.navigation.nav_audit_logs.label': 'b2fad40733012b18', 'apps.setup.navigation.nav_notifications.label': '6cdb0d37e6bea5d0', + 'apps.setup.navigation.nav_notification_events.label': 'c6b63aaeb1aed3ae', 'apps.setup.navigation.nav_webhooks.label': '8fdd81bc76459a6a', 'apps.setup.navigation.nav_http_deliveries.label': '340f81dc6ea64987', 'apps.setup.navigation.nav_datasources.label': '2f0648ce23158e6f', diff --git a/packages/platform-objects/src/apps/translations/de.ts b/packages/platform-objects/src/apps/translations/de.ts index 8ac2e6235ef..3de02fc4e89 100644 --- a/packages/platform-objects/src/apps/translations/de.ts +++ b/packages/platform-objects/src/apps/translations/de.ts @@ -123,6 +123,7 @@ export const de: TranslationData = { nav_sessions: { label: 'Aktive Sitzungen', keywords: ['Sitzungen'] }, nav_audit_logs: { label: 'Audit-Protokoll' }, nav_notifications: { label: 'Versandprotokoll', keywords: ['Benachrichtigungen'] }, + nav_notification_events: { label: 'Benachrichtigungsereignisse' }, // Integrations — contributed at RUNTIME by the owning capability // plugins (ADR-0029 K2), so no static walk of SETUP_APP can see them. diff --git a/packages/platform-objects/src/apps/translations/en.ts b/packages/platform-objects/src/apps/translations/en.ts index 4747a9c0f63..51089fb0872 100644 --- a/packages/platform-objects/src/apps/translations/en.ts +++ b/packages/platform-objects/src/apps/translations/en.ts @@ -163,6 +163,7 @@ export const en: TranslationData = { // the page's former id `nav_audit_log_browser` is tombstoned (#23890). nav_audit_logs: { label: 'Audit Log' }, nav_notifications: { label: 'Delivery Log' }, + nav_notification_events: { label: 'Notification Events' }, // Integrations — every entry here is contributed at RUNTIME by the // capability plugin that owns the object (ADR-0029 K2), so it exists on diff --git a/packages/platform-objects/src/apps/translations/es-ES.source-hashes.ts b/packages/platform-objects/src/apps/translations/es-ES.source-hashes.ts index 57e63666d82..f5171e338b2 100644 --- a/packages/platform-objects/src/apps/translations/es-ES.source-hashes.ts +++ b/packages/platform-objects/src/apps/translations/es-ES.source-hashes.ts @@ -120,6 +120,7 @@ export const esESSourceHashes: Readonly> = { 'apps.setup.navigation.nav_sessions.label': '05a759e3a230615e', 'apps.setup.navigation.nav_audit_logs.label': 'b2fad40733012b18', 'apps.setup.navigation.nav_notifications.label': '6cdb0d37e6bea5d0', + 'apps.setup.navigation.nav_notification_events.label': 'c6b63aaeb1aed3ae', 'apps.setup.navigation.nav_webhooks.label': '8fdd81bc76459a6a', 'apps.setup.navigation.nav_http_deliveries.label': '340f81dc6ea64987', 'apps.setup.navigation.nav_datasources.label': '2f0648ce23158e6f', diff --git a/packages/platform-objects/src/apps/translations/es-ES.ts b/packages/platform-objects/src/apps/translations/es-ES.ts index 5ec03114621..f32fb407a9e 100644 --- a/packages/platform-objects/src/apps/translations/es-ES.ts +++ b/packages/platform-objects/src/apps/translations/es-ES.ts @@ -111,6 +111,7 @@ export const esES: TranslationData = { nav_sessions: { label: 'Sesiones activas', keywords: ['Sesiones'] }, nav_audit_logs: { label: 'Registro de auditoría' }, nav_notifications: { label: 'Registro de envíos', keywords: ['Notificaciones'] }, + nav_notification_events: { label: 'Eventos de notificación' }, // Integrations — contributed at RUNTIME by the owning capability // plugins (ADR-0029 K2); gated by `pnpm check:app-nav-i18n` (#5750). diff --git a/packages/platform-objects/src/apps/translations/fr.source-hashes.ts b/packages/platform-objects/src/apps/translations/fr.source-hashes.ts index c0ae8435228..83851b67fef 100644 --- a/packages/platform-objects/src/apps/translations/fr.source-hashes.ts +++ b/packages/platform-objects/src/apps/translations/fr.source-hashes.ts @@ -126,6 +126,7 @@ export const frSourceHashes: Readonly> = { 'apps.setup.navigation.nav_sessions.label': '05a759e3a230615e', 'apps.setup.navigation.nav_audit_logs.label': 'b2fad40733012b18', 'apps.setup.navigation.nav_notifications.label': '6cdb0d37e6bea5d0', + 'apps.setup.navigation.nav_notification_events.label': 'c6b63aaeb1aed3ae', 'apps.setup.navigation.nav_webhooks.label': '8fdd81bc76459a6a', 'apps.setup.navigation.nav_http_deliveries.label': '340f81dc6ea64987', 'apps.setup.navigation.nav_datasources.label': '2f0648ce23158e6f', diff --git a/packages/platform-objects/src/apps/translations/fr.ts b/packages/platform-objects/src/apps/translations/fr.ts index 846179db19c..ade3a8d9423 100644 --- a/packages/platform-objects/src/apps/translations/fr.ts +++ b/packages/platform-objects/src/apps/translations/fr.ts @@ -123,6 +123,7 @@ export const fr: TranslationData = { nav_sessions: { label: 'Sessions actives', keywords: ['Sessions'] }, nav_audit_logs: { label: 'Journal d’audit' }, nav_notifications: { label: 'Journal des envois', keywords: ['Notifications'] }, + nav_notification_events: { label: 'Événements de notification' }, // Integrations — contributed at RUNTIME by the owning capability // plugins (ADR-0029 K2), so no static walk of SETUP_APP can see them. diff --git a/packages/platform-objects/src/apps/translations/ja-JP.source-hashes.ts b/packages/platform-objects/src/apps/translations/ja-JP.source-hashes.ts index f9681353224..81bfa9051d7 100644 --- a/packages/platform-objects/src/apps/translations/ja-JP.source-hashes.ts +++ b/packages/platform-objects/src/apps/translations/ja-JP.source-hashes.ts @@ -120,6 +120,7 @@ export const jaJPSourceHashes: Readonly> = { 'apps.setup.navigation.nav_sessions.label': '05a759e3a230615e', 'apps.setup.navigation.nav_audit_logs.label': 'b2fad40733012b18', 'apps.setup.navigation.nav_notifications.label': '6cdb0d37e6bea5d0', + 'apps.setup.navigation.nav_notification_events.label': 'c6b63aaeb1aed3ae', 'apps.setup.navigation.nav_webhooks.label': '8fdd81bc76459a6a', 'apps.setup.navigation.nav_http_deliveries.label': '340f81dc6ea64987', 'apps.setup.navigation.nav_datasources.label': '2f0648ce23158e6f', diff --git a/packages/platform-objects/src/apps/translations/ja-JP.ts b/packages/platform-objects/src/apps/translations/ja-JP.ts index 6666b3b9ed4..760b3a6291e 100644 --- a/packages/platform-objects/src/apps/translations/ja-JP.ts +++ b/packages/platform-objects/src/apps/translations/ja-JP.ts @@ -111,6 +111,7 @@ export const jaJP: TranslationData = { nav_sessions: { label: 'アクティブなセッション', keywords: ['セッション'] }, nav_audit_logs: { label: '監査ログ' }, nav_notifications: { label: '送信履歴', keywords: ['通知'] }, + nav_notification_events: { label: '通知イベント' }, // Integrations — contributed at RUNTIME by the owning capability // plugins (ADR-0029 K2); gated by `pnpm check:app-nav-i18n` (#5750). diff --git a/packages/platform-objects/src/apps/translations/ko.source-hashes.ts b/packages/platform-objects/src/apps/translations/ko.source-hashes.ts index 18261665864..8e38027bdf1 100644 --- a/packages/platform-objects/src/apps/translations/ko.source-hashes.ts +++ b/packages/platform-objects/src/apps/translations/ko.source-hashes.ts @@ -126,6 +126,7 @@ export const koSourceHashes: Readonly> = { 'apps.setup.navigation.nav_sessions.label': '05a759e3a230615e', 'apps.setup.navigation.nav_audit_logs.label': 'b2fad40733012b18', 'apps.setup.navigation.nav_notifications.label': '6cdb0d37e6bea5d0', + 'apps.setup.navigation.nav_notification_events.label': 'c6b63aaeb1aed3ae', 'apps.setup.navigation.nav_webhooks.label': '8fdd81bc76459a6a', 'apps.setup.navigation.nav_http_deliveries.label': '340f81dc6ea64987', 'apps.setup.navigation.nav_datasources.label': '2f0648ce23158e6f', diff --git a/packages/platform-objects/src/apps/translations/ko.ts b/packages/platform-objects/src/apps/translations/ko.ts index b40d53153d8..f4ce1d38843 100644 --- a/packages/platform-objects/src/apps/translations/ko.ts +++ b/packages/platform-objects/src/apps/translations/ko.ts @@ -122,6 +122,7 @@ export const ko: TranslationData = { nav_sessions: { label: '활성 세션', keywords: ['세션'] }, nav_audit_logs: { label: '감사 로그' }, nav_notifications: { label: '발송 기록', keywords: ['알림'] }, + nav_notification_events: { label: '알림 이벤트' }, // Integrations — contributed at RUNTIME by the owning capability // plugins (ADR-0029 K2), so no static walk of SETUP_APP can see them. diff --git a/packages/platform-objects/src/apps/translations/pt-BR.source-hashes.ts b/packages/platform-objects/src/apps/translations/pt-BR.source-hashes.ts index 59b084c413b..7f5125ef1f8 100644 --- a/packages/platform-objects/src/apps/translations/pt-BR.source-hashes.ts +++ b/packages/platform-objects/src/apps/translations/pt-BR.source-hashes.ts @@ -126,6 +126,7 @@ export const ptBRSourceHashes: Readonly> = { 'apps.setup.navigation.nav_sessions.label': '05a759e3a230615e', 'apps.setup.navigation.nav_audit_logs.label': 'b2fad40733012b18', 'apps.setup.navigation.nav_notifications.label': '6cdb0d37e6bea5d0', + 'apps.setup.navigation.nav_notification_events.label': 'c6b63aaeb1aed3ae', 'apps.setup.navigation.nav_webhooks.label': '8fdd81bc76459a6a', 'apps.setup.navigation.nav_http_deliveries.label': '340f81dc6ea64987', 'apps.setup.navigation.nav_datasources.label': '2f0648ce23158e6f', diff --git a/packages/platform-objects/src/apps/translations/pt-BR.ts b/packages/platform-objects/src/apps/translations/pt-BR.ts index 5066f615d3c..6130c593a3e 100644 --- a/packages/platform-objects/src/apps/translations/pt-BR.ts +++ b/packages/platform-objects/src/apps/translations/pt-BR.ts @@ -123,6 +123,7 @@ export const ptBR: TranslationData = { nav_sessions: { label: 'Sessões ativas', keywords: ['Sessões'] }, nav_audit_logs: { label: 'Log de auditoria' }, nav_notifications: { label: 'Registro de envios', keywords: ['Notificações'] }, + nav_notification_events: { label: 'Eventos de notificação' }, // Integrations — contributed at RUNTIME by the owning capability // plugins (ADR-0029 K2), so no static walk of SETUP_APP can see them. diff --git a/packages/platform-objects/src/apps/translations/ru.source-hashes.ts b/packages/platform-objects/src/apps/translations/ru.source-hashes.ts index 65e7d8725a2..4ca5418d4d4 100644 --- a/packages/platform-objects/src/apps/translations/ru.source-hashes.ts +++ b/packages/platform-objects/src/apps/translations/ru.source-hashes.ts @@ -126,6 +126,7 @@ export const ruSourceHashes: Readonly> = { 'apps.setup.navigation.nav_sessions.label': '05a759e3a230615e', 'apps.setup.navigation.nav_audit_logs.label': 'b2fad40733012b18', 'apps.setup.navigation.nav_notifications.label': '6cdb0d37e6bea5d0', + 'apps.setup.navigation.nav_notification_events.label': 'c6b63aaeb1aed3ae', 'apps.setup.navigation.nav_webhooks.label': '8fdd81bc76459a6a', 'apps.setup.navigation.nav_http_deliveries.label': '340f81dc6ea64987', 'apps.setup.navigation.nav_datasources.label': '2f0648ce23158e6f', diff --git a/packages/platform-objects/src/apps/translations/ru.ts b/packages/platform-objects/src/apps/translations/ru.ts index 7d99b8021c1..d178a1af7b5 100644 --- a/packages/platform-objects/src/apps/translations/ru.ts +++ b/packages/platform-objects/src/apps/translations/ru.ts @@ -123,6 +123,7 @@ export const ru: TranslationData = { nav_sessions: { label: 'Активные сеансы', keywords: ['Сеансы'] }, nav_audit_logs: { label: 'Журнал аудита' }, nav_notifications: { label: 'Журнал отправки', keywords: ['Уведомления'] }, + nav_notification_events: { label: 'События уведомлений' }, // Integrations — contributed at RUNTIME by the owning capability // plugins (ADR-0029 K2), so no static walk of SETUP_APP can see them. diff --git a/packages/platform-objects/src/apps/translations/zh-CN.source-hashes.ts b/packages/platform-objects/src/apps/translations/zh-CN.source-hashes.ts index 83b41d4ecb8..fce131aaf43 100644 --- a/packages/platform-objects/src/apps/translations/zh-CN.source-hashes.ts +++ b/packages/platform-objects/src/apps/translations/zh-CN.source-hashes.ts @@ -120,6 +120,7 @@ export const zhCNSourceHashes: Readonly> = { 'apps.setup.navigation.nav_sessions.label': '05a759e3a230615e', 'apps.setup.navigation.nav_audit_logs.label': 'b2fad40733012b18', 'apps.setup.navigation.nav_notifications.label': '6cdb0d37e6bea5d0', + 'apps.setup.navigation.nav_notification_events.label': 'c6b63aaeb1aed3ae', 'apps.setup.navigation.nav_webhooks.label': '8fdd81bc76459a6a', 'apps.setup.navigation.nav_http_deliveries.label': '340f81dc6ea64987', 'apps.setup.navigation.nav_datasources.label': '2f0648ce23158e6f', diff --git a/packages/platform-objects/src/apps/translations/zh-CN.ts b/packages/platform-objects/src/apps/translations/zh-CN.ts index 9e256383331..ddec4ac1a35 100644 --- a/packages/platform-objects/src/apps/translations/zh-CN.ts +++ b/packages/platform-objects/src/apps/translations/zh-CN.ts @@ -115,6 +115,7 @@ export const zhCN: TranslationData = { nav_sessions: { label: '在线会话', keywords: ['会话'] }, nav_audit_logs: { label: '审计日志' }, nav_notifications: { label: '发送记录', keywords: ['通知'] }, + nav_notification_events: { label: '通知事件' }, // Integrations — contributed at RUNTIME by the owning capability // plugins (ADR-0029 K2), so no static walk of SETUP_APP can see them. diff --git a/packages/platform-objects/src/apps/translations/zh-Hant.source-hashes.ts b/packages/platform-objects/src/apps/translations/zh-Hant.source-hashes.ts index fb861ea8135..c00ffc0a6bf 100644 --- a/packages/platform-objects/src/apps/translations/zh-Hant.source-hashes.ts +++ b/packages/platform-objects/src/apps/translations/zh-Hant.source-hashes.ts @@ -125,6 +125,7 @@ export const zhHantSourceHashes: Readonly> = { 'apps.setup.navigation.nav_sessions.label': '05a759e3a230615e', 'apps.setup.navigation.nav_audit_logs.label': 'b2fad40733012b18', 'apps.setup.navigation.nav_notifications.label': '6cdb0d37e6bea5d0', + 'apps.setup.navigation.nav_notification_events.label': 'c6b63aaeb1aed3ae', 'apps.setup.navigation.nav_webhooks.label': '8fdd81bc76459a6a', 'apps.setup.navigation.nav_http_deliveries.label': '340f81dc6ea64987', 'apps.setup.navigation.nav_datasources.label': '2f0648ce23158e6f', diff --git a/packages/platform-objects/src/apps/translations/zh-Hant.ts b/packages/platform-objects/src/apps/translations/zh-Hant.ts index 8b69148a46c..e9e485a50cd 100644 --- a/packages/platform-objects/src/apps/translations/zh-Hant.ts +++ b/packages/platform-objects/src/apps/translations/zh-Hant.ts @@ -121,6 +121,7 @@ export const zhHant: TranslationData = { nav_sessions: { label: '線上工作階段', keywords: ['工作階段'] }, nav_audit_logs: { label: '稽核日誌' }, nav_notifications: { label: '傳送記錄', keywords: ['通知'] }, + nav_notification_events: { label: '通知事件' }, // Integrations — contributed at RUNTIME by the owning capability // plugins (ADR-0029 K2), so no static walk of SETUP_APP can see them. diff --git a/packages/platform-objects/src/platform-objects.test.ts b/packages/platform-objects/src/platform-objects.test.ts index 6d623bc29a2..c6dd59bd98f 100644 --- a/packages/platform-objects/src/platform-objects.test.ts +++ b/packages/platform-objects/src/platform-objects.test.ts @@ -673,7 +673,10 @@ describe('@objectstack/platform-objects', () => { // `sys_notification_delivery` is `@objectstack/service-messaging`'s (Setup's // Delivery Log, #39439); `service-messaging`'s // `notification-delivery-log-39439.test.ts` pins that it lists. - const FOREIGN_NAV_OBJECTS = new Set(['sys_notification_delivery']); + // `sys_notification` (Setup's Notification Events) is declared here but + // registered by `@objectstack/service-messaging` too, behind the same + // `requiresObject`. + const FOREIGN_NAV_OBJECTS = new Set(['sys_notification', 'sys_notification_delivery']); const objectEntries = (): Array<{ id: string; objectName: string }> => { const out: Array<{ id: string; objectName: string }> = []; diff --git a/packages/services/service-messaging/src/setup-nav-groups-39058.test.ts b/packages/services/service-messaging/src/setup-nav-groups-39058.test.ts index 18c3e837165..114990793c7 100644 --- a/packages/services/service-messaging/src/setup-nav-groups-39058.test.ts +++ b/packages/services/service-messaging/src/setup-nav-groups-39058.test.ts @@ -70,13 +70,15 @@ describe('#39058 — service-messaging names its new Setup groups', () => { .map((d) => d.renamedTo), ).toEqual(['group_company']); // The epic's table: Notification Templates, Email Channel, SMS Channel, - // Notification Preferences, Delivery Log. + // Notification Preferences, Delivery Log; then Notification Events, the + // event list Delivery Log no longer opens (#39439). expect(mergedGroup(contributions, 'group_notifications')).toEqual([ 'nav_notification_templates', 'nav_settings_mail', 'nav_settings_sms', 'nav_notification_preferences', 'nav_notifications', + 'nav_notification_events', ]); }); From 1d37e8bd97860917c0bba35c2cf036bd43a57097 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 4 Dec 2026 13:10:38 +0000 Subject: [PATCH 8/9] docs(permissions): the guide sends administrators to Notification Events to send an in-app message Claude-Session: https://claude.ai/code/session_01L9qibzbZZbDRcKrdCMMS2i Co-authored-by: Claude --- content/docs/permissions/administrator-guide.mdx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/content/docs/permissions/administrator-guide.mdx b/content/docs/permissions/administrator-guide.mdx index ed5153590e1..f7fd23a9bf7 100644 --- a/content/docs/permissions/administrator-guide.mdx +++ b/content/docs/permissions/administrator-guide.mdx @@ -224,7 +224,7 @@ Full model: [Permission Sets](/docs/permissions/permission-sets). ## Send a message to your organization To tell people something in the app (a maintenance window, a policy change), -open **Setup → Notifications → Delivery Log** and choose **Send In-App +open **Setup → Notifications → Notification Events** and choose **Send In-App Message**. The message lands in each recipient's notifications, the bell, like any other notification. @@ -245,7 +245,9 @@ like any other notification. When it is sent, the confirmation says how many people it went to. Each message is a notification event with the topic `org.announcement`, listed on -the same page. A member whose notification preferences turn that topic off +the same page. Who each event reached, by which channel and whether it +arrived, is in **Setup → Notifications → Delivery Log**, which is shown to +holders of `manage_platform_settings` (platform administrators). A member whose notification preferences turn that topic off is not sent it, and is not counted. The count is of the people a delivery was accepted for. A send that reached nobody is refused instead of confirmed: `409` when every person you picked has turned the topic off, and @@ -296,7 +298,7 @@ the notification settings page lists no Slack channel. | Someone changed departments | Update their Business Unit Member row; re-anchor their User Position rows | | Let a subsidiary manage its own staff | Grant a set carrying a [delegated admin scope](/docs/permissions/delegated-administration) | | Give one user one extra capability | Permission set record → **Assigned Users** → add (direct grant) | -| Tell everyone in the organization something | Setup → Notifications → Delivery Log → **Send In-App Message** ([above](#send-a-message-to-your-organization)) | +| Tell everyone in the organization something | Setup → Notifications → Notification Events → **Send In-App Message** ([above](#send-a-message-to-your-organization)) | ## FAQ @@ -328,8 +330,8 @@ sets can't be edited in place either, but they can be cloned and adjusted | Sharing rules, record shares | Setup → Access & Sharing → Sharing Rules / Record Shares | | Password policy, MFA, lockout, SSO | Setup → Login & Security → Sign-in Methods / SSO Providers | | Company info, localization, branding | Setup → Users & Organization → Company Information; Setup → Company Settings → Language & Region / Branding | -| Sessions, notification events, audit logs | Setup → Login & Security → Active Sessions; Setup → Notifications → Delivery Log; Setup → Audit & Data → Audit Log | -| Send an in-app message to the organization | Setup → Notifications → Delivery Log | +| Sessions, notification events, notification deliveries, audit logs | Setup → Login & Security → Active Sessions; Setup → Notifications → Notification Events / Delivery Log; Setup → Audit & Data → Audit Log | +| Send an in-app message to the organization | Setup → Notifications → Notification Events | | Explain access | Studio → Access | --- From c688fe7c8a922b726c58d6617730612e4da028e0 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 4 Dec 2026 13:10:38 +0000 Subject: [PATCH 9/9] =?UTF-8?q?chore(changeset):=20Notification=20Events?= =?UTF-8?q?=20entry,=20Clause-=E2=91=A1=20yes=20(widening)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Claude-Session: https://claude.ai/code/session_01L9qibzbZZbDRcKrdCMMS2i Co-authored-by: Claude --- .changeset/39439-setup-knowledge-and-delivery-log.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.changeset/39439-setup-knowledge-and-delivery-log.md b/.changeset/39439-setup-knowledge-and-delivery-log.md index e8d0afa207d..4d7ed343e03 100644 --- a/.changeset/39439-setup-knowledge-and-delivery-log.md +++ b/.changeset/39439-setup-knowledge-and-delivery-log.md @@ -4,13 +4,16 @@ '@objectstack/service-settings': patch --- -fix(setup): Setup → Knowledge says where the rest of a knowledge setup lives, and Delivery Log shows who each notification went to, by which channel, and whether it was delivered +fix(setup): Setup → Knowledge says where the rest of a knowledge setup lives, Delivery Log shows who each notification went to, by which channel, and whether it was delivered, and the notification event list keeps its own Setup entry, Notification Events, served to organization administrators -Clause-②: no +Clause-②: yes (widening) Metadata-protocol: none -Who sees it: a platform administrator in Setup. +The widening: a Setup entry, Notification Events, is served to callers who hold `setup.write` and were served no entry for that list before (organization administrators hold `setup.write` and not `manage_platform_settings`). + +Who sees it: a platform administrator in Setup; an organization administrator sees Notification Events. - **Setup → Knowledge** no longer calls itself the vector-store backend. It holds the indexing defaults, and its description now names the two other places a knowledge base is set up: the embedding provider, under AI Model Service → Embedder (a saved provider takes effect after a server restart), and the knowledge sources themselves, created in App Studio → AI. The sentence is in every shipped language, with each page named the way that language names it. It is plain text, not a link. -- **Setup → Notifications → Delivery Log** now opens the delivery list (`sys_notification_delivery`, new `recent` view) instead of the notification event list. Each row is one send: the recipient (the person, and the address it went to), the channel, the status (pending, in flight, success, dead, suppressed), the attempts, the last error, the topic and when it was queued, newest first. The entry keeps its name, its place and its gate (`manage_platform_settings`), and it is shown only where the messaging service is mounted. The event list (`sys_notification`, with its Send In-App Message action) is no longer opened from this entry. +- **Setup → Notifications → Delivery Log** now opens the delivery list (`sys_notification_delivery`, new `recent` view) instead of the notification event list. Each row is one send: the recipient (the person, and the address it went to), the channel, the status (pending, in flight, success, dead, suppressed), the attempts, the last error, the topic and when it was queued, newest first. The entry keeps its name, its place and its gate (`manage_platform_settings`), and it is shown only where the messaging service is mounted. The event list (`sys_notification`) is no longer opened from this entry; the search alias "Notification Events" moves to the event list's own entry below. +- **Setup → Notifications → Notification Events** is a new entry, after Delivery Log, opening the notification event list (`sys_notification`, view `recent`), whose toolbar carries **Send In-App Message**. It is gated on `setup.write`, the capability that action and its door demand, so organization administrators, who hold `setup.write` and are deliberately withheld `manage_platform_settings`, now reach the action from the menu; before, the list's only Setup entry was gated on `manage_platform_settings`. Who reads the rows is still the object grant's call, and who may send is still judged by the door. The label is in every shipped language. The administrator guide now names this path for sending a message to the organization. - The topic still shows as its key (for example `approval.requested`): the platform has no display names for notification topics.