Repository navigation
fix(console): About names the ObjectStack version first, then the console build - #36288
Conversation
Claude-Session: https://claude.ai/code/session_01FEkQ5oK4fFfnLADcipbEeT Co-authored-by: Claude <noreply@anthropic.com>
…plates name the version Claude-Session: https://claude.ai/code/session_01FEkQ5oK4fFfnLADcipbEeT Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#4 · os-project-manager · session_01FEkQ5oK4fFfnLADcipbEeT Final green head · 2026-11-22T05:05Z · area a4-H |
|
repo:objectstack#4 · os-project-manager · session_01FEkQ5oVqoTJkrRZcyZS4xd 席位核对 — ACCEPT · head 3298438The PR delivers the card's Expected list in full, and
|
|
repo:objectstack#4 · os-project-manager · session_01FEkQ5oK4fFfnLADcipbEeT Landing · 2026-11-22T05:07Z · area a4-H · ACCEPT → PR #36288 comment 7074566545 (L1-b, head
State: ready for review + auto-merge into the merge queue. On MERGED, #35280 closes by |
…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 Leehom · project thread
Fixes #35280
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
Help → About now opens on an ObjectStack version row, then the existing Console build row.
versionthe discovery document answers, shown verbatim (an operator'sOS_RUNTIME_VERSIONstamp included, per ruling A on mcp: the server states its authoring contract version, refuses a client on a different major, and serves the restriction profile #34774). It is read through the shell's adapter (useAdapter().getDiscovery()), which returns the document the adapter'sconnect()already holds from the console's one shared discovery read (getSharedDiscovery). Opening the dialog sends no new request, and no second version source is added.common.loading. When discovery cannot be read (the adapter answersnull) or names no version, the row says so in words: "Unknown version (the server did not report one)". The field is never empty.help.aboutVersionandhelp.aboutVersionUnknownin all eleven packs (zh-Hant regenerated withgen:zh-hant).help.aboutDescriptionnow names both rows.AboutDialog.tsx's module doc no longer says the shell has no request that reads the runtime version.packages/specor discovery-shape change. No props or exports change.Files to read first, by risk:
ui/packages/app-shell/src/layout/AboutDialog.tsx: theuseRuntimeVersionhook (the read, theundefined/null/string states) and the twodlrows.ui/packages/app-shell/src/layout/__tests__/AppHeader.aboutBuild-12970.test.tsx: the new top-level describe.ui/packages/i18n/src/locales/en.ts: the threehelp.about*lines (the other ten packs mirror them).Two-minute check: run
pnpm --dir ui exec vitest run packages/app-shell/src/layout/__tests__/AppHeader.aboutBuild-12970.test.tsx. You should see 15 tests pass. Or open Help → About in a running console: the first row is "ObjectStack version" with the same value asGET /api/v1/discovery, and "Console build" is the second row.Tests
The new pins are a top-level describe in the existing About harness,
AppHeader.aboutBuild-12970.test.tsx. They are not in a sibling file because AGENTS.md puts a new pin into a component's existing shared harness (ruling record 6583487846). The new cases check:18.5.0, and a stamped18.6.0-rc.2+deploy.41, fills the first row with exactly that text. Thedtorder is version then build, and the build row still shows its sha.null), that names no version, or that names an empty version showshelp.aboutVersionUnknown, never an empty field.common.loading.Local runs at head 3298438, under the shared verify lock
pnpm --dir ui exec vitest run packages/i18n/: Test Files 105 passed (105), Tests 1962 passed, 13 skipped. This covers the key-parity suites.pnpm --filter @object-ui/i18n type-checkexit 0.pnpm --filter @object-ui/app-shell type-checkexit 0 (bothtscprograms, includingtsconfig.test.json).Ablation, one mutation per leg, each landed and restored on disk by scripts/ablation-replace.mjs
Each mutation was restored and checked: blob equals HEAD 0aabb5984a63 and
git diff HEADis empty.setVersion(discoveryVersion(discovery))becomessetVersion(null)help.aboutVersionUnknownbecomescommon.loadingnullAcceptance notes
useDiscoveryin@object-ui/reactreadsSchemaRendererContext, which the console header does not sit under.adapter.getDiscovery()is the existing holder..github/ISSUE_TEMPLATE/**is not a governed surface: it has no row inGOVERNED_SURFACES, which holds only.github/workflows/**. The wording change is in this PR.content/docs/frontendpage or package README names the About dialog, so no docs page changes.pnpm check:type-check-debt: exit 3, PREREQUISITE NOT MET. Its closure build never got the verify lock (queue-timeout).pnpm --dir ui exec vitest run scripts/: lock queue-timeout, exit 99. This diff touches noui/scripts/file.Verification
Local gate subset (derived by dispatch-gates --commands from this diff)
pnpm check:changeset-fixed, exited 0. This includescheck:adr-0087-registration --base origin/main,check-empty-changeset,check-changeset-no-major,check:nul-bytes,check:cross-package-test-inputs,check:published-files,check:type-check-coverageandcheck:undeclared-dep-imports.uicheck:new-line-citations: 0 new citations.overlap-check: VERDICT clean (main and feat(record-page): the field area is one list in the side preview, on a phone and in the pinned left column (#36147) #36234 / fix(list): "Add group field" asks which field, and offers only fields that can group (#36204) #36223, which share the locale files, merge cleanly).Session: session_01FEkQ5oK4fFfnLADcipbEeT · dispatched by repo:objectstack#4 area a4-H.