From 30078e4dfee4ebddfd5bf040f29f0127435bee67 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 29 Sep 2026 05:42:06 +0000 Subject: [PATCH 1/5] fix(plugin-audit): describe sys_comment.reactions and mentions by the shape their producer stores (#20558) reactions is a JSON object mapping each emoji to the user ids who reacted (objectui RecordDetailView reads and writes exactly that map); mentions is a JSON array of user id strings (the same producer writes JSON.stringify of an id list, and writeCommentMentions consumes it). Translations regenerate in the next commit. Claude-Session: https://claude.ai/code/session_01XY5uCwTjZj7884yYtyur4H Co-authored-by: Claude --- .../plugins/plugin-audit/src/objects/sys-comment.object.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/plugins/plugin-audit/src/objects/sys-comment.object.ts b/packages/plugins/plugin-audit/src/objects/sys-comment.object.ts index c5c85c2604a..534c4c1ad9a 100644 --- a/packages/plugins/plugin-audit/src/objects/sys-comment.object.ts +++ b/packages/plugins/plugin-audit/src/objects/sys-comment.object.ts @@ -118,14 +118,14 @@ export const SysComment = ObjectSchema.create({ mentions: Field.textarea({ label: 'Mentions', required: false, - description: 'JSON array of @mention objects', + description: 'JSON array of the user ids @mentioned in the comment', group: 'Body', }), reactions: Field.textarea({ label: 'Reactions', required: false, - description: 'JSON array of emoji reaction objects', + description: 'JSON object mapping each emoji to the list of user ids who reacted', group: 'Body', }), From 236bae389954ec25067e3c83d0a7f8be4e8c58ec Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 29 Sep 2026 05:50:22 +0000 Subject: [PATCH 2/5] chore(plugin-audit): regenerate the en bundle and add the changeset for the sys_comment description fix (#20558) Claude-Session: https://claude.ai/code/session_01XY5uCwTjZj7884yYtyur4H Co-authored-by: Claude --- ...558-comment-reactions-mentions-description.md | 16 ++++++++++++++++ .../src/translations/en.objects.generated.ts | 4 ++-- 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 .changeset/20558-comment-reactions-mentions-description.md diff --git a/.changeset/20558-comment-reactions-mentions-description.md b/.changeset/20558-comment-reactions-mentions-description.md new file mode 100644 index 00000000000..0548c3cbdbf --- /dev/null +++ b/.changeset/20558-comment-reactions-mentions-description.md @@ -0,0 +1,16 @@ +--- +'@objectstack/plugin-audit': patch +--- + +`sys_comment.reactions` and `sys_comment.mentions` now describe the shape they actually store (#20558) + +The two field descriptions are served metadata (field help in the console, and what an AI client reads before it seeds a comment), and both named a shape no producer writes: + +| Field | Description was | Description is now | Stored value | +| --- | --- | --- | --- | +| `reactions` | JSON array of emoji reaction objects | JSON object mapping each emoji to the list of user ids who reacted | `{"👍":["usr_1","usr_2"]}` | +| `mentions` | JSON array of @mention objects | JSON array of the user ids @mentioned in the comment | `["usr_1","usr_2"]` | + +The console's record discussion panel reads and writes `reactions` as that map, and writes `mentions` as that list of ids; the `collab.mention` notification hook reads the ids. + +Description text only: no stored value, validation rule or hook changes, and nothing to migrate. The English translation bundle is regenerated from the source description. diff --git a/packages/plugins/plugin-audit/src/translations/en.objects.generated.ts b/packages/plugins/plugin-audit/src/translations/en.objects.generated.ts index d9926a66f91..7c4575273dc 100644 --- a/packages/plugins/plugin-audit/src/translations/en.objects.generated.ts +++ b/packages/plugins/plugin-audit/src/translations/en.objects.generated.ts @@ -215,11 +215,11 @@ export const enObjects: NonNullable = { }, mentions: { label: "Mentions", - help: "JSON array of @mention objects" + help: "JSON array of the user ids @mentioned in the comment" }, reactions: { label: "Reactions", - help: "JSON array of emoji reaction objects" + help: "JSON object mapping each emoji to the list of user ids who reacted" }, is_edited: { label: "Edited" From e83328b6e97131692885d14078f6f88b94140247 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 29 Sep 2026 06:11:10 +0000 Subject: [PATCH 3/5] docs(changeset): quote the description strings so a release note cannot ping an at-mention (#20558) Claude-Session: https://claude.ai/code/session_01XY5uCwTjZj7884yYtyur4H Co-authored-by: Claude --- .changeset/20558-comment-reactions-mentions-description.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.changeset/20558-comment-reactions-mentions-description.md b/.changeset/20558-comment-reactions-mentions-description.md index 0548c3cbdbf..c1dcbcb9c41 100644 --- a/.changeset/20558-comment-reactions-mentions-description.md +++ b/.changeset/20558-comment-reactions-mentions-description.md @@ -8,8 +8,8 @@ The two field descriptions are served metadata (field help in the console, and w | Field | Description was | Description is now | Stored value | | --- | --- | --- | --- | -| `reactions` | JSON array of emoji reaction objects | JSON object mapping each emoji to the list of user ids who reacted | `{"👍":["usr_1","usr_2"]}` | -| `mentions` | JSON array of @mention objects | JSON array of the user ids @mentioned in the comment | `["usr_1","usr_2"]` | +| `reactions` | `JSON array of emoji reaction objects` | `JSON object mapping each emoji to the list of user ids who reacted` | `{"👍":["usr_1","usr_2"]}` | +| `mentions` | `JSON array of @mention objects` | `JSON array of the user ids @mentioned in the comment` | `["usr_1","usr_2"]` | The console's record discussion panel reads and writes `reactions` as that map, and writes `mentions` as that list of ids; the `collab.mention` notification hook reads the ids. From 284dc25608dde57a2ec8e57e33e8e3977355405c Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 29 Sep 2026 06:29:10 +0000 Subject: [PATCH 4/5] fix(plugin-audit): translate the new sys_comment mentions and reactions help into zh-CN, ja-JP and es-ES (#20558) Values only: the six help strings that still named an array of objects now follow the English descriptions. No key added or dropped, no label touched. Claude-Session: https://claude.ai/code/session_01XY5uCwTjZj7884yYtyur4H Co-authored-by: Claude --- .../plugin-audit/src/translations/es-ES.objects.generated.ts | 4 ++-- .../plugin-audit/src/translations/ja-JP.objects.generated.ts | 4 ++-- .../plugin-audit/src/translations/zh-CN.objects.generated.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/plugins/plugin-audit/src/translations/es-ES.objects.generated.ts b/packages/plugins/plugin-audit/src/translations/es-ES.objects.generated.ts index 964c47bf678..e64327493df 100644 --- a/packages/plugins/plugin-audit/src/translations/es-ES.objects.generated.ts +++ b/packages/plugins/plugin-audit/src/translations/es-ES.objects.generated.ts @@ -215,11 +215,11 @@ export const esESObjects: NonNullable = { }, mentions: { label: "Menciones", - help: "Matriz JSON de objetos @mention." + help: "Matriz JSON de los id de usuario mencionados con @ en el comentario." }, reactions: { label: "Reacciones", - help: "Matriz JSON de objetos de reacción emoji." + help: "Objeto JSON que asigna cada emoji a la lista de id de usuario de quienes reaccionaron." }, is_edited: { label: "Editado" diff --git a/packages/plugins/plugin-audit/src/translations/ja-JP.objects.generated.ts b/packages/plugins/plugin-audit/src/translations/ja-JP.objects.generated.ts index 4eb57cf6f43..256513fb8a4 100644 --- a/packages/plugins/plugin-audit/src/translations/ja-JP.objects.generated.ts +++ b/packages/plugins/plugin-audit/src/translations/ja-JP.objects.generated.ts @@ -215,11 +215,11 @@ export const jaJPObjects: NonNullable = { }, mentions: { label: "メンション", - help: "@メンションオブジェクトの JSON 配列" + help: "コメント内で @メンションされたユーザー ID の JSON 配列" }, reactions: { label: "リアクション", - help: "絵文字リアクションオブジェクトの JSON 配列" + help: "各絵文字を、リアクションしたユーザー ID のリストに対応付ける JSON オブジェクト" }, is_edited: { label: "編集済み" diff --git a/packages/plugins/plugin-audit/src/translations/zh-CN.objects.generated.ts b/packages/plugins/plugin-audit/src/translations/zh-CN.objects.generated.ts index 704987edb7e..eaf3ac3df84 100644 --- a/packages/plugins/plugin-audit/src/translations/zh-CN.objects.generated.ts +++ b/packages/plugins/plugin-audit/src/translations/zh-CN.objects.generated.ts @@ -215,11 +215,11 @@ export const zhCNObjects: NonNullable = { }, mentions: { label: "提及", - help: "@mention 对象的 JSON 数组" + help: "评论中被 @ 提及的用户 ID 的 JSON 数组" }, reactions: { label: "回应", - help: "表情回应对象的 JSON 数组" + help: "将每个表情映射到对其做出回应的用户 ID 列表的 JSON 对象" }, is_edited: { label: "已编辑" From 0cebc286c3d8fa70e82969f203d774d334a2d589 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 29 Sep 2026 06:30:17 +0000 Subject: [PATCH 5/5] docs(changeset): say the translated help texts follow the English description (#20558) Claude-Session: https://claude.ai/code/session_01XY5uCwTjZj7884yYtyur4H Co-authored-by: Claude --- .changeset/20558-comment-reactions-mentions-description.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/20558-comment-reactions-mentions-description.md b/.changeset/20558-comment-reactions-mentions-description.md index c1dcbcb9c41..59d33873f85 100644 --- a/.changeset/20558-comment-reactions-mentions-description.md +++ b/.changeset/20558-comment-reactions-mentions-description.md @@ -13,4 +13,4 @@ The two field descriptions are served metadata (field help in the console, and w The console's record discussion panel reads and writes `reactions` as that map, and writes `mentions` as that list of ids; the `collab.mention` notification hook reads the ids. -Description text only: no stored value, validation rule or hook changes, and nothing to migrate. The English translation bundle is regenerated from the source description. +Description text only: no stored value, validation rule or hook changes, and nothing to migrate. The English translation bundle is regenerated from the source description, and the zh-CN, ja-JP and es-ES help texts for both fields are rewritten to match (values only, no key added or dropped).