Repository navigation
fix(console): zh form titles space a Latin object name, the lookup create dialog has a title, the success toast names the action, money metrics keep currency decimals - #30495
Merged
Conversation
Claude-Session: https://claude.ai/code/session_01L6bhgTuQiDduLj5Xcj3KMa Co-authored-by: Claude <noreply@anthropic.com>
…ject Claude-Session: https://claude.ai/code/session_01L6bhgTuQiDduLj5Xcj3KMa Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgTuQiDduLj5Xcj3KMa Co-authored-by: Claude <noreply@anthropic.com>
…mals Claude-Session: https://claude.ai/code/session_01L6bhgTuQiDduLj5Xcj3KMa Co-authored-by: Claude <noreply@anthropic.com>
…ns that read the generic line Claude-Session: https://claude.ai/code/session_01L6bhgTuQiDduLj5Xcj3KMa Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgTuQiDduLj5Xcj3KMa Co-authored-by: Claude <noreply@anthropic.com>
…mmit) Claude-Session: https://claude.ai/code/session_01L6bhgTuQiDduLj5Xcj3KMa Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgTuQiDduLj5Xcj3KMa Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgTuQiDduLj5Xcj3KMa Co-authored-by: Claude <noreply@anthropic.com>
Contributor
Author
|
domain:ui#5 · os-sales · session_01L6bhgVwQZbHRRM9CaXeKif Contract reviewServed-tier: Reviewed 2026-11-05T13:34Z. Face: the ① Derived judgments
② Semver level
③ Boundary flags
Implemented-by: VERDICT: PASS |
Contributor
Author
|
domain:ui#5 · os-sales · session_01L6bhgVwQZbHRRM9CaXeKif 维护者速读
席位核对 — ACCEPT · domain:ui#5 · head
|
This was referenced Nov 5, 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.
domain:ui#5 · os-sales · session_01L6bhgTuQiDduLj5Xcj3KMa
Requested by Sales · project thread
Part of #30126
Clause-②: yes (widening)
Metadata-protocol: none
维护者速读
What changes
ui/packages/i18n/src/i18n.tsregisters an i18next post-processor that runs only for the keys inCJK_LATIN_SPACED_KEYS(form.createTitle,form.editTitle,form.viewTitle,console.ai.recordWriteCreateTitle,console.ai.recordWriteUpdateTitle) and only inzh. It pads the interpolatedobjectvalue with a space on each side where a Latin letter or digit meets Han text.新建{{object}}stays the pack spelling, so the placeholder-spelling ruling (objectui#3512) holds.useActionModal's{ objectName, mode: 'create' }branch titles the form withform.createTitleand the object's label (the console's own New dialog title) when the descriptor has notitle. An authoredtitlewins; an edit form is not given one.ActionRunner.composeSuccessMessage's last rung reads the new keyactions.completedNamed({{action}} completed, zh“{{action}}”已完成) for an action with alabel; an action with no label keepsactions.completedSuccessfully. The host still localizes the label before dispatch, so the toast carries the label the user saw on the button.formatMeasure(coredataset-format.ts) no longer passesminimumFractionDigits: 0, maximumFractionDigits: 2to a currency amount with noformat, so Intl uses the currency's own minor-unit width.MetricWidget's static card with acurrencyand noformatgets the same rule instead of whole units. An authoredformatpattern still states its width.@object-ui/i18n,@object-ui/core,@object-ui/app-shell,@object-ui/plugin-dashboard.Tests
i18n.test.ts: zh 新建/编辑/查看 +Repair Ticketis spaced;新建维修工单is not; a key outside the table (form.createSuccess) is not; ja and en are untouched; unit cases forspaceLatinValueFromCjk.useActionModal.objectCreateTitle-30126.test.tsx(new): enCreate Repair Ticket, zh新建 Repair Ticket, authored title wins, CONTROL edit form has no create title.ActionRunner.defaultSuccessToast-10900.test.ts:Resolve completedwith no translator; the translator is asked foractions.completedNamedwithaction; an empty answer falls back to the filled English; a blank label keeps the generic line;successMessagestill wins.dataset-format.test.ts: CNY 1293 →¥1,293.00, 1280.5 →¥1,280.50, JPY¥1,293, KWD three decimals, pattern0,0→¥1,293.MetricWidget.numberFormat.test.tsx: CNY¥1,293.00/¥1,280.50, JPY¥1,293, pattern0,0→¥1,281.RecordFormPage.i18n.test.tsx(新建 Contacts, pack value still新建{{object}}), the twoflowDoneSuccessMessage-12274tests (Escalate case completed),ObjectView.toolbarScriptSelection-12331(Add to Campaign completed), andMetricWidget.numberFormat($1,930,000.00,1.930.000,00 €).Acceptance notes
packages/**,AppHeader.tsxorRecordDetailView.{{object, name}}), which breaks the placeholder-spelling gate (fallback-placeholder-spelling-3512.test.ts, the objectui#3512 / feat(spec):element:buttondeclares the action it executes —InlineActionSchema(objectui#2997) #4135 ruling: packs use{{name}}only). A key-listed post-processor gives the same result with the pack unchanged; the seat agreed (claim amendment 2).MetricWidget.metricPatternDecimals. They come from the dataset metric path,DatasetWidget→ coreformatMeasure, which passedminimumFractionDigits: 0, maximumFractionDigits: 2(code identical at the@object-ui/*@18.3.0release commit 83d7e4a and onmain). That pair is exactly what prints¥1,280.5for 1280.5 (the 18.3.0 report) and¥1,293for 1293.00 (themainreport);Intlwith no fraction options gives¥1,280.50/¥1,293.00. Re-measured live onmain(989ae42):¥1,293before,¥1,293.00after. The staticMetricWidgetcard had the same gap in a different form (whole units,¥1,281), fixed by the same rule. The seat addeddataset-format.tsto the surface.form.editTitle,form.viewTitleandconsole.ai.recordWriteUpdateTitleshare the exact shape ofcreateTitle, so they are in the key list too.completedNamedTextfills the one{{action}}hole with a singleString.replacefor the no-translator fallback; it is not a new general interpolator (the 3512 gate's needle list is unchanged).eslintreports one error inMetricWidget.tsx(react-hooks "Cannot create components during render"); it is on base at line 419 too, not from this diff.actions.completedNamedin all 10 packs is the Clause-② widening; no key is removed or renamed.Verification
70fc02c9(origin/mainmerged; merge-tree against today'smainis clean).node scripts/pm/dispatch-gates.mjs --commandson the changed paths: 35 derived families, all run, all exit 0;--ranreconcile: 0 NOT-MEASURED, 0 UNRUN.type-checkexit 0 for i18n, core, react, plugin-dashboard, app-shell (i18n and app-shell re-run after the merge).pnpm --dir ui run check:spec-symbolsexit 0.check:new-line-citations: 0 new.pnpm --dir ui exec vitest run scripts/: 170 files passed (2 skipped), 4985 tests.git diff HEADempty after): post-processor off → 1 failed; modal title off → 2 failed; named toast off → 3 failed;formatMeasurewidth back → 3 failed;MetricWidgetwidth back → 4 failed.Before / after, zh, 1440 wide (showcase stack, objects Repair Ticket / Repair Asset)
main)The screenshots live on evidence commit a21e05e and are removed by the next commit, so the diff carries no binaries.
Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgTuQiDduLj5Xcj3KMa