Skip to content

fix(console): a line under the organization name while it is the platform name (#39043, half B) - #39301

Merged
objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/issue-39043-org-name-line
Dec 3, 2026
Merged

objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/issue-39043-org-name-line

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Part of #39043
Clause-②: yes (widening)
Metadata-protocol: none

维护者速读

  • 管理员打开「组织基本信息」表单时:组织还叫系统默认名,名称栏仍是空的,但栏下多一行字说明现在用的是默认名、请填自己的名字;已有自己的名字时照旧预填、不显示这行。
  • 属于首次使用清单的体验收尾,按你对第二问「B 留空加说明」的裁决实现;开发模式自动写入时区货币的另一半走单独的 PR。
  • 出错最多是这行字该出现时没出现或不该出现时出现,保存规则没动,撤回这个改动即可恢复原样。
  • 无

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 under packages/plugins/** or docs/qa/**.

  • ui/apps/console/src/pages/settings/FirstRunChecklist.tsx: while the organization's stored name is the platform's (isOrganizationNamed false and the name non-empty), the basics form passes one line to the name field through SettingsField's existing note prop. 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's aria-describedby by 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 (interpolates name), in the 11 locale packs that carry the firstRunChecklist block: 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 with gen: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 carried no, on the condition that this be measured. @object-ui/i18n exports TranslationKeys = typeof en. After a build, ui/packages/i18n/dist/locales/en.d.ts carries readonly defaultNameNote: ... in that type, so the published type surface gains one key. That makes it a widening. Metadata protocol: none. Level: patch.
  • Changeset: .changeset/39043-org-name-default-line.md (@object-ui/console, @object-ui/i18n, patch).

Read first, in order of risk:

  1. FirstRunChecklist.tsx, the defaultNameNote hunk: the condition that decides when the line shows.
  2. __tests__/FirstRunChecklist.test.tsx: the new top-level describe pins both directions.
  3. 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 at onSave below.

Tests

The new pin is a top-level describe in the existing harness ui/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:

  • platform name: the field is empty, the line names 「Default Organization」, the placeholder does not, and the input's aria-describedby includes the line;
  • real name: the field is prefilled with 「Acme」 and no line is drawn;
  • Save rule unchanged: typing the platform name is refused with the same sentence, the line stays beside the refusal, and nothing is written;
  • zh: the line reads in Chinese and still names the current name.
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)
  • Ablation 1 (node scripts/ablation-replace.mjs, deletes the note={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 and git diff HEAD is empty.
  • Ablation 2 (removes the !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 0
  • pnpm --dir ui exec vitest run scripts/ → Tests 5161 passed | 2 skipped
  • pnpm check:new-line-citations (under ui/) → 0 new citation(s)

Acceptance notes

  • Screenshot of the form both ways: NOT MEASURED. The console was not booted; the two-way render is pinned in jsdom by the tests above.
  • Console 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's Type Check UI lane owns it.
  • pnpm check:query-options-erasure: NOT MEASURED locally (killed by a 250 s timeout on a shared box); CI runs it.
  • The line shows when the stored name is the platform name. An organization whose stored name is empty gets no line, because there is no current name to show; the field is empty and Save asks for a name as before.

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

…; comment points at onSave below

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CbFgiyGToVRBFwedwF
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-bill · os-bill · session_01Utp6CbFgiyGToVRBFwedwF

席位核对

ACCEPT at 2026-12-03T10:33Z · head eea94d37665a45a2a1c6b3984ab60d1b7cd4224e · L1 by zone ux-1203 (isolated reviewer, default tier, effort high, at 6e7e781: REWORK on the body's closing line + two nits; delta eea94d3 self-read: body line, es/fr/pt-BR wording, one comment, ±4 lines) · Clause-②: yes TIER_DEFAULT review of record: the new optional key console.firstRunChecklist.organizationBasics.defaultNameNote is an intended widening of TranslationKeys = typeof en (en is as const; adding a member breaks no producer or consumer; precedent .changeset/39042-first-run-sidebar-entry.md) · card #39043 claim 7373015897, amendment (Clause-② yes), reports 7374595683 and 7374902960 · Ruling-ref 7359875657 (B) · the landing rides this stroke.

  • Form: Part of #39043 (half B; half A is PR fix(plugin-auth): the dev admin seed stops storing the host's time zone and currency #39302; the seat closes the card by hand once both merge), Clause-②: yes (widening), Metadata-protocol: none; FirstRunChecklist.tsx, the pin as a new describe in the shared harness __tests__/FirstRunChecklist.test.tsx (AGENTS.md shared-harness rule), one key in the 11 packs that carry firstRunChecklist, one patch changeset (@object-ui/console, @object-ui/i18n). Not governed (check-governed-merges --pr 39301), 98 lines.
  • Ruling terms read: the line rides SettingsField's existing note prop (not a placeholder; wired by aria-describedby), SettingsField.tsx unchanged; Save rule and its sentence unchanged and re-pinned; pinned both ways (platform name → empty field + line; "Acme" → prefilled, no line); zh-Hans reads the card's line verbatim with the current name filled in.
  • Tests: 99/99 in the harness file; two ablations (the note prop, the !basics.named guard) each turn their cases red.
  • Gates: every check-run at head success (47) or skipped (17).
  • Accepted deviations: pin placed in the shared harness file instead of a new file (AGENTS.md wins); Clause-② moved from the claim's no to the measured yes (claim amendment posted).
  • Out of scope: none.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review December 3, 2026 10:33
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Dec 3, 2026
Merged via the queue into main with commit dc4a2cd Dec 3, 2026
65 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-39043-org-name-line branch December 3, 2026 10:57
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/s tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants