You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 58d00db
Browse filesBrowse the repository at this point in the historyBrowse files
fix(console): About names the ObjectStack version first, then the console build (#36288)
<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1X6okWxYPWAsooBsJoAhnT1u)_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 #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`.
<details><summary>Local runs at head 3298438, under the shared verify
lock</summary>
- 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`).
</details>
<details><summary>Ablation, one mutation per leg, each landed and
restored on disk by scripts/ablation-replace.mjs</summary>
Each mutation was restored and checked: blob equals HEAD 0aabb59
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 |
</details>
## 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
<details><summary>Local gate subset (derived by dispatch-gates
--commands from this diff)</summary>
- 46 of the 48 derived commands, plus `pnpm check:changeset-fixed`,
exited 0. This includes `check: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-coverage` and
`check:undeclared-dep-imports`.
- Two commands were not measured, both listed above.
- `ui` `check:new-line-citations`: 0 new citations.
- `overlap-check`: VERDICT clean (main and #36234 / #36223, which share
the locale files, merge cleanly).
</details>
Session: session_01FEkQ5oK4fFfnLADcipbEeT · dispatched by
repo:objectstack#4 area a4-H.
---------
Co-authored-by: Claude <noreply@anthropic.com>
fix(console): the About dialog names the ObjectStack version first, then the console build
7
+
8
+
Clause-②: no
9
+
Metadata-protocol: none
10
+
11
+
Help → About showed one row, the console build (a git short sha), and nowhere the ObjectStack version. The dialog now opens on an **ObjectStack version** row filled with exactly the `version` the server's discovery document answers (an operator's `OS_RUNTIME_VERSION` stamp where one is set), read through the shell's adapter from the discovery document the console already holds, so opening it sends no new request. **Console build** stays as the second row, so a deployment can still be traced to a commit. While the read is in flight the version row says it is loading; when discovery cannot be read or names no version, it says so in words ("Unknown version (the server did not report one)"), never an empty field.
12
+
13
+
New locale keys `help.aboutVersion` and `help.aboutVersionUnknown` in all eleven packs, and `help.aboutDescription` now names both rows. No props or exports change.
0 commit comments