Repository navigation
fix(i18n): the organisation is "Organization" and the running instance is "Environment" — retire "workspace" from the console (objectui#12851) - #12865
Conversation
…s "Environment"
The console used one noun ("workspace" / 工作区) for two things: the
organisation members and billing belong to, and the environment an app
runs in. Every such value is rewritten by meaning in all ten packs; keys
stay. The cloud home's open button reads "Open", and its hints say what
an environment is. Inline defaultValues follow the en values.
Claude-Session: https://claude.ai/code/session_01QMLNukjEsw4QGWZS8oNsX2
Co-authored-by: Claude <noreply@anthropic.com>
…her, avatar menu, organisations page and cloud home The objectui#5215 one-noun-per-pack pin turns around with the ruling: every organisation value in all ten packs carries the organisation noun and none carries the retired workspace noun. New zh-CN render pins with an en control for the switcher, the avatar menu, the organisations page heading and the cloud home's button and hint. Tests that asserted the old strings follow. Claude-Session: https://claude.ai/code/session_01QMLNukjEsw4QGWZS8oNsX2 Co-authored-by: Claude <noreply@anthropic.com>
…itle Claude-Session: https://claude.ai/code/session_01QMLNukjEsw4QGWZS8oNsX2 Co-authored-by: Claude <noreply@anthropic.com>
…a workspace Claude-Session: https://claude.ai/code/session_01QMLNukjEsw4QGWZS8oNsX2 Co-authored-by: Claude <noreply@anthropic.com>
|
changeset-claim-re-read
|
席位核对 — ACCEPT · objectui#12851 · head
|
✅ Console Performance Budget
The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it. 📦 Bundle Size Report
Size Limits
|
Contract reviewServed-tier: Face: the Inputs read:
Nothing was built or run locally. ① Derived judgments
② Semver levelThree patch changesets: ③ Boundary flags
Implemented-by: VERDICT: PASS Generated by Claude Code |
Landing · head
|
Fixes #12851
Clause-②: yes
What changed
The console used one noun, 「工作区」 / "workspace", for two different things. Per the maintainer's ruling on objectstack-ai/cloud#2939 (letter A, comment 6229029648): the organisation members and billing belong to is now 「组织」 / "Organization", the running instance is 「环境」 / "Environment", and 「工作区」 retires.
workspace.*key, component or file name moved (WorkspaceSwitcher,CreateWorkspaceDialogkeep their names), so@object-ui/i18n's key set is unchanged.workspace.defaultreader), so there is nothing whose output changes.Strings changed: the organisation (21 keys)
workspace.labelworkspace.defaultworkspace.switchworkspace.createTitleworkspace.createDescriptionworkspace.createButtonworkspace.nameLabelworkspace.settingsworkspace.createFailedorganizations.mineorganizations.createorganizations.titleorganizations.headingorganizations.subtitleorganizations.searchPlaceholderorganizations.neworganizations.currentorganizations.emptyTitleorganizations.emptyDescriptionorganizations.noMatchesmarketplace.install.noPermissionStrings changed: the environment (14 keys)
Read inside an environment, or about one: Setup's subtitle and its
Workspacesettings category (the manifest category that holds Company, Branding and Localization, which are per-environment settings), the timezone prompt, the tenant sign-in hint, the build refusal and home loading/empty states, the system-settings quick action, the cloud home's hints and button, and the cloud home's timezone line (the timezone is seeded on the environment).console.settingsHub.subtitleconsole.settingsHub.categories.Workspaceconsole.workspaceTimezonePrompt.titleconsole.workspaceTimezonePrompt.descriptionconsole.workspaceTimezonePrompt.savedauth.shell.tenantHostHinthome.build.noCapabilityhome.loadinghome.noAppsDescriptionhome.quickActions.systemSettingsDesccloudOnboarding.hintCreatecloudOnboarding.hintReadycloudOnboarding.openWorkspacecloudWorkspaceTimezoneNotice.seededPlus one string in the metadata-admin designer table (
packages/app-shell/src/views/metadata-admin/i18n.ts, en and zh only, as that table has):engine.packages.noCapability"manage packages in this workspace" / 「在此工作区管理」 now says "environment" / 「环境」.Strings kept, with the reason
console.ai.workspaceTitleengine.inspector.appNav.mode.default(designer table)Code comments and identifiers that say "workspace" are not user-facing and were left alone, except comments that quote a label this PR changes ("Open workspace" in
CloudOnboardingNext.tsx, "My Workspaces" inAppHeader.tsx).Consumers touched, and why
The call-site gate (
pnpm check:i18n-keys) requires every literal inlinedefaultValueto equal theenvalue it falls back for, so each changed key's inline default changes with it. No consumer held a hard-coded literal outside those defaults.WorkspaceSwitcher.tsx,AppHeader.tsx,OrganizationsPage.tsx,CreateWorkspaceDialog.tsx: inline defaults only (claimed files).CloudOnboardingNext.tsx: the doc comment that quoted "Open workspace" (claimed file).HomeLayout.tsx,HomePage.tsx,QuickActions.tsx(app-shell) andapps/console/src/pages/auth/AuthLayout.tsx: inline defaults only. Not in the claim; see Deviations.CurrentOrganizationIndicator.tsx,OrgBadge.tsx, consoleLoginPage.tsx/RegisterPage.tsx: untouched; nothing in them needed it.Deviations
pnpm check:i18n-driftfails when anenvalue changes and any of the other nine does not follow (merge-base comparison, no carve-out but a waiver ledger). Soar,de,fr,ko,ptandrufollow too, with each pack's organisation and environment nouns (de Organisation / Umgebung, fr organisation / environnement, ko 조직 / 환경, pt organização / ambiente, ru организация / окружение, ar مؤسسة / بيئة). The waiver ledger was not used: it would have left six languages naming the organisation "workspace".HomeLayout.tsx,HomePage.tsx,QuickActions.tsx,AuthLayout.tsx) changed their inlinedefaultValueliterals only, becausepnpm check:i18n-keysrefuses a stale default.AuthLayout.tsxis the console's sign-in shell, notLoginPage.tsx/RegisterPage.tsx.marketplace.install.noPermissioncarried "ask your workspace admin" in en and zh only; it now asks for the organisation admin, and the eight packs that had no such clause gained it, so the drift gate is satisfied by a faithful translation rather than a waiver.engine.packages.noCapability(two lines) is the same defect in a second string table.Tests
Existing tests that asserted the old strings, changed with them:
packages/i18n/src/__tests__/organizations-picker-vocabulary-5215.test.ts: objectui#5215 settled the picker on "workspace"; the one-noun-per-pack invariant now runs the other way and covers all ten packs and theworkspace.*organisation keys too.packages/i18n/src/__tests__/organization-namespace-3546.test.tsx: its namespace-separation probe readorganizations.titleas "Workspaces".CloudOnboardingNext.test.tsx,CloudWorkspaceTimezoneNotice.test.tsx,AppHeader.myOrganizations.test.tsx(a test name),apps/console/.../WorkspaceTimezonePrompt.test.tsx.New pins, each rendering the real packs in zh-CN with an en control:
WorkspaceSwitcher.organizationNoun-12851.test.tsx: 创建组织 / "Create organization".AppHeader.organizationNoun-12851.test.tsx: the avatar menu's 我的组织 and 创建组织 / "My Organizations".OrganizationsPage.organizationNoun-12851.test.tsx: heading 您的组织 / "Your Organizations".CloudOnboardingNext.test.tsx: button 打开 / "Open" and both hints.Ablation, once per new pin (zh value put back to the old noun through
ablation-replace.mjs, mutation proved on disk by anchor count and blob hash, restored,git diff HEADempty after every leg): switcher red, avatar menu red, organisations heading red, cloud button red (2 tests), cloud hint red, pack pin (jaorganizations.mine) red (2 tests).Evidence at
034b96b(local, foreground, under the shared verify lock):pnpm exec vitest run packages/app-shell/: 1537 files passed, 1 skipped; 14509 tests passed (ataae54b4; the only later change isviews/metadata-admin/i18n.ts, after whichpnpm exec vitest run packages/app-shell/src/views/metadata-admin/passed 542 files / 6119 tests).pnpm exec vitest run packages/i18n/: 83 files, 1325 tests passed (ataae54b4, unchanged since).pnpm exec vitest run packages/i18n/ apps/console/at7e6943d: 305 of 306 files passed; the one failure was the 3546 probe, fixed inaae54b4and re-run green. Console files unchanged since.turbo run build type-checkfor@object-ui/i18n,@object-ui/app-shell,@object-ui/consoleand their dependency closure: 39 of 39 tasks successful.eslinton every changed file: 0 errors.pnpm check:i18n-keys,pnpm check:i18n-drift(35 en values changed, 315 pack values followed, 0 waived),pnpm check:i18n-designer-parity,pnpm check:i18n-dead-keys,pnpm check:new-line-citations,node scripts/check-changeset-presence.mjs,node scripts/check-changeset-no-major.mjs: all exit 0.Screenshots (zh-CN, light)
Console on a local hotcrm
objectstack dev --freshbackend with two organisations (multi-org on), before onmain024d446and after on this branch. The cloud home widget only renders on the control plane, so it is shown in a temporary dev-server harness page (not committed) with a stubbed entitlements answer, in both states.The screenshots live on the evidence branch
claude/issue-12851-evidenceonly.Session:
https://claude.ai/code/session_01QMLNukjEsw4QGWZS8oNsX2Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01QMLNukjEsw4QGWZS8oNsX2