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 f00ab66
Browse filesBrowse the repository at this point in the historyBrowse files
fix: remaining runtime, help and locale strings name the Setup path Setup shows (#39373)
Fixes#39332
Clause-②: no
Metadata-protocol: none
## 维护者速读
-
用户能看到什么变化:作者看到的短信、连接器凭据拒收提示,管理员看到的启动提示、文件存储报错、接口密钥期限报错、字段帮助说明和双重验证提示,改为指向设置里现在真实存在的分组和入口,十种翻译语言同步改好。
- 为什么做:属于"设置重新分组"这项大工作的最后一批收尾,替作者和管理员解决按提示找不到入口的问题。
- 出错会怎样:只改提示文字,不改任何取值、错误码或行为;某条路径写错时,读者只会再次找不到入口,可直接撤回。
- 要你做什么:无
## What changes
Every remaining location the card lists (plus the scope addition) now
names the group and entry Setup shows on `main`. Each target was derived
the way the precedent PR derived it: the entry's contributing package
(`setup-nav.contributions.ts`, `connector-credentials-ui.ts`, through
`renamedFrom` in `setup.app.ts`) and the labels of the `setup:` block of
`translations/en.ts`.
| Location | Was | Now |
|:--|:--|:--|
| spec `sms-config.zod.ts` (both refusals, `retries` describe, header) +
regenerated `docs/references/system/sms-config.md` | Setup → Settings →
SMS Delivery | Setup → Notifications → SMS Channel (now the same answer
as the `stack.zod.ts` `sms` describe) |
| spec `connector.zod.ts` (entry credential guidance, URL-credential
refusal), service-automation `missingCredentialReason` | Setup →
Connector credentials | Setup → Integrations & Developer → Connector
Credentials |
| service-storage multi-replica local-storage refusal | Setup → Settings
→ File Storage | Setup → Audit & Data → File Storage |
| plugin-auth live-status and declared-default boot warnings (+ two
comments) | Setup → Authentication | Setup → Login & Security → Sign-in
Methods |
| plugin-auth new-organization currency lines | Setup → Localization (→
Default currency) | Setup → Company Settings → Language & Region (→
Default currency) |
| core API-key ceiling refusal | "the Authentication API key policy's
Maximum key lifetime is N days" | "the Maximum key lifetime is N days
(Setup → Login & Security → Sign-in Methods → API keys)"; code, status
and the pinned "Maximum key lifetime is N days" substring unchanged |
| platform-objects `sys_organization` / `sys_business_unit` timezone
help, `sys_work_calendar` timezone help | Settings → Localization (→
Default timezone) | Setup → Company Settings → Language & Region (→
Default timezone) |
| platform-objects `sys_organization` name help, retired `require_mfa`
help (same file, same defect class) | Settings → Branding / Settings →
Access policy | Setup → Company Settings → Branding / Setup → Login &
Security → Access policy |
| `en.objects.generated.ts` | regenerated with `check-i18n-bundles
--write` | |
| 10 translated `*.objects.generated.ts` (ar, de, es-ES, fr, ja-JP, ko,
pt-BR, ru, zh-CN, zh-Hant) | old API-key, timezone, work-calendar,
branding and access-policy paths | the same paths in each locale's own
Setup app, group and entry labels, read from its own
`translations/LOCALE.ts` `setup:` block (no label invented; Arabic keeps
its left arrow) |
| ui i18n `auth.remediation.mfa.unavailable` (en, zh-Hans, zh-Hant via
`gen:zh-hant`) | Setup → Authentication / 设置 → 认证 | Setup → Login &
Security → Sign-in Methods / 系统设置 → 登录与安全 → 登录方式 (two-factor turns on
with that page's multi-factor requirement) |
The extract tool does not retranslate: merge mode keeps every translated
value, so the translated path segments were edited by hand as values,
with structure untouched (`check:i18n` green).
**Pin**
(`packages/spec/src/ui/setup-paths-in-runtime-text.pin.test.ts`):
- `liveLabels()` reads only the `setup:` app block, so Account and
Studio groups ("Developer", "AI") no longer count as Setup groups; a new
case asserts that.
- `startsWithLabel` now documents its rule (whole label, then end or
punctuation; scripts without word spaces only get the prefix check).
- `LOCATIONS` gains 24 rows: the 11 runtime/help source files, the 10
translated bundles (locale-aware: that bundle's own Setup app label,
group and entry labels and arrow), and the three ui packs (`only`
restricts a row to the marked line, because ui `en.ts` still names other
paths; see Acceptance notes). The en bundle row now requires the
localization and access-policy entries too.
- A localized control case: zh-CN and ar retired paths fail, live ones
pass.
## Tests
<details><summary>Pin, ablation (head 1c0e8df)</summary>
- Pin at head: `Tests 40 passed (40)`.
- Ablation: the 25 non-test files this PR changes restored to merge-base
`850d240b8` text (`git restore --source`; old phrases landed in 10 files
by `git grep -c`), pin rerun: `Tests 25 failed | 15 passed (40)`: every
new row plus the en-bundle row fails, the 12 untouched precedent rows
and 3 non-row cases pass. Restored with `git checkout HEAD`; `git diff
HEAD` and `git status --porcelain` empty afterwards.
</details>
<details><summary>Package suites and typecheck</summary>
- `turbo run typecheck --only` for spec, core, platform-objects,
plugin-auth, service-automation, service-storage: `6 successful`.
- platform-objects `test`: 132 files / 2352 passed. core `test`: 163 /
3855 passed. service-storage `test`: 88 / 1746 passed, 1 skipped.
- service-automation `connector-credential-source.test.ts`: 24 passed.
plugin-auth `auth-settings-live-status.test.ts` +
`organization-created-default-currency.test.ts`: 48 passed.
- spec `src/stack-email-sms.test.ts src/integration src/system
src/stack.test.ts`: 101 files / 3859 passed (one stale
`toContain('Settings')` assertion in stack-email-sms updated to the new
path).
- ui (from the ui root):
`packages/app-shell/.../RemediationOverlay.enrollUnavailable-30295.test.tsx
packages/i18n/`: 111 files / 1878 passed, 13 skipped.
- spec `build` + `check:generated`: all 14 artifacts up to date after
`gen:docs`.
</details>
<details><summary>Derived gates</summary>
`dispatch-gates --ran`: 111 derived, 103 run with exit 0, 8 NOT MEASURED
(whole-repo eslint/tsc ratchets past the local timeout, a shallow-clone
prerequisite of a self-test, and two build-state prerequisites of this
worktree), 0 unrun. `check:i18n`, `check:i18n-stale-fill`,
`check:cross-package-test-inputs`, `check:doc-authoring`,
`check:nul-bytes`, `check:published-files`, spec `check:api-surface`
exit 0. CI runs the full set.
</details>
## Acceptance notes
- Read first: (1) `setup-paths-in-runtime-text.pin.test.ts` (the
`liveLabels` block slice and the locale rows); (2)
`core/src/security/api-key.ts` (a refusal message reworded around a
substring another test pins); (3) one translated bundle, e.g.
`zh-CN.objects.generated.ts`.
- Widened inside claimed files: the `sys_organization` name and retired
multi-factor help (same file, same defect class) and the plugin-auth
`Setup → Sessions` comment.
- Phrasing rule met: where a path ran straight into a word ("… Sign-in
Methods states …"), the text was reworded so the path ends at
punctuation, which the pin's `startsWithLabel` requires.
- Not changed, outside the claim (reported to the seat): ui `en.ts`
still names `Setup → Permission Set Assignment`, `Setup → AI &
Embedder`, `Setup → Users` and a `Settings → Localization` timezone
notice; `service-sms` `capability-arg.ts` says "Settings → SMS Delivery
→ Provider"; `sys-exchange-rate.object.ts` says "Localization → Default
currency"; the es-ES and ja-JP business-unit timezone help is an old
translation that names no path.
- Left as written per the card: v18 migration entries, `content/docs/**`
prose, `skills/**`, `docs/HARDENING.md`, `examples/app-showcase/.env`.
## Verification
Two minutes: `pnpm --filter @objectstack/spec exec vitest run --project
repo src/ui/setup-paths-in-runtime-text.pin.test.ts` should print `Tests
40 passed (40)`.
---
_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>
fix: the remaining runtime, help and console strings name the Setup path Setup shows
12
+
13
+
Clause-②: no
14
+
Metadata-protocol: none
15
+
16
+
Who sees it: an author reading a refusal, an administrator reading a boot line, a degraded connector, a field's help text or the two-factor enrollment message, in English and in the ten translated languages. Setup was regrouped, and these strings still sent the reader to a group or page that no longer exists. Each now names the group and entry Setup shows:
17
+
18
+
-**SMS provider** (`@objectstack/spec`, the stack `sms` block refusals and the `retries` description): Setup → Notifications → SMS Channel, was Setup → Settings → SMS Delivery. One stack definition now gives one answer; the `sms` key description already said SMS Channel.
19
+
-**Connector credentials** (`@objectstack/spec` connector-entry credential refusals, the `@objectstack/service-automation` degraded reason of an instance whose credential is not set): Setup → Integrations & Developer → Connector Credentials, was Setup → Connector credentials.
20
+
-**File storage** (`@objectstack/service-storage`, the multi-replica local-storage refusal): Setup → Audit & Data → File Storage, was Setup → Settings → File Storage.
21
+
-**Auth settings page** (`@objectstack/plugin-auth`, the two boot warnings about the page's live status and declared defaults): Setup → Login & Security → Sign-in Methods, was Setup → Authentication.
22
+
-**Default currency** (`@objectstack/plugin-auth`, the new-organization currency lines): Setup → Company Settings → Language & Region, was Setup → Localization.
23
+
-**API key lifetime ceiling** (`@objectstack/core`, the `400` refusal of an `expires_at` past the policy's maximum): names Setup → Login & Security → Sign-in Methods → API keys, was "the Authentication API key policy". The sentence still reads "Maximum key lifetime is N days"; the code and status do not move.
24
+
-**Field help** (`@objectstack/platform-objects`, `sys_organization`, `sys_business_unit`, `sys_work_calendar`): the timezone help names Setup → Company Settings → Language & Region → Default timezone (was Settings → Localization), the organization name help names Setup → Company Settings → Branding (was Settings → Branding), and the retired multi-factor flag names Setup → Login & Security → Access policy (was Settings → Access policy). The ten translated object bundles carry the same paths in each language's own Setup labels, as do their API-key help texts.
25
+
-**Two-factor enrollment** (`@object-ui/i18n`, en, zh-Hans, zh-Hant): an administrator turns two-factor on under Setup → Login & Security → Sign-in Methods, was Setup → Authentication.
26
+
27
+
Only text changes; no accepted value, code or status moves.
helpText: "اتركه فارغًا لاستخدام مدة الصلاحية الافتراضية المضبوطة في الإعداد ← المصادقة ← مفاتيح API (مدة صلاحية المفتاح الافتراضية، 90 يومًا ما لم تُغيَّر). يُرفض أي تاريخ يتجاوز الحد الأقصى لمدة صلاحية المفتاح هناك."
377
+
helpText: "اتركه فارغًا لاستخدام مدة الصلاحية الافتراضية المضبوطة في الإعداد ← تسجيل الدخول والأمان ← طرق تسجيل الدخول ← مفاتيح API (مدة صلاحية المفتاح الافتراضية، 90 يومًا ما لم تُغيَّر). يُرفض أي تاريخ يتجاوز الحد الأقصى لمدة صلاحية المفتاح هناك."
help: "الاسم الخاص بالمؤسسة. غيّره عبر «إعادة تسمية المؤسسة» أعلى هذا السجل. اسم المنتج الذي تعرضه وحدة التحكم إعداد مختلف، يُضبط في الإعدادات ← العلامة التجارية."
681
+
help: "الاسم الخاص بالمؤسسة. غيّره عبر «إعادة تسمية المؤسسة» أعلى هذا السجل. اسم المنتج الذي تعرضه وحدة التحكم إعداد مختلف، يُضبط في الإعداد ← إعدادات الشركة ← العلامة التجارية."
label: "طلب المصادقة متعددة العوامل (أُوقف العمل به)",
696
-
help: "أُوقف العمل به. اضبط متطلب المصادقة متعددة العوامل لهذه المؤسسة في الإعدادات ← سياسة الوصول. القيمة التي كانت مفعّلة هنا نُقلت إلى هناك بوصفها «الجميع» ثم مُسحت."
696
+
help: "أُوقف العمل به. اضبط متطلب المصادقة متعددة العوامل لهذه المؤسسة في الإعداد ← تسجيل الدخول والأمان ← سياسة الوصول. القيمة التي كانت مفعّلة هنا نُقلت إلى هناك بوصفها «الجميع» ثم مُسحت."
697
697
},
698
698
timezone: {
699
699
label: "المنطقة الزمنية",
700
-
help: "منطقة زمنية بصيغة IANA (مثل UTC أو Asia/Shanghai)، تُحفظ كقيمة افتراضية جذرية لوحدات الأعمال التي ليست لها منطقة خاصة بها. لا تغيّر حاليًا أي حساب للتواريخ: تستخدم الصيغ والتقارير والتواريخ المعروضة الإعدادات ← الترجمة والإعدادات المحلية ← المنطقة الزمنية الافتراضية."
700
+
help: "منطقة زمنية بصيغة IANA (مثل UTC أو Asia/Shanghai)، تُحفظ كقيمة افتراضية جذرية لوحدات الأعمال التي ليست لها منطقة خاصة بها. لا تغيّر حاليًا أي حساب للتواريخ: تستخدم الصيغ والتقارير والتواريخ المعروضة الإعداد ← إعدادات الشركة ← اللغة والمنطقة ← المنطقة الزمنية الافتراضية."
help: "منطقة زمنية بصيغة IANA (مثل Asia/Shanghai) تُحفظ لهذه الوحدة؛ اتركها فارغة لتأخذ منطقة الوحدة الأم، ثم منطقة المؤسسة. لا تغيّر حاليًا أي حساب للتواريخ: تستخدم الصيغ والتقارير والتواريخ المعروضة الإعدادات ← الترجمة والإعدادات المحلية ← المنطقة الزمنية الافتراضية."
1187
+
help: "منطقة زمنية بصيغة IANA (مثل Asia/Shanghai) تُحفظ لهذه الوحدة؛ اتركها فارغة لتأخذ منطقة الوحدة الأم، ثم منطقة المؤسسة. لا تغيّر حاليًا أي حساب للتواريخ: تستخدم الصيغ والتقارير والتواريخ المعروضة الإعداد ← إعدادات الشركة ← اللغة والمنطقة ← المنطقة الزمنية الافتراضية."
description: "أنشئ مفتاحًا لبرنامج نصي أو تكامل. يعمل المفتاح باسمك، وبصلاحيات وصولك، في المؤسسة التي تعمل فيها الآن.",
1379
1379
params: {
1380
1380
expires_at: {
1381
-
helpText: "اتركه فارغًا لاستخدام مدة الصلاحية الافتراضية المضبوطة في الإعداد ← المصادقة ← مفاتيح API (مدة صلاحية المفتاح الافتراضية، 90 يومًا ما لم تُغيَّر). يُرفض أي تاريخ يتجاوز الحد الأقصى لمدة صلاحية المفتاح هناك."
1381
+
helpText: "اتركه فارغًا لاستخدام مدة الصلاحية الافتراضية المضبوطة في الإعداد ← تسجيل الدخول والأمان ← طرق تسجيل الدخول ← مفاتيح API (مدة صلاحية المفتاح الافتراضية، 90 يومًا ما لم تُغيَّر). يُرفض أي تاريخ يتجاوز الحد الأقصى لمدة صلاحية المفتاح هناك."
help: "منطقة IANA الزمنية التي تُحسب بها فترات العمل، مثل Asia/Shanghai. يُفتح نموذج الإنشاء على المنطقة الزمنية للمؤسسة (الإعدادات ← الترجمة والإعدادات المحلية)، وأي إنشاء يتركها فارغة يأخذ المنطقة نفسها."
4592
+
help: "منطقة IANA الزمنية التي تُحسب بها فترات العمل، مثل Asia/Shanghai. يُفتح نموذج الإنشاء على المنطقة الزمنية للمؤسسة (الإعداد ← إعدادات الشركة ← اللغة والمنطقة)، وأي إنشاء يتركها فارغة يأخذ المنطقة نفسها."
helpText: "Leer lassen für die Standardlaufzeit unter „Setup → Authentifizierung → API-Schlüssel“ (Standardlaufzeit für Schlüssel, 90 Tage, sofern nicht geändert). Ein Datum nach der dort festgelegten maximalen Schlüssellaufzeit wird abgelehnt."
377
+
helpText: "Leer lassen für die Standardlaufzeit unter „Setup → Anmeldung & Sicherheit → Anmeldemethoden → API-Schlüssel“ (Standardlaufzeit für Schlüssel, 90 Tage, sofern nicht geändert). Ein Datum nach der dort festgelegten maximalen Schlüssellaufzeit wird abgelehnt."
help: "Der eigene Name der Organisation. Ändern Sie ihn mit „Organisation umbenennen“ oben in diesem Datensatz. Der Produktname, den die Konsole anzeigt, ist eine andere Einstellung unter „Einstellungen → Branding“."
681
+
help: "Der eigene Name der Organisation. Ändern Sie ihn mit „Organisation umbenennen“ oben in diesem Datensatz. Der Produktname, den die Konsole anzeigt, ist eine andere Einstellung unter „Setup → Unternehmenseinstellungen → Branding“."
help: "Eingestellt. Legen Sie die Mehrfaktor-Anforderung dieser Organisation unter „Einstellungen → Zugriffsrichtlinie“ fest. Ein hier aktivierter Wert wurde dorthin als „alle“ übertragen und gelöscht."
696
+
help: "Eingestellt. Legen Sie die Mehrfaktor-Anforderung dieser Organisation unter „Setup → Anmeldung & Sicherheit → Zugriffsrichtlinie“ fest. Ein hier aktivierter Wert wurde dorthin als „alle“ übertragen und gelöscht."
697
697
},
698
698
timezone: {
699
699
label: "Zeitzone",
700
-
help: "IANA-Zeitzone (z. B. UTC, Asia/Shanghai), gespeichert als oberster Standard für Geschäftseinheiten ohne eigene Zeitzone. Sie ändert derzeit keine Datumsberechnung: Formeln, Berichte und angezeigte Daten verwenden „Einstellungen → Lokalisierung → Standardzeitzone“."
700
+
help: "IANA-Zeitzone (z. B. UTC, Asia/Shanghai), gespeichert als oberster Standard für Geschäftseinheiten ohne eigene Zeitzone. Sie ändert derzeit keine Datumsberechnung: Formeln, Berichte und angezeigte Daten verwenden „Setup → Unternehmenseinstellungen → Sprache und Region → Standardzeitzone“."
help: "IANA-Zeitzone (z. B. Asia/Shanghai) für diese Einheit; leer lassen, um die der übergeordneten Einheit und danach die der Organisation zu übernehmen. Sie ändert derzeit keine Datumsberechnung: Formeln, Berichte und angezeigte Daten verwenden „Einstellungen → Lokalisierung → Standardzeitzone“."
1187
+
help: "IANA-Zeitzone (z. B. Asia/Shanghai) für diese Einheit; leer lassen, um die der übergeordneten Einheit und danach die der Organisation zu übernehmen. Sie ändert derzeit keine Datumsberechnung: Formeln, Berichte und angezeigte Daten verwenden „Setup → Unternehmenseinstellungen → Sprache und Region → Standardzeitzone“."
description: "Legen Sie einen Schlüssel für ein Skript oder eine Integration an. Der Schlüssel handelt als Sie, mit Ihrem Zugriff, in der Organisation, in der Sie gerade arbeiten.",
1379
1379
params: {
1380
1380
expires_at: {
1381
-
helpText: "Leer lassen für die Standardlaufzeit unter „Setup → Authentifizierung → API-Schlüssel“ (Standardlaufzeit für Schlüssel, 90 Tage, sofern nicht geändert). Ein Datum nach der dort festgelegten maximalen Schlüssellaufzeit wird abgelehnt."
1381
+
helpText: "Leer lassen für die Standardlaufzeit unter „Setup → Anmeldung & Sicherheit → Anmeldemethoden → API-Schlüssel“ (Standardlaufzeit für Schlüssel, 90 Tage, sofern nicht geändert). Ein Datum nach der dort festgelegten maximalen Schlüssellaufzeit wird abgelehnt."
help: "IANA-Zeitzone, in der die Arbeitszeiten gelten, z. B. Asia/Shanghai. Das Formular zum Anlegen öffnet sich mit der Zeitzone der Organisation (Einstellungen → Lokalisierung), und ein Anlegen ohne Angabe erhält dieselbe Zeitzone."
4592
+
help: "IANA-Zeitzone, in der die Arbeitszeiten gelten, z. B. Asia/Shanghai. Das Formular zum Anlegen öffnet sich mit der Zeitzone der Organisation (Setup → Unternehmenseinstellungen → Sprache und Region), und ein Anlegen ohne Angabe erhält dieselbe Zeitzone."
help: "The organization's own name. Change it with Rename Organization at the top of this record. The product name the console shows is a different setting, set in Settings → Branding."
681
+
help: "The organization's own name. Change it with Rename Organization at the top of this record. The product name the console shows is a different setting, set in Setup → Company Settings → Branding."
help: "Retired. Set this organization's multi-factor requirement in Settings → Access policy. A value that was on here was moved there as \"everyone\" and cleared."
696
+
help: "Retired. Set this organization's multi-factor requirement in Setup → Login & Security → Access policy. A value that was on here was moved there as \"everyone\" and cleared."
697
697
},
698
698
timezone: {
699
699
label: "Timezone",
700
-
help: "IANA time zone (e.g. UTC, Asia/Shanghai), kept as the root default for business units without a zone of their own. It does not change any date calculation today: formulas, reports and displayed dates use Settings → Localization → Default timezone."
700
+
help: "IANA time zone (e.g. UTC, Asia/Shanghai), kept as the root default for business units without a zone of their own. It does not change any date calculation today: formulas, reports and displayed dates use Setup → Company Settings → Language & Region → Default timezone."
help: "IANA time zone (e.g. Asia/Shanghai) kept for this unit; leave it empty to take the parent unit's, then the organization's. It does not change any date calculation today: formulas, reports and displayed dates use Settings → Localization → Default timezone."
1187
+
help: "IANA time zone (e.g. Asia/Shanghai) kept for this unit; leave it empty to take the parent unit's, then the organization's. It does not change any date calculation today: formulas, reports and displayed dates use Setup → Company Settings → Language & Region → Default timezone."
help: "IANA time zone the working periods are local to, such as Asia/Shanghai. The create form opens with the organization's time zone (Settings → Localization), and a create that leaves it out takes the same zone."
4592
+
help: "IANA time zone the working periods are local to, such as Asia/Shanghai. The create form opens with the organization's time zone (Setup → Company Settings → Language & Region), and a create that leaves it out takes the same zone."
0 commit comments