Repository navigation
fix(app-shell): zh-CN Studio first screens stop mixing English in the package form, flow rail groups and column picker - #29773
Merged
Conversation
…roups and column picker in the builder's terms The New package form rebuilds once the lazy studio catalogue lands, the Automations rail labels a draft object's flow group with its label, and the column picker lists the builder's own fields before the system ones. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jRdVLGVEbfCX4asHX1
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jRdVLGVEbfCX4asHX1
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jRdVLGVEbfCX4asHX1
Contributor
Author
|
domain:ui#5 · zhuangjianguo · session_01QsR2jQjvWkZ7is6GXbC6DB 席位核对 — ACCEPT ·
|
This was referenced Nov 3, 2026
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.
Requested by Steedos · project thread
Fixes #29706
Clause-②: no
Metadata-protocol: none
The two lines are the amended claim's (comment on the card, 2026-11-03T02:55Z).
维护者速读
StudioDesignSurface.tsx的readObjectLabels(合并草稿对象的标签);PackageFormDialog.tsx的表单 memo 依赖;ViewColumnPanes.tsx的AddFieldPopover排序。pnpm --dir ui exec vitest run packages/app-shell/src/views/metadata-admin/PackageFormDialog.lazyCatalogue-29706.test.tsx packages/app-shell/src/views/studio-design/StudioDesignSurface.draftObjectFlowGroup-29706.test.tsx packages/app-shell/src/views/metadata-admin/previews/FieldsListEditor.addFieldOrder-29706.test.tsx,预期 3 个文件 6 个用例全过(任一修复撤回时对应用例转红)。What changes
The card's four rows were re-measured on
main7b55ea9 in zh-CN, and all four reproduced. Rows 2 to 4 are fixed here. Row 1 moved to its own card (below).{flow, packageId, notice}with no code, and the console printsnoticeas sent. The repo's pattern for a server sentence a person reads is code-keyed: the console maps a code it knows to an i18n key and keeps the wire text for any other code (translateFailureCodeinCloudConnectionPanel.tsx; the publish refusal'sBATCH_ABORTED_CODEline inStudioDesignSurface.tsx). The notice has no code yet, so the first step is server-side (packages/runtime), which is out of this card's surface. runtime: the flow and permission-set "New similar" clone notices carry a code, so the Console can translate them (zh-CN shows English today) #29727 covers the flow and permission-set clone notices and the console mapping that follows the code.PackageFormDialog.tsx). Studio's landing mounts the dialog closed, before the lazily fetched zhstudiocatalogue is resident. The form spec (labels and help lines,getPackageForm) was memoised on[locale, mode], so theenanswer of the first render survived the catalogue's arrival, while the title, read on every render, turned Chinese: 新建软件包 over "Display name" and "Human-readable package name". The memo now also keys onisStudioCatalogueLoaded(locale), so the form is rebuilt once the catalogue lands. Once rebuilt, zh no longer falls through to the spec's.describe()text; en still does, by design (add10d8f9).StudioDesignSurface.tsx,readObjectLabelsonly). The rail's object index read the published objects only, so a flow started on an object not published yet was grouped under the object's name, which the header'suppercasestyle showed as REPAIRS_REPAIR_TICKET. The index now merges the package's object drafts (listDrafts({ packageId, type: 'object' }), unscoped in the package-less scope) with the label each_draftsrow carries, resolved in the designer locale. A published object keeps its published label. A failed draft read adds nothing and leaves the published index as it was.ViewColumnPanes.tsx,AddFieldPopover). The served object puts the columnsapplySystemFieldsinjects ahead of the author's field map. Measured on@objectstack/objectql'sapplySystemFieldsfor an object declaringtitleandpriority:organization_id,created_at,created_by,updated_at,updated_by,owner_id,owning_business_unit_id,queue,title,priority. The list-view inspector already drops the hidden ones, but the audit four andowner_idstayed on top. The picker now lists the builder's fields first and thesystemones after, each in served order. The same popover serves the report inspector's columns.packages/specorpackages/runtimechanges.Tests
Three new files, one per kept row, each over the real component, each with a CONTROL case.
PackageFormDialog.lazyCatalogue-29706.test.tsx. Mounts the realPackageFormDialogclosed under anI18nProviderin zh with the studio catalogue NOT resident (asserted first; thedomproject isolates each file), lands the catalogue, then opens it, as Studio's landing does. The labels and help read 显示名称 / 软件包的可读名称。 and neither "Display name" nor the spec's.describe()text appears (read from the installedManifestSchema). CONTROL: an en console mounted the same way keeps the spec's own English help.StudioDesignSurface.draftObjectFlowGroup-29706.test.tsx. The whole surface at/studio/PKG/automations(harness ofautomationsRailOrder-12612): one published object, one draft-only object whose_draftsheader carries 维修工单, one flow on each. The draft object's group reads 维修工单 and not its machine name. CONTROL: the published object's group reads its published label.FieldsListEditor.addFieldOrder-29706.test.tsx. The realFieldsListEditorand its Add field popover over a catalog in the measured served order (audit four andowner_idfirst). The picker liststitle,priority, then the system columns in served order. CONTROL: a catalog with no system column keeps its served order.scripts/ablation-replace.mjs, fix committed first, each mutation counted on disk and restored to the HEAD blob withgit diff HEADempty): memo deps back to[locale, mode]; the draft read replaced by an empty answer; the picker order back to[...fields]. Each turns exactly its row's case red and leaves the CONTROL green.Acceptance notes
--freshbackend plus the Vite console on source; before = the threeorigin/mainsource files swapped in, restored to HEAD after): the rail header read REPAIRS_REPAIR_TICKET before and 维修工单 after; the New package form's first labels read "Display name", "Description", 软件包 ID, "Object namespace" before and 显示名称, 描述, 软件包 ID, 对象命名空间 after; the column picker read 创建时间, 创建人, 更新时间, 更新人, 负责人, 标题, 优先级 before and 标题, 优先级, then the five system columns after. Screenshots are in the project'sissue-29706/folder (before-row*.png,after-row*.png). The harness was temporary and nothing of it is committed.app; the dialog's screen-reader "Close" label is English. Noted for triage.main(the pinyin create-door card landed inPackageFormDialog.tsxandStudioDesignSurface.tsx), the touched suites, the app-shell type-check and the three new files were re-run on the merged head.Verification
Final head
f9fd4b39(merge oforigin/main3eeb81d); code head a346e17.Tests
PackageFormDialog,ViewColumnPanes,FieldsListEditor,AddFieldPopover,BuilderLandingor the Automations rail (125 files, code head a346e17's tree,--maxWorkers=2, three batches): 125 files, 1080 tests passed. On the merged head, the 36 that name the touched components plus the two rail suites: 38 files, 304 tests passed.pnpm exec turbo run type-check --filter=@object-ui/app-shell: 65 of 65 tasks successful (merged head).pnpm exec eslintover the six touched ui files: 0 errors (existing warnings only).pnpm --dir ui exec vitest run scripts/: 170 files passed, 2 skipped; 4977 tests passed.pnpm --dir ui check:new-line-citations: 0 new citations.Gates
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack: 35 derived families (unchanged by the merge). The 34 non-vitest ones ran in one loop on a346e17 and all exited 0, includingcheck-sdui-manifest.mjsand its--self-test,check-changeset-no-major,check-adr-0087-registration,check-empty-changeset,check:published-files,check:type-check-debt(locked) andcheck:cross-package-test-inputs; the 35th,pnpm --dir ui exec vitest run scripts/, is the run above. The body-reading gates were re-run on this body before opening.scripts/pm/clause2-line.mjsreads the changeset asClause-②: noandMetadata-protocol: none, matching the amended claim. No i18n key and no export changes.!in the title and no (narrowing) arm.Generated by Claude Code