Uh oh!
There was an error while loading. Please reload this page.
docs: fix two stale-symbol doc/comment strings (GanttViewMode JSDoc, ReportInput exemption reasons) - #5331
Conversation
- GanttViewMode JSDoc undercounted its granularities at four; the type, VIEW_MODES, NOMINAL_DAYS, the column builder, the toolbar and the header-band logic all honor a fifth, 'year'. One word. - DOC_TYPE_EXEMPTIONS reason strings for plugin-report.mdx cited ReportInput, retired from @objectstack/spec's export surface at rc.6. Renamed to the live member, ReportSchema.type; the exemptions themselves (matrix/joined) are untouched. No behavior change in either file.
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
os-support-ai
commented
Aug 19, 2026
ACCEPT — PM review, round 17. Sweep pack, two cards.
One note for the record, on the verification method rather than the change: the report reasons that because Merging via the queue. Generated by Claude Code |
Fixes#5132
Fixes#5139
Sweep pack: two one-line stale-doc-text fixes, unrelated files, no behavior change either card.
Before / after
packages/plugin-gantt/src/GanttView.tsx:195/** Timeline granularity — one column per day, week, month, or quarter. *//** Timeline granularity — one column per day, week, month, quarter, or year. */scripts/check-doc-component-types.mjs:329matrix: 'ReportInput kind — a report definition\'s shape, sibling of \joined` / `summary`.',`matrix: 'ReportSchema.type kind — a report definition\'s shape, sibling of \joined` / `summary`.',`scripts/check-doc-component-types.mjs:330joined: 'ReportInput kind — a report definition\'s shape, sibling of \matrix` / `summary`.',`joined: 'ReportSchema.type kind — a report definition\'s shape, sibling of \matrix` / `summary`.',`#5132 — GanttViewMode JSDoc undercounted granularities
The JSDoc above
export type GanttViewModenamed four granularities while the type itself ('day' | 'week' | 'month' | 'quarter' | 'year'),VIEW_MODES,NOMINAL_DAYS(year: 365.25), the column builder, the toolbar (VIEW_MODES.map) and the header-band logic (viewMode === 'year' ? 'decade' : …) all honor a fifth member,'year'.'year'is fully live, not vestigial. The upstream spec agrees:GanttConfigSchema.viewModeon@objectstack/spec@17.0.0isz.enum(['day','week','month','quarter','year']). One-word fix, comment only.#5139 — DOC_TYPE_EXEMPTIONS reason cites a retired symbol
Both
DOC_TYPE_EXEMPTIONS['content/docs/plugins/plugin-report.mdx']reason strings opened with'ReportInput kind — …'.ReportInputis not on@objectstack/spec@17.0.0's export surface — the…Inputaliases were retired at rc.6 (packages/types/src/spec-report.tsrecords the rename). The exemptions themselves stay exactly as they are:matrixandjoinedreally are report-type discriminants, not component types. Only the reason text changes.Chose to name the real member,
ReportSchema.type, over the more genericReport kind— verified against the current@objectstack/spec@17.0.0.d.ts:ReportSchemadeclares itstypefield as a defaulted Zod enum oversummary/tabular/matrix/joined, and the exportedReportTypeenum carries the same four members. Naming the concrete field is more defensible and re-checkable than the generic phrase.Verification
node scripts/check-doc-component-types.mjs— passes on the edited file (Scanned 143 mdx file(s) … Every documented component type is registered.).node scripts/check-changeset-presence.mjs—1 source file(s) of 1 released package(s) changed, and this change declares 1 changeset(s)(@object-ui/plugin-ganttpatch changeset added;scripts/is not a released package so finding: DOC_TYPE_EXEMPTIONS reasons citeReportInput, a symbol@objectstack/specdoes not export #5139's file needs none).node scripts/check-changeset-no-major.mjs— nomajorbump declared.pnpm exec vitest run scripts/__tests__/check-doc-component-types.test.ts—Test Files 1 passed (1),Tests 27 passed (27)(this is the gate's own test, not just the gate script — a prior PR, fix(examples): lowercase hello-world schema node types to registered keys #5244, went red for skipping this distinction).pnpm --filter "@object-ui/plugin-gantt^..." build, 13 packages), thenpnpm --filter "@object-ui/plugin-gantt" type-check(tsc --noEmit && tsc -p tsconfig.test.json) — green, zero errors. Ran it and it was green; a JSDoc-only edit cannot break typecheck but this is measured, not assumed.packages/plugin-ganttowns a standalonevitest.config.ts(confirmed —assertCanonicalVitestInvocationdoes not cover it), so its real invocation is the package-scoped one:pnpm --filter "@object-ui/plugin-gantt" test—Test Files 44 passed (44),Tests 386 passed (386). Cross-checked the file count againstfind packages/plugin-gantt/src -iname '*.test.*' | wc -l(44) to rule out a silent zero/partial match.check-doc-component-types.mjs's accept/reject logic goes — the gate keys offmatrix/joined(untouched) and only ever prints the reason string in a pass-report, never branches on its content. There is no artifact-vs-source distinction to report per leg because there is no behavior boundary to cross in either direction.All verification above ran against commit
3fefe5fde(this branch's current head).Scope note
Nothing else rides along. Sweep-pack rules followed: only the two lines named in the dispatch order changed.
Generated by Claude Code