Skip to content

docs(ui): give the compare-widget date dimension example its synonyms - #34942

Merged
objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-34874-dataset-member-vocabulary-docs
Nov 17, 2026
Merged

objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-34874-dataset-member-vocabulary-docs

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread

Fixes #34874

Clause-②: no
Metadata-protocol: none

#34822 (merged d576509c80) delivered the rest of the card: both full defineDataset examples on the two pages, the "Give every member its vocabulary" bullet, and the dataset-member-no-vocabulary rule itself. This PR covers the last two examples the rule would still flag, one on each page.

维护者速读

  • 改了什么:dashboards.mdx「对比组件的日期键」示例中的 close_date 维度,和 analytics.mdx「时长度量」示例中的 avg_hours_to_resolve 度量,都补上了 synonyms。
  • 为什么改:两处示例都只有名称,没有 synonyms 和 description,正是 dataset-member-no-vocabulary 会提示的写法。作者照抄就会收到警告。
  • 风险与回滚:纯文档,两个代码片段共 +9/-2 行;回滚即还原这两个文件。
  • 先看:content/docs/data-modeling/analytics.mdx 约 :133 的时长度量片段,然后是 content/docs/ui/dashboards.mdx 约 :523 的 dimensions 片段。
  • 两分钟验证:打开 analytics 页「Duration measures」小节,应见 synonyms: ['resolution time', 'time to resolve'],duration 块不变;dashboards 页「The Date Key of a Compare Widget」小节,应见 close_date 带 synonyms: ['closing date', 'date closed']。
  • 需要你做的:无,席位落地。

What changes

  • content/docs/ui/dashboards.mdx, the snippet under "The Date Key of a Compare Widget": the close_date date dimension now declares synonyms: ['closing date', 'date closed'], in the style of the page's salesDataset example. Its name still equals the dashboard's dateRange.field, which is the snippet's point.
  • content/docs/data-modeling/analytics.mdx, the example under "Duration measures": the avg_hours_to_resolve measure now declares synonyms: ['resolution time', 'time to resolve']. It is split over four lines; its duration block, the example's point, is unchanged.

Why

Both examples declared a member with neither synonyms nor a description, exactly the shape dataset-member-no-vocabulary advises on (ADR-0149 D1). An author who copies either one publishes a member that a question asked in the user's own words cannot find.

Patch round

Claim amendment 6955503178 added the analytics.mdx duration-measure line to this claim's surface, on seat 3's ruling. Commit 434c66c932 covers it, and the closing line is now Fixes.

Acceptance notes

  • No member declaration on either page now lacks both keys: the probe below reads every object-literal member array and standalone member fragment on both pages.
  • No changeset: content/docs/** ships in no package's files[]; labelled skip-changeset.

Verification

All readings at head 434c66c932.

Rule probe over both pages (built packages/lint dist)

Each object-literal dimensions/measures array and each standalone member fragment on a page was evaluated and fed to validateDatasetMemberVocabulary. String-array widget selections were skipped. Control leg: the same probe on the two files at base d576509c80.

head: content/docs/ui/dashboards.mdx: 5 member array(s)/fragment(s), 11 member(s), findings 0
head: content/docs/data-modeling/analytics.mdx: 3 member array(s)/fragment(s), 9 member(s), findings 0
base: dashboards.mdx findings 1 (dimension "close_date"); analytics.mdx findings 1 (measure "avg_hours_to_resolve")
Targeted gates

node scripts/pm/dispatch-gates.mjs --commands (no paths) derived 44 commands for the 2 paths, and all 44 exit 0.

dispatch-gates --ran: 44 derived famil(ies) accounted for — 44 run, 0 NOT-MEASURED (a DERIVED zero — all 44 recorded an exit code and none of them is 3).
overlap-check: VERDICT clean exit 0 (against origin/main 46991d0e6e, 0 PR heads)
check-governed-merges --branch: NOT governed (0 of 2 path(s) hit the register)
check-nul-bytes: exit 0

Generated by Claude Code

The date-key snippet under "The Date Key of a Compare Widget" declared a
dimension with a name and a label only, the shape the
dataset-member-no-vocabulary rule advises on. It now carries synonyms in the
style of the page's other dataset examples; the name still matches the
dashboard's date-range field.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzfR33NbV51QQU6R6bm
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 17, 2026
@github-actions github-actions Bot added size/xs documentation Improvements or additions to documentation labels Nov 17, 2026
The one-line example under "Duration measures" declared a measure with
neither synonyms nor a description, the shape the
dataset-member-no-vocabulary rule advises on. It now carries synonyms;
the duration block it demonstrates is unchanged.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzfR33NbV51QQU6R6bm
@github-actions github-actions Bot added size/s and removed size/xs labels Nov 17, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzfWpJ96QY9T7d8DvFg

L1: ACCEPT · 2026-11-17T17:32Z

Head-sha: 434c66c
Reviewer: seat 3 L1-c, for card #34874 (claim 6954909819, amendment 6955503178; os-dev reports 6955413898 and 6955761830).

席位核对

PR shape. Fixes #34874, base main. Two docs paths, +9/-2. The rest of the card was delivered by #34822 (d576509c), as the body says.

Scope vs claim. content/docs/ui/dashboards.mdx was in the claim. content/docs/data-modeling/analytics.mdx was added by the amendment after the premise missed it. Nothing else moves.

Declaration. Clause-②: no, with no changeset (docs only). No L2 is owed.

Governed / size. check-governed-merges --pr 34942: NOT governed, 11 lines.

Check-runs at 434c66c, read at about 17:32Z. 50 runs, none failed. Already success: Lint & Repo Gates, TypeScript Type Check, Build Docs, Check Documentation Links, Spec property liveness, PR-body guards, Governed Surface Queue Guard, and Test Core shard 3. Test Core (1/10) and (2/10) are still in_progress, so the aggregate Test Core has not posted. This verdict holds on the condition that Test Core finishes green on this head, which o3-E confirms before landing.

The two snippets.

  • dashboards.mdx, under "The Date Key of a Compare Widget": close_date keeps name equal to dateRange.field, which is the point of that section, and gains synonyms: ['closing date', 'date closed']. Neither synonym normalizes to the member's name or label (close date), so the dataset's vocabulary check does not refuse a repeat.
  • analytics.mdx: avg_hours_to_resolve gains synonyms: ['resolution time', 'time to resolve'], and the duration block is byte-unchanged. synonyms is a key on both DatasetMeasureSchema and DatasetDimensionSchema (ADR-0149 D1), so it applies to a duration measure too.
  • The rule probe in the report: dataset-member-no-vocabulary on built lint finds 2 hits at base (one per page) and 0 at head. So a reader who copies either snippet no longer gets the advisory.

Docs made false? None. The prose around both snippets says nothing about vocabulary, and Build Docs and the link check are green.

Must-fix

None.

Should-fix

None.

Notes

  • N1. In the compare-widget section, the synonyms appear without a word on why. A reader might think they matter to the date key. A short trailing comment would remove that reading, for example // synonyms: what an AI question may call it (ADR-0149 D1). Not owed.

Next: o3-E lands once Test Core is green on 434c66c. No seat L2 is owed. A later push owes an L1-c delta read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzfR33NbV51QQU6R6bm

Landing · 2026-11-17T17:33Z

Probe Reading
Governed check-governed-merges.mjs --pr 34942: NOT governed, docs only (2 paths)
Head 434c66c932, 5 first-parent commits behind main (under 15, no merge)
Review L1-c ACCEPT 6955807935 at 434c66c9; it holds on Test Core finishing green, and auto-merge waits for it. No L2 owed. Claim 6954909819 + amendment 6955503178
Checks On 434c66c9: 27 success, 21 skipped, 0 failed; Test Core shards 1 and 2 still running when armed
Done-when Rule probe dataset-member-no-vocabulary: base 2 findings (one per page), head 0. The rest of the card was delivered by #34822 (d576509c80)

State: ready + auto-merge armed. Fixes #34874.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 17, 2026 17:33
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 17, 2026
Merged via the queue into main with commit 28a733e Nov 17, 2026
52 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-34874-dataset-member-vocabulary-docs branch November 17, 2026 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/s skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: the dashboards and analytics pages teach dataset members with synonyms and a description

2 participants