Skip to content

fix(plugin-detail): a slotted page's record:chatter on the 动态 tab lists the system history alone while the comment panel holds the comments (#36193) - #36221

Merged
objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/project-thread-u6a11n
Nov 22, 2026
Merged

objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/project-thread-u6a11n

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread

repo:objectstack#1 · os-sales · session_01L6bhgXV5qLuX94Bn6aqb4y

Fixes #36193

Premise.

  1. What the card reads now: feat(record-page): on a wide full page the details are pinned left beside the record's tabs; the right summary rail is retired (#35890) #36136 (48c732c) retired the overview's right rail, so the 「最近动态」 card is gone and the overview lists no comment. The card's 「讨论 (3)」 face came from a slotted page whose discussion slot holds record:chatter; after feat(record-page): on a wide full page the details are pinned left beside the record's tabs; the right summary rail is retired (#35890) #36136 that author's block is drawn on the 动态 tab only, where it still drew 「讨论 (4)」, the 全部动态 filter, every comment and reply and a comment box, beside the comment panel showing the same comment (before: pr36136/timeline-tab-panel-open-*).
  2. Reading (seat, 2026-11-21 23:06Z): the card's 「不改动态页签」 means the platform's own 动态 tab (its label and the stream the platform draws). The target is the author-placed chatter/discussion block, which now happens to sit inside that tab.
  3. Clause-②: no (a UI face of an existing block; no contract, permission or spec key).

What changes

  • renderers/record-chatter.tsx: while RecordCommentsInPanelContext is on and the block is on the default/slotted page (useDefaultRecordPage()), a record:chatter / record:discussion block draws the system entries only: comments and replies filtered out before applyFeedConfig, no composer (onAddComment withheld, commentsShown: false, which also drops the Comments-only filter), a refused or failed comment read not reported (the panel's to say), heading 「动态」 (detail.timeline) and empty line detail.noActivity. The (N) count is the filtered items, so it leaves comments out.
  • RecordChatterPanel.tsx: optional titleLabel / emptyLabel props (default 「讨论」 / 「暂无评论」, unchanged for every other caller); a caller-named heading takes the stream's Activity icon instead of MessageSquare (L1-c nit, 3efc293).
  • Test renderers/__tests__/record-chatter.commentsInPanel-36193.test.tsx (6).

Not changed: the platform's own record:activity stream, the 动态 tab's label (still 「动态」, no count), an authored (kind: 'full') page.

Phone, after #36208 (merged into this branch at abe8f8b5): #36208 sets RecordCommentsInPanelContext to the panel OR the phone comment page, so on the phone too the author's block on the 动态 tab now drops its comments; the phone's comments live on their own page. Before #36208 the phone had no comment surface and kept them.

Small calls (seat may overrule)

  1. Heading is 「动态」, matching the platform stream's heading in the same tab; the 全部动态 filter stays (its Comments-only entry goes).
  2. The switch is "comment panel offered", not "open", as feat(record-page): a desktop comment panel beside the record, opened from a header icon; 动态 keeps system entries (#36075) #36114 uses for the stream.

Why

Card #36193 (epic #36062 phase 1 wrap-up): with the comment panel open the same comment showed twice, and a resolved thread stayed in the record body.

Verification

Clause-②: no
Metadata-protocol: none

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (not touched)
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes. (eslint on the three files: 0 errors)
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: n/a.
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.
  • The Before Submitting list in CONTRIBUTING.md is done.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgXV5qLuX94Bn6aqb4y

… alone while the comment panel holds the comments

A slotted page's record:chatter / record:discussion stream is drawn in the
card as the record:activity block its feed configures, in the peek face:
no comments, no replies, no 讨论 heading, a count of the system entries,
no card without system history. The 动态 tab and its label are unchanged.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgXV5qLuX94Bn6aqb4y
… page's record:chatter on the 动态 tab lists the system history alone while the comment panel holds the comments

The rail card change goes with RecordSummaryRail.tsx. The author's
record:chatter / record:discussion block, now drawn on the 动态 tab,
drops comments and replies, the composer and the Comments-only filter,
counts without the comments and is headed 动态, while
RecordCommentsInPanelContext is on and the page is the default or
slotted one. The platform's own stream, the tab label, an authored page
and the phone without a comment surface are unchanged.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgXV5qLuX94Bn6aqb4y
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 22, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgXtcSJVbw8Gny1ERbP

维护者速读

改完以后,评论栏开着时,同一条评论在屏幕上只出现一次:页面里作者自己放的「讨论」块(现在显示在「动态」页签里)只列系统记录,没有评论、回复和评论框,标题从「讨论」改成「动态」,数字也不再算评论。截图里核对过:改之前写「讨论 (4)」,评论旁边还有评论栏;改之后是「动态 (2)」,两条系统记录。平台自己的「动态」、页签名字、作者整页自定义的页面都没有动。
「最近动态」卡片本身已经随 #36136 宽屏改版拿掉了,这张卡剩下要处理的就是这个块,座位已经确认这样理解卡片。
手机评论页 #36208 正在合入,合入以后手机上这个块也会同样只列系统记录,这和手机评论放在单独页面上是一致的。
L1 结论:通过。建议等 #36208 合入后,这个分支再合一次主干、跑一遍 CI 再合并。

席位核对 — ACCEPT (L1-c) · repo:objectstack#1 · head 642e4af8 · 2026-11-22T02:55Z

Card: Fixes #36193 (epic #36062, phase 1 wrap-up; claim 7072959413). Seat reading 2026-11-21 23:06Z: 「不改动态页签」 means the platform's own 动态 tab, and the target is the author-placed chatter block, which #36136 moved into that tab. Declarations: Clause-②: no, Metadata-protocol: none. That reading holds: the change is a face of an existing block, with no new export or key. The two new props on RecordChatterPanel are optional and internal to the renderer, defaulting to today's labels. 4 files, +146 / −14.

Gates: CI is 42 success · 13 expected skip on 642e4af8, and mergeable is clean. l1-face is CLEAN.

Read and found sound

  • The switch is RecordCommentsInPanelContext && useDefaultRecordPage(), which is true on the default and slotted pages and in the drawer, wherever feat(record-page): a desktop comment panel beside the record, opened from a header icon; 动态 keeps system entries (#36075) #36114 offers the panel. An authored kind: 'full' page is unchanged. This is the same "offered, not open" switch feat(record-page): a desktop comment panel beside the record, opened from a header icon; 动态 keeps system entries (#36075) #36114 uses for the platform stream, as small call 2 says.

  • What the block drops under it:

    • Every type: 'comment' item, roots and replies, is filtered before applyFeedConfig, so the (N) count and paging see system entries only.
    • onAddComment is withheld, so there is no composer.
    • commentsShown is false, so there is no Comments-only filter. composerWithheld still reads the author's types alone, so the development diagnostic does not fire for this host-driven case.
    • commentsDenied and commentsFailed are suppressed, because the panel reports those.
  • What it says instead: detail.timeline (动态) and detail.noActivity. Both are existing detail keys in all 11 packs, so no new strings are needed.

  • Tests: record-chatter.commentsInPanel-36193.test.tsx, 6 cases:

    • record:chatter and record:discussion show system rows only, with no textarea, no Discussion heading, and a count of 1;
    • the empty line names activity;
    • a refused comment read is not this block's to say;
    • two CONTROLs: without the panel, and off the default page.

    The body's ablation shows 4 cases red and the 2 CONTROLs green.

  • Evidence (build-seat1/36193/): at 1440 with the panel open, before is 「讨论 (4)」 with the comment and 「1 条回复」 beside the panel; after is 「动态 (2)」, the two system rows and no box, which meets the card's "the same comment appears once". The overview shows no comment. There are light and dark shots, plus a drawer shot.

    • The phone shot (after/phone-timeline-tab-light.png) still shows 「讨论 (4)」 with the comment, as the body says for today's phone.
  • Card items:

  • There is no Twenty-shaped code.

Landing note: #36208

#36208 is landing now, and it sets RecordCommentsInPanelContext to commentsSurfaceOffered (the panel or the phone page). From then on, this block on the phone's 动态 tab also drops comments.

Nit (does not block)

  • The non-embedded headers of RecordChatterPanel (the position: 'right' / 'bottom' card faces) keep the MessageSquare icon beside the new 动态 title. On the slotted 动态 tab the embedded timeline draws its own pulse icon, as the shot shows, so this applies only if an author places the block outside a tab.

L1 never replaces L2. Clause-②: no, so no L2 is owed. The seat lands it.

Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgXtcSJVbw8Gny1ERbP

维护者速读

这一轮合入了主干(包含手机评论页 #36208),合并没有冲突。现在手机上这个块也只列系统记录,评论在手机的评论页里,规则和电脑一致。另外按上一轮的小意见,标题改成「动态」时图标也换成了动态的图标。我读的部分没有发现问题。
L1 结论:通过。

席位核对 — ACCEPT (L1-c, delta) · repo:objectstack#1 · head abe8f8b5 · 2026-11-22T03:40Z

Delta read: 642e4af8..abe8f8b5, which is 3efc2936 plus the merge of main at abe8f8b5. My ACCEPT 7073224393 stands for everything outside it.

Gates:

  • CI is 43 success · 15 expected skip on abe8f8b5, and mergeable is clean. The one cancelled PR-body guards run is superseded by a successful run on the same head.
  • The branch is current with main.

The merge (--remerge-diff)

3efc2936

  • RecordChatterPanel picks TitleIcon = titleLabel ? Activity : MessageSquare, defined once and used in both header faces. Only a caller-named heading (this renderer's 动态 case) changes icon; every other caller keeps MessageSquare. This closes my nit.

L1 never replaces L2. Clause-②: no, so no L2 is owed.

Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Seat landing · 2026-11-22T03:43Z · #36193: while the comment panel is offered beside a record, a slotted page's 动态 block shows the system history only, with no comments, no comment box and no Comments-only filter, the same as the platform's own 动态 stream. With #36208 merged in, the phone follows the same rule now that it has a comment surface. When the caller names the title, the card uses the Activity icon.

Reviews:

Gates on this head (abe8f8b5):

  • check-governed-merges --pr 36221 reads NOT governed (168 changed lines).
  • K = 0 first-parent commits since the merge base; no translations/ or skills/ path.
  • All check-runs on their latest runs are success (42) or skipped (13); one cancelled PR-body guard run is superseded by a green run of the same job; mergeable clean.

The seat readies this PR and arms auto-merge in the same step. The PR carries Fixes #36193.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 22, 2026 03:43
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 22, 2026
Merged via the queue into main with commit 28ba01f Nov 22, 2026
59 of 60 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-u6a11n branch November 22, 2026 04:04
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 22, 2026
…he Chinese stream says 动态 (objectstack-ai#36317)

repo:objectstack#4 · os-project-manager ·
session_01FEkQ5oLLK7uoxp33riiBJL
<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XTRdLmK9YYgMSCJ7NH2PuUY)_
Fixes objectstack-ai#36148

Clause-②: no
Metadata-protocol: none
Ruling-ref: 7074372050

## 维护者速读

- 记录页「动态」里的筛选从「全部 · 活动 · 讨论 · 变更」改为「全部 · 事件 · 讨论 · 变更」,英文
Events;中文的空状态改为「暂无动态」,旧标题、无权限、加载失败和筛选读屏标签都改说「动态」。
- 按你 04:45 选的 A(「A 改叫「事件」」)执行;每个筛选装什么不变,「变更」仍只放带前后值的字段变更(objectstack-ai#30074 裁定 C)。
- 出错时最坏是某个语言的筛选或空状态字眼不对,不影响数据;只改语言包的值和一处英文兜底,可直接撤回。
- 无

## What changes

- `detail.streamActivity` (the stream's events chip): zh-Hans and
zh-Hant 「事件」, en `Events`, and each other pack's own word for events: de
`Ereignisse`, es `Eventos`, fr `Événements`, ja `イベント`, ko `이벤트`, pt-BR
`Eventos`, ru `События`, ar `الأحداث`. The row reads 「全部 · 事件 · 讨论 ·
变更」. What the chip holds is unchanged (ruling 6649643659 on objectstack-ai#30074,
option C).
- zh-Hans and zh-Hant only, the rest of the stream takes the tab's word:
`detail.noActivity` 「暂无动态」 / 「暫無動態」 (the panel's one empty state, drawn
under every chip), `detail.activity` 「动态」 / 「動態」 (now equal to
`detail.timeline`, as in the other nine packs),
`detail.activityAccessDenied`, `detail.activityLoadFailed` and
`detail.filterActivity` say 动态. The other packs keep those four values.
- `RecordActivityTimeline.tsx`: the events chip's in-code English
fallback follows the pack (`'Events'`); comments naming the chip row
updated there and in `recordTimelineStream.ts`.
- Values only: no key added, renamed or removed. zh-Hant matches what
`gen:zh-hant` writes (the generator left the pack unchanged after the
edit).

Read first, by risk:
1. `ui/packages/i18n/src/locales/zh-Hans.ts` — the six `detail` values.
2. `ui/packages/i18n/src/locales/en.ts` — `streamActivity: 'Events'`.
3. `ui/packages/i18n/src/__tests__/timelineFilterWording-36148.test.ts`
— the new pins.

Two-minute verification: `pnpm --dir ui exec vitest run
packages/i18n/src/__tests__/timelineFilterWording-36148.test.ts` from
the repo root; expect 16 passed.

## Tests

- New `timelineFilterWording-36148.test.ts` (i18n): in zh-Hans and
zh-Hant no string the stream draws (title, chips, empty, access-denied,
load-failed, filter label) says 活动 / 活動, and the chip, empty state and
title read 事件 / 暂无动态 / 动态; en names the chip Events; in every pack the
events chip differs from the tab word, the stream title and the
field-history chip.
- Old pins updated to the ruled words: `ActivityTimeline.i18n.test.tsx`
(zh empty state), `ActivityTimeline.remainingLiterals.i18n.test.tsx` (zh
card title, whole zh card text, chip group label),
`detail-landmark-aria-i18n-4645.test.tsx` (zh landmark name).
- Ablation (one-off, not kept): zh-Hans `streamActivity` set back to
「活动」 on disk after the commit: 2 failed / 14 passed ("no string the
stream draws says 活动", "the chip reads 事件 …"); restored with `git
checkout HEAD --`, 16 passed.

## Acceptance notes

- Done-when, measured live: hotcrm (18.6.0 server, `pnpm dev` on a fresh
database) with this branch's Console source (Vite, `DEV_PROXY_TARGET` to
the hotcrm server), a zh-CN browser, admin user, a seeded lead. The
record tab row reads 「线索 · 客户 · 活动 · 活动参与者 · 任务 · 营销活动成员 2 · 动态 2」 and
the stream heads 「动态 (2)」. Every 活动 on the page is one of hotcrm's own
labels (the `crm_event` tab and nav entry, 活动参与者, 营销活动成员, 销售活动). On this
page the 动态 tab is a slotted page's `record:chatter`, which since objectstack-ai#36221
lists the system history alone, so no chip row draws there; the chips
and empty state are pinned by the tests above rather than by this page.
- Out of the claim's declared surface (locale packs):
`ui/packages/plugin-detail/src/RecordActivityTimeline.tsx` (the en
fallback, named by the ruling),
`ui/packages/plugin-detail/src/recordTimelineStream.ts` (comments only)
and three plugin-detail pin tests. None is a seat-1 hot file.
- Out of the claim's declared surface, added at `dd26af31`:
`ui/packages/components/src/renderers/layout/containers.tsx`,
`KNOWN_LABEL_DICT` `Activity` 「活动」/「活動」 → 「动态」/「動態」, with
`@object-ui/components` in the changeset. Why: it is the page-tab
strip's own copy of the label, read ahead of the pack, so without it an
authored `Activity` tab kept 活动 and
`page-tabs-builtin-label-i18n-4645.test.tsx` went red on `12a825da`
(Test UI 4/16). Ruling 7074372050 item 3 sets an authored `Activity` tab
to 动态, the same word as `detail.timeline`. Claim amended on objectstack-ai#36148 for
this file and `RecordActivityTimeline.tsx`.
- Residual (stated, not a defect): in zh an `Activity` tab and the
`Activity stream` tab both read 动态. Both draw on one strip only when a
page author writes both labels. Measured: the synthesized record page
writes only `Activity stream` (`buildDefaultPageSchema.ts:1094`); no
authored `Activity` page tab in `examples/**` or hotcrm (the
`'Activity'` hits are an object label and a nav group). The equality is
the ruling's choice (item 3).
- Not changed, measured: `useDetailTranslation.ts` has no
`detail.streamActivity` default, so there is no second English fallback
for the chip.

## Verification

Readings at head `12a825da`, taken under `scripts/pm/os-verify-lock.sh`
(shared box).

<details><summary>Packages (green)</summary>

- `pnpm --dir ui exec vitest run packages/i18n/`: Test Files 106 passed
(106); Tests 1978 passed, 13 skipped.
- `pnpm --dir ui exec vitest run packages/plugin-detail/` before the pin
updates: 4 failed in the two `ActivityTimeline` i18n files (old zh
strings), 405 files passed; after the updates those two files: 20 passed
(20).
- `pnpm --filter @object-ui/i18n run type-check` (both projects): exit
0. `eslint` on the 10 touched TS files: 0 errors (one pre-existing
`react-refresh` warning at `RecordActivityTimeline.tsx:263`, an
untouched line).
- `node ui/packages/i18n/scripts/gen-zh-hant.mjs`: no file changed.

</details>

<details><summary>Derived gates</summary>

- `node scripts/pm/dispatch-gates.mjs --commands` derived 41 commands
for this diff; all 41 ran and exited 0, among them `check:nul-bytes`,
`check:published-files`, `check:cross-package-test-inputs`,
`check:test-source-alias`, `check:type-check-coverage`,
`check:type-check-debt` (0 entries re-measured, none above its number),
`check-sdui-manifest`, `check-adr-0087-registration --base origin/main`,
`check-empty-changeset --base origin/main`, `check-changeset-no-major
--base origin/main` and `pnpm --dir ui exec vitest run scripts/` (Test
Files 172 passed, 2 skipped; Tests 5122 passed, 2 skipped).
- `--ran` reconciliation: 41 derived, 41 run, 0 NOT-MEASURED, 0 UNRUN,
every line carrying its exit code.
- `node scripts/pm/overlap-check.mjs
--branch=claude/project-thread-r2g68m`: VERDICT clean against
origin/main and the three open PRs that share the locale files (objectstack-ai#36295,
objectstack-ai#36288, objectstack-ai#36223).
- Type-check lanes, `check:i18n` (its prerequisite is the CLI build
closure; this diff touches no `translations/*.generated.ts`) and the
repo-wide lint are CI's.

</details>

---
_Generated by [Claude
Code](https://claude.ai/code/session_01FEkQ5oHi42qJhgAop8CaLs)_

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01FEkQ5oHi42qJhgAop8CaLs

---------

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants