Skip to content

fix(platform-objects): complete ADR-0057 BU rename — Setup menu + i18n (Departments → Business Units / 业务单元)#2129

Merged
xuyushun441-sys merged 3 commits into
mainfrom
fix/bu-setup-nav-business-units
Jun 21, 2026
Merged

fix(platform-objects): complete ADR-0057 BU rename — Setup menu + i18n (Departments → Business Units / 业务单元)#2129
xuyushun441-sys merged 3 commits into
mainfrom
fix/bu-setup-nav-business-units

Conversation

@xuyushun441-sys

Copy link
Copy Markdown
Contributor

What

Completes the ADR-0057 sys_departmentsys_business_unit rename in the Setup app and the object's i18n — the prior rename left the user-facing surface half-renamed.

Setup menu

  • The "People & Organization" nav entry was hidden/stale: nav_departments / label "Departments" pointing at sys_business_unit. Renamed to nav_business_units / "Business Units" and aligned all four locale nav bundles.

Object labels & descriptions (the real root)

  • The object definition itself (sys-business-unit.object.ts) still said "department" in field labels (Parent Department, Department Head, Department ID) and descriptions — while the generated en labels had been hand-updated ahead of it, making the def a silently-stale source. Fixed at the source.
  • All four locales' generated object translations (en/zh/ja/es) aligned to 业务单元 / ビジネスユニット / Unidad de negocio across labels, help text, and the sys_business_unit_member object.

Intentionally preserved (not over-renamed)

  • The kind enum value department — a business unit can be of kind department.
  • The multi-concept node descriptions that list kinds (company / division / department / …).
  • The unrelated 部署 = "deployment" strings (same characters as Japanese 部署="department" — a blind replace would have corrupted them).

Verification

  • Browser-verified in the console: Setup → 人员与组织 → 业务单元 (→ sys_business_unit); the object list/form headers and field labels render the new term.
  • Cross-locale scan of both object blocks is clean; old strings remain only in unrelated stale worktrees.

Note: field help text can still render the old term from a prebuilt @objectstack/console bundle (a dev-bundle cache, not a source gap) until the console is rebuilt.

🤖 Generated with Claude Code

os-zhuang and others added 3 commits June 21, 2026 19:21
…nts → Business Units

The sys_department → sys_business_unit rename (ADR-0057 D2) left the Setup
menu entry and the non-English object labels on the old term. Rename nav id
nav_departments → nav_business_units, label Departments → Business Units, and
align the zh / ja / es object + nav labels to 业务单元 / ビジネスユニット /
Unidad de negocio (English object label was already "Business Unit"). The
deliberately multi-concept descriptions are left unchanged.

Verified live in the console: Setup → 人员与组织 → 业务单元 (→ sys_business_unit);
the object list page header also renders 业务单元.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…(labels + descriptions + all locales)

The earlier nav/label pass was a half-rename: the object DEFINITION (the source of
truth) still said "department" in field labels (Parent Department / Department Head /
Department ID) and field descriptions, and only the English *generated* labels had been
hand-patched ahead of it — so the def was the silently-stale source and every non-English
field label/help still read 部门 / 部門 / Departamento.

This completes it end-to-end:
- sys-business-unit.object.ts / sys-business-unit-member.object.ts: rename field labels +
  descriptions + comments to "business unit".
- en/zh/ja/es .objects.generated.ts: align every field label, help string, and the member
  object to Business Unit / 业务单元 / ビジネスユニット / Unidad de negocio.

Deliberately preserved: the `kind` enum value `department` (a BU can be OF KIND department),
the multi-concept descriptions that list kinds, and the unrelated 部署 = "deployment" strings.
The internal view id `all_departments` is left (renaming it orphans translation keys; it is
not user-facing — label is "All").

Verified: object label + field labels render correctly in the console; a full cross-locale
scan of the two object blocks is clean. (Field *help* text can render stale from a prebuilt
console bundle — a known dev-bundle cache, not a source gap.)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
spec Ready Ready Preview, Comment Jun 21, 2026 2:17pm

Request Review

@github-actions github-actions Bot added documentation Improvements or additions to documentation tooling size/m labels Jun 21, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/platform-objects.

3 hand-written doc(s) reference the affected code and may need an implementation-accuracy re-verification:

  • content/docs/concepts/packages.mdx (via @objectstack/platform-objects)
  • content/docs/concepts/setup-app.mdx (via @objectstack/platform-objects)
  • content/docs/guides/packages.mdx (via @objectstack/platform-objects)

Advisory only. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs origin/main → pass the list as args.docs.

@xuyushun441-sys
xuyushun441-sys merged commit 61ed5c7 into main Jun 21, 2026
16 checks passed
@xuyushun441-sys
xuyushun441-sys deleted the fix/bu-setup-nav-business-units branch June 21, 2026 14:23
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants