Repository navigation
fix(app-shell): record-tabs rename gate reads the served sourceLocale - #37381
Merged
objectstack-fleet[bot] merged 2 commits intoNov 26, 2026
Merged
Conversation
The design-mode record-tabs rename decided "source language" by comparing the reader's language with the deployment's default locale. It now takes the source-locale reader the menu rename uses (fetchDeploymentLocales + labelLanguageOf), which falls back to the default locale when the server serves no sourceLocale. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Ca6EBDpTBZk8v46Jjv
Contributor
Author
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X 席位核对Head-sha:
|
This was referenced Nov 26, 2026
Merged
Contributor
Author
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X
Landing on seat ACCEPT 7179276413 (at |
objectstack-fleet
Bot
deleted the
claude/issue-36875-record-tabs-source-locale
branch
November 26, 2026 03:02
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #36875
Clause-②: no
Metadata-protocol: none
维护者速读
用户能看到什么变化:搭建者在设计模式里给记录页签改名时,「能不能改名」改按应用的源语言判断,不再按部署的默认语言判断;默认语言与源语言相同的部署用户无感。
为什么做:接着菜单改名已改用源语言的那项工作,把记录页签改名补齐到同一种判断。
出错会怎样:默认语言与源语言不同的部署上,页签名可能被当成源文字写入或该能改时改不了;本改动只换判断依据,可直接撤回。
要你做什么:无
What changes
ui/packages/app-shell/src/views/recordTabsConfigIo.tsxdecided "source language" withfetchDefaultLocale()+isSameLanguage(language, defaultLocale). It now reads the deployment's languages through the reader PR #36858 added,fetchDeploymentLocales(), and askslabelLanguageOf(language, locales).source, the exact gate the menu rename uses. That reader takes the servedsourceLocaleand falls back to the default locale when the server serves none, so the fallback is the reader's own. No second fetch: the reader is cached per page load and shared with the menu.What the editor does with the answer is unchanged: in the source language a rename opens and writes the stored label; in any other language the rename button is disabled with the hint "Tab names are changed in the app's source language".
Tests
New file
ui/packages/app-shell/src/views/__tests__/RecordTabsConfig-36875.test.tsx, same harness as the #36499 suite, theGET /i18n/localesfake now servingsourceLocale:relatedLists[{ list: 'contact', label: 'Contacts we know' }, 'task']through the draft save, then publish.sourceLocaleserved: the default locale is the source, as before (zh-CN reader renames, en reader cannot).Reverse check (one-off, no file kept): with the fix committed (
e2288d21),recordTabsConfigIo.tsxwas put back toorigin/mainand the new file run. Cases 1 and 2 turned red (Tests 2 failed | 1 passed (3)), case 3 stayed green as expected (fallback behaviour is unchanged). Restored withgit checkout HEAD -- PATH; HEAD blob hash matched,git diff HEADempty.Acceptance notes
fetchDefaultLocaleinlayout/designModeMenuSave.tshas no caller after this change (it was the only one). Left in place: that file is the feat(i18n): a design-mode menu rename outside the source language is stored as that language's translation #36858 reader's and outside this card's file surface.RecordTabsConfig.tsx(~L95) still says "the default language"; comment only, outside the file surface.git grepforfetchDefaultLocale/isSameLanguage(underui/finds only the reader itself.Verification
Two-minute check:
cd ui && pnpm exec vitest run packages/app-shell/src/views/__tests__/RecordTabsConfig-36875.test.tsx→ 3 passed.Read first:
ui/packages/app-shell/src/views/recordTabsConfigIo.tsx(the whole change is the gate line and the fetch it reads).Local readings at e2288d2
pnpm --filter '@object-ui/app-shell^...' build→ VERDICT command-exit 0cd ui && pnpm exec vitest run --maxWorkers=2the three RecordTabsConfig suites +packages/app-shell/src/layout/→ Test Files 167 passed (167), Tests 1467 passed (1467)pnpm --filter @object-ui/app-shell run type-check→ exit 0node scripts/pm/dispatch-gates.mjs --commands: 38 derived commands, all exit 0;--ranreconciliation: 38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN (a derived zero).pnpm --dir ui exec vitest run scripts/was OOM-killed on the first unlocked run on the shared box, rerun under the verify lock with--maxWorkers=2: 172 passed, 2 skipped files.node scripts/pm/overlap-check.mjs --branch=HEAD→ VERDICT clean exit 0Generated by Claude Code