Repository navigation
fix(console): a line under the organization name while it is the platform name (#39043, half B) - #39301
Conversation
…tform's (#39043 B) Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CbFgiyGToVRBFwedwF
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CbFgiyGToVRBFwedwF
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CbFgiyGToVRBFwedwF
…; comment points at onSave below Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CbFgiyGToVRBFwedwF
|
repo:objectstack@os-bill · os-bill · session_01Utp6CbFgiyGToVRBFwedwF 席位核对ACCEPT at 2026-12-03T10:33Z · head
|
Part of #39043
Clause-②: yes (widening)
Metadata-protocol: none
维护者速读
What changes
This PR does not close the card: half A is still open, and the seat closes the card by hand once both halves have merged.
Half B of the ruling on the card above (ruling comment 7359875657, "Ruled terms, B (organization name)"). Half A, retiring the plugin-auth development seeds, rides its own PR (#39302) on branch
claude/issue-39043-dev-seeds-retired; this PR touches nothing underpackages/plugins/**ordocs/qa/**.ui/apps/console/src/pages/settings/FirstRunChecklist.tsx: while the organization's stored name is the platform's (isOrganizationNamedfalse and the name non-empty), the basics form passes one line to the name field throughSettingsField's existingnoteprop. The line names the current name and asks for the organization's own. With a name of its own the field is prefilled as before and no line is drawn. It is a line under the field, wired into the input'saria-describedbyby the field itself, not a placeholder. The shared settings field component is unchanged, and so are the Save rule and its sentence.ui/packages/i18n/src/locales/*.ts: one new key,console.firstRunChecklist.organizationBasics.defaultNameNote(interpolatesname), in the 11 locale packs that carry thefirstRunChecklistblock: ar, de, en, es, fr, ja, ko, pt-BR, ru, zh-Hans, zh-Hant. The other three files in that directory (index.ts,registry.ts,rtl.ts) are not packs. zh-Hant is regenerated from zh-Hans withgen:zh-hant, not hand-written. The zh-Hans text is the line the maintainer approved on the decision card, with the current name interpolated.Clause-②: yes (widening): the claim carriedno, on the condition that this be measured.@object-ui/i18nexportsTranslationKeys = typeof en. After a build,ui/packages/i18n/dist/locales/en.d.tscarriesreadonly defaultNameNote: ...in that type, so the published type surface gains one key. That makes it a widening. Metadata protocol: none. Level: patch..changeset/39043-org-name-default-line.md(@object-ui/console,@object-ui/i18n, patch).Read first, in order of risk:
FirstRunChecklist.tsx, thedefaultNameNotehunk: the condition that decides when the line shows.__tests__/FirstRunChecklist.test.tsx: the new top-level describe pins both directions.zh-Hans.ts/en.ts: the wording of the line. Round 2 (head eea94d3) rewords es/fr/pt-BR to "the name of your organization" (the earlier wording read as "proper noun") and points the code comment atonSavebelow.Tests
The new pin is a top-level
describein the existing harnessui/apps/console/src/pages/settings/__tests__/FirstRunChecklist.test.tsx. AGENTS.md puts a new pin for a component that already has a shared harness file into that file. It covers four cases:aria-describedbyincludes the line;Readings
pnpm --dir ui exec vitest run --maxWorkers=2 apps/console/src/pages/settings/__tests__/FirstRunChecklist.test.tsx→Tests 99 passed (99)pnpm --dir ui exec vitest run --maxWorkers=2 packages/i18n/ apps/console/src/pages/settings/→Test Files 156 passed (156),Tests 2388 passed | 13 skipped (2401)node scripts/ablation-replace.mjs, deletes thenote={defaultNameNote}prop): 3 of the 4 new cases red (platform name, Save rule, zh); the real-name case stays green, as it should. Restored: blob equals HEAD andgit diff HEADis empty.!basics.named &&guard so the line is always drawn): the real-name case is red, the other 3 green. Restored the same way.pnpm --filter @object-ui/i18n type-check→ exit 0pnpm --dir ui exec vitest run scripts/→Tests 5161 passed | 2 skippedpnpm check:new-line-citations(underui/) →0 new citation(s)Acceptance notes
tsc --noEmit: NOT MEASURED locally, because the@object-ui/*closure is not built in this container (every error is a missing-module or implicit-any error caused by that). CI'sType Check UIlane owns it.pnpm check:query-options-erasure: NOT MEASURED locally (killed by a 250 s timeout on a shared box); CI runs it.Verification
Two-minute check:
pnpm --dir ui exec vitest run apps/console/src/pages/settings/__tests__/FirstRunChecklist.test.tsx -t "the name field while"→ 4 passed. In a running console on a fresh database: Setup, 系统概览, 组织基本信息, 设置. The name field is empty and the line under it reads 「现在用的是系统默认名“Default Organization”,请填你们自己的名字。」.Generated by Claude Code