Repository navigation
Commit ad4984f
fix: runtime messages and help text name the Setup paths Setup shows (#39330)
Fixes #39305
Clause-②: no
Metadata-protocol: none
## 维护者速读
-
用户能看到什么变化:作者看到的拒收提示、管理员看到的启动提示、登录报错和字段帮助说明,改为指向设置里现在真实存在的分组和入口(例如"审计与数据
→ 文件存储")。
- 为什么做:属于"设置重新分组"这项大工作的收尾,替作者和管理员解决按提示找不到入口的问题。
- 出错会怎样:只改提示文字,不改任何取值或行为;某条路径写错时,读者只会再次找不到入口,可直接撤回。
- 要你做什么:无
## What changes
Each runtime message and help text the card lists now names the group
and entry Setup shows on `main`, derived from `setup.app.ts`, the
contributing package's nav contribution (`setup-nav.contributions.ts`,
`connector-credentials-ui.ts` through `renamedFrom`) and
`translations/en.ts`:
| Location | Was | Now |
|:--|:--|:--|
| spec `stack.zod.ts` storage guidance, `authoring-key-lint.ts`, cli
`serve.ts` local-driver warning, docs `validating-metadata.mdx` quote |
Setup → Settings → Storage / Setup → Settings | Setup → Audit & Data →
File Storage |
| spec `stack.zod.ts` `sms` describe, plugin-auth phone-code refusal |
Setup → Settings → SMS Delivery | Setup → Notifications → SMS Channel |
| formula template refusal, objectql validation-message warning | Setup
→ Localization | Setup → Company Settings → Language & Region |
| platform-objects API key / user expiry help text (+ regenerated en
bundle) | Setup → Authentication → API keys | Setup → Login & Security →
Sign-in Methods → API keys |
| organizations membership boot refusal | Setup → Authentication →
Membership | Setup → Login & Security → Sign-in Methods → Membership |
| lint stdio-credential finding, driver-odata README | Setup → Connector
credentials | Setup → Integrations & Developer → Connector Credentials |
Two in-file comments that named a retired path were corrected in the
same files (`sys-user.object.ts` "People & Organization", `serve.ts`
"Setup → Datasources").
The API key lifetime path differs from the card's suggestion
(`nav_api_keys`): the Default/Maximum key lifetime settings are the "API
keys" section of the auth settings page (`auth.manifest.ts`, group
`api_keys`), which Setup shows as Sign-in Methods, not the API Keys
object list.
## Tests
- New pin `packages/spec/src/ui/setup-paths-in-runtime-text.pin.test.ts`
(spec `repo` project; spec already reads `packages/**` and `content/**`
as text, so no import edge and no new radius declaration). It lists
every location, asserts each names its expected `Setup → group → entry`
(group resolved from the contributor through `renamedFrom`, labels from
`en.ts`), and asserts every `Setup → …` path in a location starts with a
live group label and a live entry label. A control case proves it flags
every retired group name (group `keywords`), every former entry name
(entry `keywords`), the retired settings hub and a dangling path.
- Updated assertions: `template-currency-tenant-default.test.ts`,
`membership-policy-gate.test.ts`.
## Acceptance notes
Further runtime and help-text hits outside the card's files were found
by the sweep and are not changed here (named for a follow-up):
`packages/spec/src/system/sms-config.zod.ts` (refusal + describe, also
`packages/spec/docs/references/system/sms-config.md`),
`packages/spec/src/integration/connector.zod.ts` (two refusals),
`packages/spec/src/migrations/entries/semantic/18.*` (three),
`packages/services/service-automation/src/connector-credentials.ts`
(runtime message),
`packages/services/service-storage/src/multi-replica-local-root.ts`,
`packages/plugins/plugin-auth/src/auth-plugin.ts`,
`auth-settings-declared-defaults.ts`,
`organization-default-currency.ts`, `packages/platform-objects`
organization and business-unit timezone help ("Settings → Localization →
Default timezone"), `ui/packages/i18n/src/locales/en.ts` (two-factor
message), `examples/app-showcase/.env`, `docs/HARDENING.md`, and many
`content/docs/**` and `skills/**` pages.
## Verification
<details><summary>Pin, ablation and package tests (head
5dfd1fd)</summary>
- Pin: `pnpm --filter @objectstack/spec exec vitest run --project repo
src/ui/setup-paths-in-runtime-text.pin.test.ts` → 14 passed.
- Ablation: with the 13 changed source files restored to the merge base,
the same pin → 13 failed (every location), restored → green.
- `pnpm --filter` test: formula 2289 passed, organizations 356 passed,
lint 10355 passed, platform-objects 2352 passed; focused: objectql
`src/validation` 1615 passed, plugin-auth phone-SMS 18 passed, spec
`src/stack` + `authoring-key-lint` 1157 passed.
- typecheck: spec, formula, organizations, platform-objects (turbo, 63
tasks) green.
- `pnpm --filter @objectstack/spec check:generated` → all 14 artifacts
up to date; `node scripts/check-i18n-bundles.mjs --write` regenerated
the en objects bundle.
- `dispatch-gates --ran`: 131 derived, 124 run green, 7 NOT MEASURED
(exit 3 prerequisite: plugin-teardown-shape self-test needs a deeper
clone, spec check:skill-examples, check:dual-build-cjs-loads and
check:i18n-coverage need unbuilt dists; local timeout:
check:query-options-erasure, check:slot-lookup, check:type-check-debt).
CI runs them.
</details>
Read first: the pin (its location table and the two rules), then
`membership-policy-gate.ts` (reflowed banner lines).
Two-minute check: run the pin command above; expect 14 passed.
---
_Generated by [Claude
Code](https://claude.ai/code/session_01Utp6CbFgiyGToVRBFwedwF)_
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01Utp6CbFgiyGToVRBFwedwF
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 170f9f8 commit ad4984f
18 files changed
Lines changed: 217 additions & 28 deletions
File tree
- .changeset
- content/docs/deployment
- packages
- cli/src/commands
- drivers/driver-odata
- formula/src
- lint/src
- objectql/src/validation
- platform-objects/src
- apps/translations
- identity
- plugins
- organizations/src
- plugin-auth/src
- spec
- src
- data
- ui
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
395 | | - | |
| 395 | + | |
396 | 396 | | |
397 | 397 | | |
398 | 398 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3592 | 3592 | | |
3593 | 3593 | | |
3594 | 3594 | | |
3595 | | - | |
3596 | | - | |
| 3595 | + | |
| 3596 | + | |
| 3597 | + | |
3597 | 3598 | | |
3598 | 3599 | | |
3599 | 3600 | | |
| |||
5649 | 5650 | | |
5650 | 5651 | | |
5651 | 5652 | | |
5652 | | - | |
| 5653 | + | |
5653 | 5654 | | |
5654 | 5655 | | |
5655 | 5656 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | | - | |
| 80 | + | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
397 | | - | |
| 397 | + | |
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
| 146 | + | |
146 | 147 | | |
147 | 148 | | |
148 | 149 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
377 | | - | |
| 377 | + | |
378 | 378 | | |
379 | 379 | | |
380 | 380 | | |
| |||
1378 | 1378 | | |
1379 | 1379 | | |
1380 | 1380 | | |
1381 | | - | |
| 1381 | + | |
1382 | 1382 | | |
1383 | 1383 | | |
1384 | 1384 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| |||
0 commit comments