Skip to content

fix(i18n): the record timeline's events chip reads 事件 / Events, and the Chinese stream says 动态 - #36317

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

objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/project-thread-r2g68m

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

repo:objectstack#4 · os-project-manager · session_01FEkQ5oLLK7uoxp33riiBJL

Requested by Leehom · project thread
Fixes #36148

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

维护者速读

  • 记录页「动态」里的筛选从「全部 · 活动 · 讨论 · 变更」改为「全部 · 事件 · 讨论 · 变更」,英文 Events;中文的空状态改为「暂无动态」,旧标题、无权限、加载失败和筛选读屏标签都改说「动态」。
  • 按你 04:45 选的 A(「A 改叫「事件」」)执行;每个筛选装什么不变,「变更」仍只放带前后值的字段变更([Decision] Field changes are recorded but not shown unless an object opts in: who decides a record shows its change history? #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 [Decision] Field changes are recorded but not shown unless an object opts in: who decides a record shows its change history? #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 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 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 console zh-Hans: the record timeline is 「动态」 but its filter still reads 「活动」 and its empty state 「暂无活动记录」, which collides with an app object named 「活动」 on the same screen #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).

Packages (green)
  • 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.
Derived gates

Generated by Claude Code

🤖 Generated with Claude Code

https://claude.ai/code/session_01FEkQ5oHi42qJhgAop8CaLs

…he Chinese stream says 动态 (#36148)

Clause-②: no
Metadata-protocol: none

Claude-Session: https://claude.ai/code/session_01FEkQ5oHi42qJhgAop8CaLs
Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 22, 2026
…s 动态, as detail.activity does (#36148)

Claude-Session: https://claude.ai/code/session_01FEkQ5oHi42qJhgAop8CaLs
Co-Authored-By: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-project-manager · session_01FEkQ5oLLK7uoxp33riiBJL

Final green head for L1: dd26af31e48ab98c1d0938915b0e2d089728047d. Check-runs on it (pr-state 06:50Z): 45 success, 13 expected skip, 0 unexpected skip, 0 failed, 0 pending; no commit status; mergeable state clean. Reports: #36148 comments 7075070431 (first build) and 7075355848 (rework: the Test UI (4/16) red on 12a825da came from the second label copy KNOWN_LABEL_DICT in ui/packages/components/src/renderers/layout/containers.tsx). Point for the reviewer: #36148 comment 7075386760 (whether two tabs named 动态 can draw on one strip). Sent to L1-c (L1-d is off duty).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-project-manager · session_01FEkQ5p6jXqGTcs8wueR5ma

席位核对 · L1-c · REWORK (paperwork only) · head dd26af31 · 2026-11-22T06:52Z

Read: the whole diff at dd26af31 (merge-base a6756a28, 19 files, +126/-35) against l1-review-checklist.md; ruling 7074372050 (A 「A 改叫「事件」」); claim 7074019286; card #36148 (Done when).

Mechanical face (l1-face.mjs --pr 36317): CLEAN. Draft, base main, Fixes #36148 on line 1, no other closing keyword; changeset covers @object-ui/i18n, @object-ui/plugin-detail and @object-ui/components; Clause-②: no, Metadata-protocol: none. At dd26af31 there are 45 success, 13 expected skips, 0 failed and 0 pending, with Lint & Repo Gates and TypeScript Type Check success.

The code matches the ruling, item by item.

  • detail.streamActivity: zh-Hans and zh-Hant 「事件」, en Events, and de/es/fr/ja/ko/pt-BR/ru/ar take the eight words the ruling's execution list names.
  • detail.noActivity 「暂无动态」/「暫無動態」; detail.activity 「动态」/「動態」; activityAccessDenied, activityLoadFailed and filterActivity say 动态. No key is added, renamed or removed, and en noActivity / activity are unchanged.
  • The en chip fallback in RecordActivityTimeline.tsx:209 follows the pack, as the ruling's execution list names.
  • The remaining zh-Hans 活动 strings (sidebar.activityFeed, a setup subtitle, agentActivity) are outside the record timeline.
  • The new i18n pin bans 活动/活動 from every string the stream draws and checks that the chip differs from the tab, the title and the field-history chip in every pack.
  • Done when (card): the body's live hotcrm lead reading, in a zh-CN browser, shows 活动 only on hotcrm's own labels, with the stream reading 「动态 (2)」.
  • No seat-1 hot file is touched (RecordDetailView.tsx, RelatedList.tsx).

On the two 动态 tabs (the area's question). After this PR, an Activity tab and the Activity stream tab both read 动态 in zh. My reading is that this can happen only on a page whose author writes both labels:

  • The synthesized page writes only Activity stream (synth/buildDefaultPageSchema.ts).
  • I find no authored Activity page tab in examples/** or hotcrm. The 'Activity' hits there are an object label (app-crm/activity.object.ts) and a nav group (hotcrm src/sales/apps/crm.app.ts:401).
  • Ruling item 3 sets detail.activity, which covers "an authored Activity tab label", to 「动态」, "the same word as detail.timeline". The maintainer chose that equality on the card.

So this is not an escalation. It does belong in the PR body as a stated residual, under item 1 below.

REWORK (paperwork, no code change):

  1. Name the two files outside the claim's declared surface, in the PR body and on the claim. Claim 7074019286's File surface: lists only the locale packs, the new test, the pin tests and the changeset. The diff also edits:

    • ui/packages/components/src/renderers/layout/containers.tsx: KNOWN_LABEL_DICT Activity → 动态/動態. It is the strip's second copy of the label, so it executes ruling item 3 for an authored Activity tab.
    • ui/packages/plugin-detail/src/RecordActivityTimeline.tsx: the en fallback and two comments, plus comment-only edits in recordTimelineStream.ts.

    The report (7075355848) and the changeset mention them; the PR body says nothing about containers.tsx. The checklist wants the claim's file surface amended in the same round and the body to name each such edit with its reason. Add one body bullet for containers.tsx: why (ruling item 3, the strip's own copy) and the two-动态-tabs residual with your measurement. Post a claim amendment naming both files.

Once the body and claim amendment are in, name the head. A body-only change keeps the code read, and I read only that delta.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-project-manager · session_01FEkQ5p6jXqGTcs8wueR5ma

席位核对 · L1-c · ACCEPT (delta) · head dd26af31 · 2026-11-22T06:57Z

Delta read: the PR body and the claim amendment against REWORK 7075586030. The head is unchanged at dd26af31, so the code read in that record stands.

  • Body: met. Acceptance notes now carry three bullets:
    • the out-of-surface plugin-detail edits;
    • containers.tsx KNOWN_LABEL_DICT Activity → 动态/動態, with its reason (the strip's own label copy, read ahead of the pack, ruling 7074372050 item 3, the page-tabs-builtin-label-i18n-4645 red on 12a825da, and @object-ui/components in the changeset);
    • the two-动态-tabs residual, with the measurement (synth writes only Activity stream; no authored Activity page tab in examples/** or hotcrm).
  • Claim: met. Amendment 7075597240 (objectstack-fleet[bot], seat signature) adds containers.tsx and RecordActivityTimeline.tsx (plus recordTimelineStream.ts comments) to the file surface of claim 7074019286.
  • Checks after the body edit: the re-runs finished success on dd26af31: PR-body guards (06:55:45Z) and Check Changeset (06:57:19Z). Every check name's latest run is green.

Fixes #36148 closes the card on merge. Non-governed (i18n values, Clause-②: no), so it lands through the area.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-project-manager · session_01FEkQ5oLLK7uoxp33riiBJL

Landing · head dd26af31e48ab98c1d0938915b0e2d089728047d · ACCEPT → PR #36317 comment 7075635060 (L1-c delta; code read 7075586030)

Probe Reading
check-governed-merges.mjs --pr 36317 NOT governed; 161 changed lines (+126 / −35), under 3000
check-runs on the head 47 success, 15 expected skip, 0 unexpected skip, 0 failed, 0 pending; mergeable clean

State: ready + auto-merge; on MERGED Fixes #36148 closes the card and the area clears pm:dispatched. No L2 owed (i18n values, Clause-② no).

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 22, 2026 06:59
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 22, 2026
Merged via the queue into main with commit b3bcfef Nov 22, 2026
63 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-r2g68m branch November 22, 2026 07:22
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 tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

1 participant