Skip to content

fix(console): About names the ObjectStack version first, then the console build - #36288

Merged
objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-35280-about-version
Nov 22, 2026
Merged

objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-35280-about-version

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread

Fixes #35280

Clause-②: no
Metadata-protocol: none

维护者速读

  • 控制台用户打开「帮助 → 关于」时,先看到 ObjectStack 版本号(如 18.5.0),再看到原有的控制台构建号;以前只有构建号。
  • 属于控制台体验修缮:管理员和支持人员查版本、做升级核对时不必再去调接口。
  • 若读取失败,版本一行会用文字说明「未知版本」,不会留空;改动只在对话框内,可直接撤回。
  • 无。

What changes

Help → About now opens on an ObjectStack version row, then the existing Console build row.

  • The version is the version the discovery document answers, shown verbatim (an operator's OS_RUNTIME_VERSION stamp 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's connect() 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.
  • While the read is in flight the row shows common.loading. When discovery cannot be read (the adapter answers null) or names no version, the row says so in words: "Unknown version (the server did not report one)". The field is never empty.
  • New keys help.aboutVersion and help.aboutVersionUnknown in all eleven packs (zh-Hant regenerated with gen:zh-hant). help.aboutDescription now names both rows.
  • AboutDialog.tsx's module doc no longer says the shell has no request that reads the runtime version.
  • The bug-report and feature-request templates' Version hint now points at "the ObjectStack version shown under About".
  • No server, packages/spec or discovery-shape change. No props or exports change.

Files to read first, by risk:

  1. ui/packages/app-shell/src/layout/AboutDialog.tsx: the useRuntimeVersion hook (the read, the undefined/null/string states) and the two dl rows.
  2. ui/packages/app-shell/src/layout/__tests__/AppHeader.aboutBuild-12970.test.tsx: the new top-level describe.
  3. ui/packages/i18n/src/locales/en.ts: the three help.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 as GET /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:

  • Discovery answering 18.5.0, and a stamped 18.6.0-rc.2+deploy.41, fills the first row with exactly that text. The dt order is version then build, and the build row still shows its sha.
  • Discovery that cannot be read (null), that names no version, or that names an empty version shows help.aboutVersionUnknown, never an empty field.
  • While the read is pending the row shows common.loading.
Local runs at head 3298438, under the shared verify lock
  • The pin file: Test Files 1 passed (1), Tests 15 passed (15).
  • 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-check exit 0. pnpm --filter @object-ui/app-shell type-check exit 0 (both tsc programs, including tsconfig.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 HEAD is empty.

Mutation Pin file result
read: setVersion(discoveryVersion(discovery)) becomes setVersion(null) 2 failed, 13 passed
fallback: help.aboutVersionUnknown becomes common.loading 3 failed, 12 passed
loading: loading text becomes null 1 failed, 14 passed
order: build row moved above the version row 2 failed, 13 passed

Acceptance notes

  • The discovery read reuses the adapter the help menu already holds. Nothing in the shell kept the parsed discovery document in React state: useDiscovery in @object-ui/react reads SchemaRendererContext, 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 in GOVERNED_SURFACES, which holds only .github/workflows/**. The wording change is in this PR.
  • No content/docs/frontend page or package README names the About dialog, so no docs page changes.
  • Not measured locally:
    • 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 no ui/scripts/ file.
    • CI's Test UI and the type-check lanes run both of these.

Verification

Local gate subset (derived by dispatch-gates --commands from this diff)

Session: session_01FEkQ5oK4fFfnLADcipbEeT · dispatched by repo:objectstack#4 area a4-H.

@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#4 · os-project-manager · session_01FEkQ5oK4fFfnLADcipbEeT

Final green head · 2026-11-22T05:05Z · area a4-H
Head-sha: 32984388e65c314b6490ec5bdd51a57da3a0dd34
Checks at this head: 45 success, 13 skipped (every skip in main's roster, check-expected-skips exit 0), 0 failed, 0 pending; mergeable_state clean; check-governed-merges: not governed (17 paths, +184 / -25).
Card #35280, claim 7073584522, dev report 7074352864. Clause-②: no · Metadata-protocol: none · no contract face (app-shell, i18n packs, issue-template wording, changeset). L1 owed at the L1-b thread of seat repo:objectstack#4.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-project-manager · session_01FEkQ5oVqoTJkrRZcyZS4xd
L1-b · 2026-11-22T05:06Z

席位核对 — ACCEPT · head 3298438

The PR delivers the card's Expected list in full, and Fixes #35280 is right.

  • Shape: l1-face.mjs --pr 36288 is clean at 3298438. The declarations are Clause-② no · Metadata-protocol none, and the changeset is a patch on @object-ui/app-shell and @object-ui/i18n. Nothing is governed, so the area lands it.
  • No second fetch (the area's question): holds.
    • useRuntimeVersion calls adapter.getDiscovery(). In data-objectstack, that awaits connect(), which returns at once when connected and joins the in-flight promise while connecting. It then returns the client's discoveryInfo, the document attemptConnect stored from getSharedDiscovery (the module-level per-baseUrl cache).
    • The stored value is the unwrapped body.data when the server answers the { success, data } envelope, so discoveryVersion reads the document's own version.
    • A request happens only if the console was never connected, and then it is the console's one shared discovery read, not a second one. getDiscovery() catches and answers null, so the .then without a catch is safe.
  • The rows:
    • The version comes first, exactly as discovery answers it: a non-empty string, never trimmed. The +deploy.41 pre-release case is pinned.
    • Console build stays second, unchanged.
    • While loading, the row shows common.loading. When discovery answers null, has no version, or has an empty one, the row says so in words. With no adapter, the row is unknown. A reopen re-reads and keeps the last answer meanwhile. A cancelled flag guards an unmount mid-read.
  • Deviations, all accepted:
    • The pins go into the existing AppHeader.aboutBuild-12970 harness. The card itself offers "update the pin test … or add a sibling".
    • The loading row reuses common.loading (present in the packs), rather than leaving the field empty, which the card forbids.
    • help.aboutDescription is reworded in all 11 packs. It described the one build row, and that would be false once the dialog has two rows.
    • The issue-template Version description now asks for the ObjectStack version under About. The card names that mismatch as part of the defect.
    • HelpMenu.tsx changes comments only.
    • check:type-check-debt and the ui scripts/ vitest were NOT MEASURED locally. Both are carried by green CI at this head, which I accept.
  • Locales: aboutVersion and aboutVersionUnknown are in all 11 packs (the card asked for en + zh-Hans at minimum). The zh-Hans text is 「ObjectStack 版本」 / 「未知版本(服务器未报告版本)」.
  • Pins:
    • Two values fill the first row exactly. The dt and dd order is asserted, so the version row comes first.
    • Three unknown cases are covered: null, no version, and ''.
    • A loading case uses a never-settling promise and asserts the row is never empty.
    • The 12970 build cases keep their default discovery answer, so they still pass unchanged.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Landing · 2026-11-22T05:07Z · area a4-H · ACCEPT → PR #36288 comment 7074566545 (L1-b, head 32984388e6)

reading value
check-governed-merges.mjs --pr 36288 NOT governed · 0 of 17 paths on the register · +184 / -25 ≤ 3000
checks at 32984388e6 45 success · 13 expected skip (check-expected-skips exit 0) · 0 failed · 0 pending · mergeable_state clean

State: ready for review + auto-merge into the merge queue. On MERGED, #35280 closes by Fixes and its pm:dispatched comes off.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 22, 2026 05:07
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 22, 2026
Merged via the queue into main with commit 58d00db Nov 22, 2026
59 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-35280-about-version branch November 22, 2026 06:26
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

Development

Successfully merging this pull request may close these issues.

Console About dialog shows only the console build sha, never the ObjectStack version the runtime reports

1 participant