Repository navigation
fix(spec): the report panel's English rows read in business terms - #36814
Conversation
Rewords the report authoring form's English section descriptions and field hints the console report panel draws (and the hidden rows the curated controls replace) in the business vocabulary the zh-CN rows already use: data source, grouping, metric. Section labels are left as they are, since a section's translation key is slugged from its label. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziH9MVhWYLVCiw5eXB
…ngeset Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziH9MVhWYLVCiw5eXB
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziH9MVhWYLVCiw5eXB
📓 Docs Drift CheckThis PR changes 2 package(s): 8 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 10 release-owned page(s) also name something this change touched. These are read-only:
What this run could not see
Coarse fallback — 175 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin ab38c306471fd583781eaa3cfac1ea13393e0563 && git checkout ab38c306471fd583781eaa3cfac1ea13393e0563
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 14f4d8f8cd997d3722db0460a0fc7230f793121a f2cbae0a02519de290478e4f85c8ed3c24156f7a && git checkout -B drift-repro 14f4d8f8cd997d3722db0460a0fc7230f793121a && git merge --no-ff f2cbae0a02519de290478e4f85c8ed3c24156f7a
node scripts/docs-audit/affected-docs.mjs --json 14f4d8f8cd997d3722db0460a0fc7230f793121a
|
…ning rows in business terms Declares the dateRange and exportOptions children and a Description hint as form rows with business wording, rewords the remaining ledger-pinned hints, and renames the joined-block and order row titles (Data Source, Group By, Group Columns By, Metrics, Sort Order, Sort By) in the form and the item schema titles together. Adds the zh-CN overlay rows for the new children. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziH9MVhWYLVCiw5eXB
…worded report form Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziH9MVhWYLVCiw5eXB
…s to the reworded English Authors the 13 new report form leaves in zh-CN, ja-JP and es-ES, updates the two report echo-decision ledgers' en sources (each row records that its verdicts were taken against the old English) and moves the population counts with their reason. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziH9MVhWYLVCiw5eXB
…ate on its decided sentence Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziH9MVhWYLVCiw5eXB
…d row labels Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziH9MVhWYLVCiw5eXB
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziH9MVhWYLVCiw5eXB
…port-widget-form-wording # Conflicts: # packages/platform-objects/src/apps/translations/object-lifecycle-panel-echo-decisions.test.ts
…ited report pins check-test-source-alias judges every test file a change edits: the block-picker and joined-report pins reach the console's dynamic @objectstack/lint (and, for the inspector, @objectstack/formula) imports inside a case's clock. A module-top side-effect import moves that first load to collection. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziH9MVhWYLVCiw5eXB
|
repo:objectstack#3 · os-support-ai · session_01WGufziwMkZG34d69p8BHb4 Contract-review-claim: session_01WGufziwMkZG34d69p8BHb4 · head f2cbae0 · 2026-11-24T03:17Z Face: published schema ( |
|
repo:objectstack#3 · os-support-ai · session_01WGufziwMkZG34d69p8BHb4 Contract reviewServed-tier: Inputs read: card #36447 body and all six comments (seat route in claim 7118706101, round-1 report 7119456005 with Q1-Q4, claim amendment 7119493070, round-2 report 7120587547); PR #36814 body and both comments; the net diff ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
I tried to break it on three points and could not: a composite child list that drifts from the schema (pinned both ways by set equality in the new test, and the dev's ablation is recorded); a title rename that a consumer keys on (titles are display text only; every reader in the diff is a label pin, and no generated artifact in the tree stores them); a hint promising behaviour the engine lacks (each checked above).
Implementing files, read for agreement:
No must-fix, no should-fix.
Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-support-ai · session_01WGufziwMkZG34d69p8BHb4 席位核对 — ACCEPT · repo:objectstack#3 · head f2cbae0 · 2026-11-24T03:22ZL1: ACCEPT Checklist
FindingsMust-fix: none. Should-fix: none. Nits (the contract review's), each with the route or a follow-up:
N2–N4 are wording and can ride with N1's card. For the seat (contract review ③, not findings on this diff)
Landing notes
|
|
repo:objectstack#3 · os-support-ai · session_01WGufziH9MVhWYLVCiw5eXB Landing · 2026-11-24T03:24Z · ACCEPT 7121034256 (L1-b) at head f2cbae0
State: ready + auto-merge (area ux-D, not governed, ≤3000 lines). |
Requested by Yibo Wang · project thread
Fixes #36447
Clause-②: no
Metadata-protocol: none
repo:objectstack#3 · os-support-ai · session_01WGufziH9MVhWYLVCiw5eXB
维护者速读
What changes
The report authoring form (
packages/spec/src/ui/report.form.ts) produces the English rows the console's report panel draws below its curated controls. Per the seat route (producer-first, noenoverlay, no rename of a section title whose key is slugged from its label), every such row now reads in business terms carrying the zh-CN meaning: data source, grouping, metric, sort.ensources with them.dateRangeandexportOptionschildren and a Description hint as form rows, with a completeness pin (report-form-composite-children.test.ts, the On a zh-CN console the view properties panel's expanded sections (表格选项, 分页, 终端用户控制, 导航与共享) still show about 60 English rows #30267 view-form shape)..meta({ title })together, which the repeater-item-titles pin requires.*.metadata-forms.generated.ts, with zh-CN, ja-JP and es-ES values authored. The other locales carry the English fill and its provenance entry.metadata-form-zh-cn.ts) carries the six new children: that file's rule is that everyreportfield string the curated inspector renders lives there, copied from the platform zh-CN bundle.DashboardWidgetInspector.tsx) draws zero rows from spec text. Its rows are console strings (engine.inspector.widget.*) that already read "Data source", "Group by", "Metrics" in English.Row table — every English row the report panel draws from spec text (lines on base 4c93f88; enumerated by rendering
ReportDefaultInspectorin English for summary, matrix and joined reports with every section open, then re-rendered at the final head)I18nLabeldescribe; no form hint)JoinedReportBlockSchematitlestype: 'date') the window applies to; omitted = the dataset's one date dimension · Default Range: Default date range preset · Allow Custom Range: Allow users to pick a custom date rangeRows the panel does not draw, because its curated controls replace them (the server-served form still renders them):
Left over — section titles whose key is slugged from the label (not renamed, per the seat route: renaming moves the
dataset_binding/joined_blockskeys of the zh overlay and of everymetadataFormscatalog):Unchanged on purpose: the "Runtime Filter" and "Drilldown" labels (zh-CN reads the same words; the ledger records both as correct English). The top-level Dataset / Values / Rows / Columns labels are not drawn by the panel. The shared
I18nLabeland list-view export describes are untouched, per the seat route.Tests
Spec, platform translations, console tests — green at 60b7741; the last commit f2cbae0 touches two test files only, re-run green
pnpm --filter @objectstack/spec exec vitest run src/ui/plus repeater-item-titles, metadata-form-declared-rows.pin, i18n-resolver and schema-index: Test Files 192 passed (192), Tests 7209 passed (7209).pnpm --filter @objectstack/spec typecheckexit 0.src/ui/report-form-composite-children.test.ts: 6 tests. Ablation throughscripts/ablation-replace.mjs, deleting theincludeHeadersrow: "Tests 1 failed / 5 passed", restored blob == HEAD.pnpm --filter @objectstack/platform-objects test: Test Files 125 passed (125), Tests 2126 passed (2126). This includes both report echo-decision ledgers and the object-lifecycle positive control (763, then 765 after the merge of main, then 771).ui/, over every report-form reader (allReportDefaultInspector*,panelBusinessWording-36373,report-schema,metadata-form-i18n,InterfacesPillar.report*,metadataError.report*,ReportConfigPanel*,ReportView*and more, 35 files): first run 17 failed in 5 files, all pinning the old labels. After those pins moved: 5 passed (5), 37 tests; the other 30 files passed.check:test-source-aliasred on CI (lanelint-ci-engine, rolled up as Lint & Repo Gates). Cause: the two edited pins reach the console's dynamic@objectstack/lint/@objectstack/formulaimports inside a case's clock. Fix: module-top side-effect imports. Local result:check-test-source-alias OK, EXIT=0, and the two files pass 2/2 files, 6/6 tests.Acceptance notes
this_month) as its option text, in both locales: the enum has no option labels in this form. Out of scope here.merge=os-regen, so whichever lands second regenerates.Verification
First read, by risk:
packages/spec/src/ui/report.form.ts(the declared children and every reworded row);packages/platform-objects/src/apps/translations/report-form-echo-decisions.test.ts(movedensources, counts and their reason);packages/spec/src/ui/report.zod.ts(six.meta({ title })strings, prose only).Two-minute check: open a summary report in the Studio with the console in English and expand "Period & export". It should show Date Field, Default Period and Allow Custom Range, then Formats, Include Headers and File Name, each with a plain-language hint. Switch to Chinese and the same rows read 日期字段 / 默认时间段 / 允许自定义范围 / 格式 / 包含表头 / 文件名.
Generated by Claude Code