Repository navigation
fix(i18n): the record timeline's events chip reads 事件 / Events, and the Chinese stream says 动态 - #36317
Conversation
…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>
…36148) Claude-Session: https://claude.ai/code/session_01FEkQ5oHi42qJhgAop8CaLs Co-Authored-By: Claude <noreply@anthropic.com>
…s 动态, as detail.activity does (#36148) Claude-Session: https://claude.ai/code/session_01FEkQ5oHi42qJhgAop8CaLs Co-Authored-By: Claude <noreply@anthropic.com>
|
repo:objectstack#4 · os-project-manager · session_01FEkQ5oLLK7uoxp33riiBJL Final green head for L1: |
|
repo:objectstack#4 · os-project-manager · session_01FEkQ5p6jXqGTcs8wueR5ma 席位核对 · L1-c · REWORK (paperwork only) · head
|
|
repo:objectstack#4 · os-project-manager · session_01FEkQ5p6jXqGTcs8wueR5ma 席位核对 · L1-c · ACCEPT (delta) · head
|
|
repo:objectstack#4 · os-project-manager · session_01FEkQ5oLLK7uoxp33riiBJL Landing · head
State: ready + auto-merge; on MERGED |
repo:objectstack#4 · os-project-manager · session_01FEkQ5oLLK7uoxp33riiBJL
Requested by Leehom · project thread
Fixes #36148
Clause-②: no
Metadata-protocol: none
Ruling-ref: 7074372050
维护者速读
What changes
detail.streamActivity(the stream's events chip): zh-Hans and zh-Hant 「事件」, enEvents, and each other pack's own word for events: deEreignisse, esEventos, frÉvénements, jaイベント, ko이벤트, pt-BREventos, 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).detail.noActivity「暂无动态」 / 「暫無動態」 (the panel's one empty state, drawn under every chip),detail.activity「动态」 / 「動態」 (now equal todetail.timeline, as in the other nine packs),detail.activityAccessDenied,detail.activityLoadFailedanddetail.filterActivitysay 动态. 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 inrecordTimelineStream.ts.gen:zh-hantwrites (the generator left the pack unchanged after the edit).Read first, by risk:
ui/packages/i18n/src/locales/zh-Hans.ts— the sixdetailvalues.ui/packages/i18n/src/locales/en.ts—streamActivity: 'Events'.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.tsfrom the repo root; expect 16 passed.Tests
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.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).streamActivityset back to 「活动」 on disk after the commit: 2 failed / 14 passed ("no string the stream draws says 活动", "the chip reads 事件 …"); restored withgit checkout HEAD --, 16 passed.Acceptance notes
pnpm devon a fresh database) with this branch's Console source (Vite,DEV_PROXY_TARGETto 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 (thecrm_eventtab and nav entry, 活动参与者, 营销活动成员, 销售活动). On this page the 动态 tab is a slotted page'srecord: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.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.dd26af31:ui/packages/components/src/renderers/layout/containers.tsx,KNOWN_LABEL_DICTActivity「活动」/「活動」 → 「动态」/「動態」, with@object-ui/componentsin the changeset. Why: it is the page-tab strip's own copy of the label, read ahead of the pack, so without it an authoredActivitytab kept 活动 andpage-tabs-builtin-label-i18n-4645.test.tsxwent red on12a825da(Test UI 4/16). Ruling 7074372050 item 3 sets an authoredActivitytab to 动态, the same word asdetail.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 andRecordActivityTimeline.tsx.Activitytab and theActivity streamtab both read 动态. Both draw on one strip only when a page author writes both labels. Measured: the synthesized record page writes onlyActivity stream(buildDefaultPageSchema.ts:1094); no authoredActivitypage tab inexamples/**or hotcrm (the'Activity'hits are an object label and a nav group). The equality is the ruling's choice (item 3).useDetailTranslation.tshas nodetail.streamActivitydefault, so there is no second English fallback for the chip.Verification
Readings at head
12a825da, taken underscripts/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 twoActivityTimelinei18n 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.eslinton the 10 touched TS files: 0 errors (one pre-existingreact-refreshwarning atRecordActivityTimeline.tsx:263, an untouched line).node ui/packages/i18n/scripts/gen-zh-hant.mjs: no file changed.Derived gates
node scripts/pm/dispatch-gates.mjs --commandsderived 41 commands for this diff; all 41 ran and exited 0, among themcheck: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/mainandpnpm --dir ui exec vitest run scripts/(Test Files 172 passed, 2 skipped; Tests 5122 passed, 2 skipped).--ranreconciliation: 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 (fix(approvals, list): a list cell waits for the record's approval lock before it edits, and a page's locks are read in one request (#35795) #36295, fix(console): About names the ObjectStack version first, then the console build #36288, fix(list): "Add group field" asks which field, and offers only fields that can group (#36204) #36223).check:i18n(its prerequisite is the CLI build closure; this diff touches notranslations/*.generated.ts) and the repo-wide lint are CI's.Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01FEkQ5oHi42qJhgAop8CaLs