fix(i18n): retire the reader-less common.search key from the ten locale packs (#4392) - #4403
Merged
Merged
Conversation
…cks (#4392) `common.search` lost its last consumer when objectui#4375 / PR #4391 moved LookupField's dialog placeholder onto the reused `table.search` pack value. The key then existed in all ten locale packs with zero readers repo-wide. Deletes it from all ten packs together (the parity suite enforces the all-or-nothing shape), drops the dormant copy from @object-ui/fields' no-provider fallback table, and adds a negative pin: every i18n gate in this repo runs call site to key, so none of them can see a key with no call site. Fixes #4392
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
Collaborator
Author
|
ACCEPT — PM 复核 (session
Flipping ready + arming auto-merge. Generated by Claude Code |
yinlianghui
marked this pull request as ready for review
August 12, 2026 03:02
This was referenced Aug 12, 2026
Closed
feat(components): compile under noImplicitAny — type the 26 renderer signatures + 2 test sites
#4417
Merged
refactor(plugin-chatbot): useObjectChat declares the message shape it actually returns (#4424)
#4436
Merged
refactor(react): bridgeListView maps only the five rowHeight spellings the spec admits (#4352)
#4439
Merged
yinlianghui
pushed a commit
that referenced
this pull request
Aug 13, 2026
`generateTimeScaleHeaders` is reachable from the package entry (`index.tsx` does `export * from './renderer'`) and its published declaration grew an optional trailing `locale?: string`. Entry-reachable additive API growth is minor, not patch — patch is for changes with no API-surface movement at all. `dist/index.d.ts` being byte-identical does not argue for patch: the entry re-exports by reference, so the resolved public surface moved even though the entry file's bytes did not. The contrapositive of #4496, which was graded patch precisely because its .d.ts additions were NOT re-exported from the entry; #4403 / #4177 / #4485 / #4495-regrade are the line this follows. Additive and back-compatible is what minor means — no consumer breaks, existing three-argument callers keep compiling and keep producing byte-identical output. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017Qqyix2QcnpUC9XeYVDzx3
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 #4392
Implements the RETIRE ruling on #4392.
common.searchlost its last consumer when #4375 / PR #4391 movedLookupField's dialog placeholder onto the reusedtable.searchpack value; the key then sat in all ten locale packs with zero readers repo-wide.Premise check (re-verified at claim time, against
origin/main@5bf09fdba)The premise holds: zero live readers. Every repo-wide occurrence, classified:
packages/i18n/src/locales/{ar,de,en,es,fr,ja,ko,pt,ru,zh}.tspackages/fields/src/widgets/useFieldTranslation.ts:10FIELD_DEFAULTS, module-local, no reader)packages/fields/src/complex-widgets.test.tsx:195packages/plugin-chatbot/src/FloatingChatbotTrigger.tsx:22common.+ key reader'openChat'and'closeChat', which cannot resolve tosearch. Untouched (in-flight surface, #4383).Two mechanical notes for the next author:
git grep "common.search"never matches them — it returns 2 hits repo-wide, neither of them a pack. The packs were enumerated with acommon:-block-scoped scan instead.common.selectpack key #4397 (merged one commit earlier) usescommon.select, a different key. It is untouched and is asserted by name in the new pin, precisely because it is one letter of intent away.The ten-pack deletion
All ten together — the parity suite enforces all-or-nothing. Before / after:
Each pack lost exactly one line, between
create:andfilter:. Diffstat is 1 deletion per pack.Retirement record — a negative pin, per measured precedent
git log -Son the key plus the repo's own prior pack-key removal (#4145, PR #4177, retiringreport.editor.*) gives the convention: no tombstone comment in the packs; the trace is a dedicated negative pin test plus the changeset. This PR follows it withpackages/i18n/src/__tests__/common-search-retired-4392.test.ts.The pin is needed because every i18n gate in this repo runs call site to key, never key to call site:
check:i18n-keysasks whether each call site's key resolves inen— a key with no call site is never visited.all-locales-key-paritycompares the ten packs' key SETS to each other — one dead key present in all ten is exactly what it wants.check:i18n-driftonly fires when anenvalue CHANGES — this value was static.So the key could return to all ten packs with every existing gate green. The pin asserts: absence in all ten packs (naming the pack), the neighbours survived as real translations (so a green cannot be bought by deleting the neighbourhood), no package or app reads or re-declares it, and no dynamic
common.reader grows asearchmember. It is path-free about plugin-chatbot on purpose, so #4383's in-flight work cannot turn it red for an unrelated rename.The one prose mention in
complex-widgets.test.tsxwas reworded from spelling at()call around the key to naming the key bare — the same documentation convention #4145's pin wrote down, and what keeps the revival scan free of false positives without a comment stripper.Changeset grading
minorfor@object-ui/i18n,patchfor@object-ui/fields— graded by the measured precedent, not by feel. #4145's changeset for the same class of change (.changeset/retire-report-editor-namespace-4145.md) is'@object-ui/i18n': minor, for this reason, which applies here identically: deleting a key fromennarrows the exportedTranslationKeystype (typeof en), so code indexingTranslationKeysatcommon.searchstops type-checking. No runtime consumer existed to break, and no rendered string changes — the key never rendered.@object-ui/fieldsispatch:FIELD_DEFAULTSis a module-local, non-exported table read only when noLocalizationProvideris mounted, so dropping an entry nothing asks for narrows no public type. Nevermajor, per the version-alignment rule.Verification
Local, all green:
check:i18n-keys—Every in-scope call-site key resolves against the en pack (2858 keys), 3531 call sites scanned. This is the zero-reader proof executing:enno longer defines the key and no call site missed it.check:i18n-drift—0 en value(s) changed (0 key(s) added, 1 removed …). The removal verdict is the expected one, exit 0, not a red.check:control-bytes— OK, 4101 tracked text files.check-changeset-presence/check-changeset-no-major— OK.packages/i18n/+packages/fields/— 124 files, 2053 tests passed.turbo run type-checkfor both packages — green, including i18n's two tsc commands (tsc --noEmit && tsc -p tsconfig.test.json).turbo run lintfor both packages — 0 errors (783 pre-existing warnings infields, untouched files).Reverse verification (direction predicted before running)
Each removal was taken out with a path-scoped
git checkout origin/mainand put back withgit checkout HEAD— nevergit stash.A. Restore ONE pack (
de). Predicted: two independent gates red. Measured — both:B. Restore ALL TEN packs. Predicted: parity goes green (ten identical key sets) and only the new pin stays red. This is the blind spot the pin exists for, and it measured exactly that:
C. Restore ONLY the
FIELD_DEFAULTSentry (packs left retired). Predicted: no pack gate can see this; the scan assertion catches it. Measured:Branch restored to the committed state afterwards; working tree clean.
Surface discipline
Touched only
packages/i18n/src/locales/*.ts, the new i18n pin,packages/fields/**, and the changeset. No dormant copy of the key existed in the constrained defaults tables ofplugin-detail/plugin-list/plugin-designer(#4396) — nothing to report there.plugin-chatbot(#4383) was read for the premise check and not modified. No out-of-scope findings.Generated by Claude Code