Repository navigation
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
Conversation
… 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
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgXV5qLuX94Bn6aqb4y
|
repo:objectstack#1 · os-sales · session_01L6bhgXtcSJVbw8Gny1ERbP 维护者速读改完以后,评论栏开着时,同一条评论在屏幕上只出现一次:页面里作者自己放的「讨论」块(现在显示在「动态」页签里)只列系统记录,没有评论、回复和评论框,标题从「讨论」改成「动态」,数字也不再算评论。截图里核对过:改之前写「讨论 (4)」,评论旁边还有评论栏;改之后是「动态 (2)」,两条系统记录。平台自己的「动态」、页签名字、作者整页自定义的页面都没有动。 席位核对 — ACCEPT (L1-c) · repo:objectstack#1 · head
|
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgXV5qLuX94Bn6aqb4y
|
repo:objectstack#1 · os-sales · session_01L6bhgXtcSJVbw8Gny1ERbP 维护者速读这一轮合入了主干(包含手机评论页 #36208),合并没有冲突。现在手机上这个块也只列系统记录,评论在手机的评论页里,规则和电脑一致。另外按上一轮的小意见,标题改成「动态」时图标也换成了动态的图标。我读的部分没有发现问题。 席位核对 — ACCEPT (L1-c, delta) · repo:objectstack#1 · head
|
|
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 (
The seat readies this PR and arms auto-merge in the same step. The PR carries |
…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>
Requested by Sales · project thread
repo:objectstack#1 · os-sales · session_01L6bhgXV5qLuX94Bn6aqb4y
Fixes #36193
What changes
renderers/record-chatter.tsx: whileRecordCommentsInPanelContextis on and the block is on the default/slotted page (useDefaultRecordPage()), arecord:chatter/record:discussionblock draws the system entries only: comments and replies filtered out beforeapplyFeedConfig, no composer (onAddCommentwithheld,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 linedetail.noActivity. The(N)count is the filtered items, so it leaves comments out.RecordChatterPanel.tsx: optionaltitleLabel/emptyLabelprops (default 「讨论」 / 「暂无评论」, unchanged for every other caller); a caller-named heading takes the stream'sActivityicon instead ofMessageSquare(L1-c nit, 3efc293).renderers/__tests__/record-chatter.commentsInPanel-36193.test.tsx(6).Not changed: the platform's own
record:activitystream, the 动态 tab's label (still 「动态」, no count), an authored (kind: 'full') page.Phone, after #36208 (merged into this branch at
abe8f8b5): #36208 setsRecordCommentsInPanelContextto 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)
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
record:chatter/ discussion slots / the comment panel: 14 files, 221 tests green.objectstack dev, console on Vite from this branch, zh-CN, 1440, dpr 2, one comment + one reply on Wayne Enterprises, a local uncommitted slottedcrm_accountpage withslots.discussion: [record:chatter]. Evidence in the project folderbuild-seat1/36193/:pr36136/timeline-tab-panel-open-{light,dark}.png: 「讨论 (4)」, the comment and 「1 条回复」 beside the panel.after/timeline-tab-panel-open-{light,dark}.png: 「动态 (2)」, two system rows, no comment box;after/overview-panel-open-*: no comment on the overview; tab row 「… 活动 5 动态」 unchanged.after/phone-timeline-tab-light.png: still 「讨论 (4)」 with the comment (no comment surface on the phone yet).overlap-check.mjsclean against main (c30ce97, after feat(record-page): on a phone the record's comments open as a page: threads first, replies inside, the box docked at the foot, a long press for actions (#36076) #36208) and open heads.Clause-②: no
Metadata-protocol: none
Human Minimum
packages/specholds no runtime logic. (not touched)pnpm lintpasses. (eslint on the three files: 0 errors)main, one pull request.packages/spectouched: n/a.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgXV5qLuX94Bn6aqb4y