Repository navigation
feat(spec): offer dataset member synonyms and description on the dataset form - #31845
Conversation
…set form Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jUoJGXXRKQk9ypaq82
…aset member vocabulary rows Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jUoJGXXRKQk9ypaq82
…ngeset Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jUoJGXXRKQk9ypaq82
📓 Docs Drift Check4 anchor(s) derived from 2 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run. What this run could not see
Coarse fallback — 171 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 bc24f108b5a3203b855447b696154597eb805147 && git checkout bc24f108b5a3203b855447b696154597eb805147
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin cc16008a1221cc0f676240c84a6b1a8285a38076 09425f66f9a81a0461547258dd14ddb406c78a00 && git checkout -B drift-repro cc16008a1221cc0f676240c84a6b1a8285a38076 && git merge --no-ff 09425f66f9a81a0461547258dd14ddb406c78a00
node scripts/docs-audit/affected-docs.mjs --json cc16008a1221cc0f676240c84a6b1a8285a38076 |
|
domain:spec#2 · zhuangjianguo · session_01QsR2jUe9c6YdtNkrzUnMUd 维护者速读
席位核对 · ACCEPT · 2026-11-09T07:22Z · head
|
Requested by Steedos · project thread
Fixes #31660
Clause-②: no
Metadata-protocol: none
维护者速读
omit行。packages/spec/src/ui/dataset.form.ts(四行新增与说明文字);packages/platform-objects/src/apps/translations/zh-CN.metadata-forms.generated.ts(译文);packages/spec/src/system/metadata-form-zod-reconciliation.test.ts(删的四行)。pnpm --filter @objectstack/spec exec vitest run src/system/metadata-form-zod-reconciliation.test.ts,预期全绿;Studio 打开任一数据集,维度/度量行里出现「同义词」「描述」。What changes
packages/spec/src/ui/dataset.form.ts: the dimensions and measures repeaters each offersynonymsanddescriptionas row properties,labelequal to the item schema's.meta({ title }), with help text: synonyms are the words people use in a question, matched by the dataset AI tools and never shown (at most 20, each at most 60 characters, one member per word); description is a plain-language business definition, published with the analytics metadata and read by the dataset AI tools, never a prompt (at most 500 characters).packages/spec/src/system/metadata-form-zod-reconciliation.test.ts: the fourkind: 'omit'rows fordataset×dimensions/measures×synonyms/descriptionare removed (their reason, "planned, not yet read", stopped being true when the readers landed;packages/spec/liveness/dataset.jsonmarks all fourlive).packages/platform-objects/src/apps/translations/*.metadata-forms.generated.ts: regenerated withnode scripts/check-i18n-bundles.mjs --write, then the eight new leaves hand-translated in the nine translated locales (values only); re-running--writedropped theirsource-hashesentries except fr's twoDescriptioncognate leaves, which the generator records as copies, matching the dataset's existing rootdescriptionentry.ui/packages/app-shell/src/views/metadata-admin/metadata-form-zh-cn.ts: the zh-CN mirror carries the same four rows.packages/platform-objects/src/apps/translations/: the zh-CN positive control 733 to 737 (four row labels) andDATASET_LEAVES40 to 48 (four rows, label plus help text).31660-dataset-member-vocabulary-form.md:@objectstack/specand@objectstack/platform-objectspatch.The row editor (
SchemaFormrepeater) derives each row property's widget from the item schema:synonyms(array of strings) renders as the comma-separated string-list input,description(I18nLabel) as the same controllabelalready uses. Notype/widgetis set on the rows, per the existing row-property convention.Tests
@objectstack/spec:vitest run src/system/metadata-form-zod-reconciliation.test.ts src/ui/green (180 files, 6360 tests).@objectstack/platform-objects: fullvitest rungreen (120 files, 1932 tests) after the two pin updates; before them, three reds named exactly the new rows (two counts, one fr en-echo, fixed by "Description de la dimension / de la mesure" as the fr precedent spells sibling rows).node scripts/check-i18n-bundles.mjs: all bundles in sync.ui/:node scripts/check-i18n-en-drift.mjs0 findings.Acceptance notes
synonymsentry inherits the repeater's comma-separated input: a synonym containing a comma cannot be typed in Studio (it can in code). Noted, not filed: no shipped synonym needs a comma.Verification
All readings on head
09425f66(after merging origin/mainad622d30throughscripts/pm/os-regen-merge.sh; nothing to regenerate):Derived gates: 87 of 87 run, all exit 0
node scripts/pm/dispatch-gates.mjs --ran FILEanswers: 87 derived families accounted for, 87 run, 0 NOT-MEASURED.check-plugin-teardown-shape --self-testfirst exited 3 (shallow clone missing its fixture commit), passed after fetching it. The 85 unlocked families ran before the merge of main (which touched no file in this diff); after the merge:check-i18n-bundlesin sync,@objectstack/spec check:generatedall 14 artifacts up to date,@objectstack/platform-objects120/120 files,@objectstack/specreconciliation +src/ui/180/180 files.ui
pnpm --dir ui exec vitest run scripts/: 170 passed, 2 skipped (172 files).metadata-form-i18n.test.tsplus the two SchemaForm tests that read the zh-CN mirror: 3/3 files, 46 tests.node scripts/check-i18n-en-drift.mjs: 0 findings. Not run locally: the whole app-shell vitest andtype-check(CI Test UI / Type Check UI).Dogfood battery: n/a (no
!in the title, no narrowing arm).Generated by Claude Code