Repository navigation
fix(spec): the dashboard settings hints read in business terms - #36883
objectstack-fleet[bot] merged 6 commits into
Conversation
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzh1FMUQYf1PcEunaaK
…terms in every locale Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzh1FMUQYf1PcEunaaK
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzh1FMUQYf1PcEunaaK
…shboard-form-business-wording
…siness wording Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzh1FMUQYf1PcEunaaK
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzh1FMUQYf1PcEunaaK
📓 Docs Drift CheckThis PR changes 2 package(s): 5 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 7 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 be5991a171f8267a84db73c4f3e738b64353ff27 && git checkout be5991a171f8267a84db73c4f3e738b64353ff27
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 7a5ae65e54e7eda354cf410100c7450257433069 5af304e77f7a0925318baf7cf0cccf6a360e1230 && git checkout -B drift-repro 7a5ae65e54e7eda354cf410100c7450257433069 && git merge --no-ff 5af304e77f7a0925318baf7cf0cccf6a360e1230
node scripts/docs-audit/affected-docs.mjs --json 7a5ae65e54e7eda354cf410100c7450257433069
|
|
repo:objectstack#3 · os-support-ai · session_01WGufzgv4KRPATgwPAzKKMU Contract-review-claim: session_01WGufzgv4KRPATgwPAzKKMU · head 5af304e · 2026-11-24T08:21Z |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgv4KRPATgwPAzKKMU Contract reviewServed-tier: Inputs read: card #36816 (body and all 5 comments: triage 7119534233, claim 7124319193, blocked report 7124795519, claim amendment 7124829549, final report 7125984951; no ruling and no earlier record on the card), PR #36883 (body, 16-file list, net diff ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
Against the card's acceptance: no CSS unit, casing term or "config" remains in any
No must-fix, no should-fix.
Read outside the diff, not reviewed: Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgv4KRPATgwPAzKKMU 席位核对 — ACCEPT · repo:objectstack#3 · head 5af304e · 2026-11-24T08:26ZL1: ACCEPT Read
Checklist
FindingsNo must-fix, no should-fix.
Notes
|
|
repo:objectstack#3 · os-support-ai · session_01WGufzh1FMUQYf1PcEunaaK Landing · 2026-11-24T08:27Z · ACCEPT 7126136309 (L1-b) at head 5af304e
State: ready + auto-merge (area ux-D, not governed, ≤3000 lines). |
Requested by Yibo Wang · project thread
Fixes #36816
Clause-②: no
Metadata-protocol: none
repo:objectstack#3 · os-support-ai · session_01WGufzh1FMUQYf1PcEunaaK
维护者速读
What changes
The dashboard authoring form (
packages/spec/src/ui/dashboard.form.ts) supplies the hints the Studio dashboard settings panel draws. The route is the one the seat set for the report panel: English wording at the producer first, noenoverlay, and no rename of a section title whose key is slugged from its label. Nine hints are rewritten in business terms, with no CSS units, casing jargon or "config".The Columns and Gap rows describe what the dashboard renderer really does with an empty value. An unset
columnsis inferred from the widgets' widths (4 or 12), not fixed at 12. An unset gap falls back to the standard 4.node scripts/check-i18n-bundles.mjs --writerewrote theenleaves and kept every translated value (merge mode). The nine leaves were then re-translated by hand in all ten translated locales: zh-CN, zh-Hant, ja-JP, ko, es-ES, fr, de, pt-BR, ru and ar. This follows the repository's usual rule for changed source text (the last source-hint change, 9742142, re-translated every locale too). No*.source-hashes.generated.tsmoved: these leaves had no provenance entry.ui/packages/app-shell/src/views/metadata-admin/metadata-form-i18n.ts, claim amendment 7124829549). The curated dashboard inspector renders Chinese from this overlay, not from the platform bundle. Its nine dashboard hints now carry the platform's new zh-CN wording; before, they still read "snake_case 唯一标识" and "栅格列数(默认 12)". The comment over the gap row is rewritten to match.metadata-form-i18n.test.ts) read the producer's English gap hint and asserted it still held developer units, so that its zh leg would mean something. It was built to go red once the spec spoke plainly. Its English leg is now a fixed literal (the pre-rewrite hint). It then holds both the producer's English and the zh overlay free of the vocabulary, and a new case sweeps every dashboard hint in both languages. Thecolumnszh pin moved with its row.packages/spec/src/ui/dashboard-form-business-wording-36816.test.tsnames the nine rewritten rows. Each must declare a hint free of developer vocabulary, and a sweep holds every hint in the form to the same rule. A control proves the vocabulary test fires on the old hints. It pins the kind of text, not a sentence.Unchanged on purpose: section titles and descriptions; field and repeater-row labels (each row label must equal its schema
title); the three header-child hints, which already read as a builder would say them; and theDashboardSchema.describe()prose, which is author documentation outside the panel. The widget panel (studioengine.inspector.widget.*) is out of scope. Left over (slugged section keys): none — no section title was renamed.Contract review. This PR moves non-test
packages/spec/srctext, so it owes an L2 contract review before landing.Tests
spec, platform-objects and console readers: green at 5af304e
pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 src/ui/ src/kernel/repeater-item-titles.test.ts src/system/i18n-resolver.test.ts: Test Files 191 passed (191), Tests 7185 passed (7185). The new pin alone, verbose: 11 passed (11).typecheckpluscheck:generated: exit 0, "All 14 generated artifacts are up to date" (measured at 2969e9a; the merge of main touched no spec file of this diff).ui/: metadata-form-i18n, dashboard-schema, DashboardDefaultInspector*, p1-spec-alignment andpackages/app-shell/src/preview: Test Files 56 passed (56), Tests 447 passed (447). Before the console change, the old control failed as predicted: 1 failed / 78 passed.scripts/ablation-replace.mjs, putting the old gap hint back (anchor x1 to x0): Tests 2 failed / 9 passed. Restored blob equals HEAD's.Acceptance notes
ui/packages/plugin-dashboard/src/DashboardRenderer.tsx:409readsschema.gap || 4. An authored gap of 0, whichDashboardSchema.gapallows (.min(0)), would therefore render as 4 (1rem). This is read from the code, not measured through a public door. The new Gap hint deliberately does not promise that 0 means no space.DashboardSchema.columnssays "(default 12)", but the renderer infers 4 or 12 from the widgets' widths when columns is unset (DashboardRenderer.tsx:391-406). The new Columns hint describes the inferred behaviour; the describe prose is unchanged.DashboardSchema.describe()prose (dashboard.zod.tsgap and header) and in its mirror inpackages/cli/src/commands/explain.ts:293. That is author documentation, outside the panel and outside this card's surface.merge=os-regen, so whichever lands second regenerates;overlap-checkreports a clean merge with all three today.Verification
First read, by risk:
packages/platform-objects/src/apps/translations/*.metadata-forms.generated.ts(the ten hand-translated sets of nine leaves);ui/packages/app-shell/src/views/metadata-admin/metadata-form-i18n.test.ts(the reworked control and the new sweep);packages/spec/src/ui/dashboard.form.ts(the nine hints).Two-minute check: open a dashboard in Studio with the console in English and open its settings. The Layout rows should read "How many columns the widgets are laid out on…", "How much space to leave between widgets…" and "How often the dashboard reloads its data…". Switch to Chinese and the same rows read 组件排布所用的列数… / 组件之间留出的空间… / 仪表盘重新加载数据的频率(秒)….
Generated by Claude Code