Repository navigation
docs: re-fence the complex, disclosure, layout, navigation and overlay remainder of objectui#5867 as ts, 31 blocks across 31 component pages (batch 8) - #11346
Conversation
The plaintext-fenced TypeScript blocks under content/docs/components/
{complex,disclosure,layout,navigation,overlay}/** are now fenced ts, so
check-doc-snippet-types compiles them. Fence language only in this commit;
the names the blocks use without declaring follow separately.
Claude-Session: https://claude.ai/code/session_01TdiauJaVCHuj45EzZGUxHh
Co-authored-by: Claude <noreply@anthropic.com>
…med it (objectui#5867 batch 8) Compiled as ts, 24 of the 31 blocks failed only on TS2304 for SchemaNode, a name they used without declaring. Each now imports it from @object-ui/types on its first line, as layout/box.mdx already does, so a reader who copies one block gets code that compiles. No component type changes. Claude-Session: https://claude.ai/code/session_01TdiauJaVCHuj45EzZGUxHh Co-authored-by: Claude <noreply@anthropic.com>
…ENCES rows (objectui#5867)
The re-fenced pages under content/docs/components/{complex,disclosure,
layout,navigation,overlay}/** carry no unhighlighted TypeScript block any
more, so their rows read 0 and the shrink-only gate requires them gone.
This is the standing rule the maintainer authorised on objectui#5867
(comment 5905984416): a batch deletes its own zero-count rows and nothing
else. 31 lines deleted, none added, no number raised, gate logic untouched.
Claude-Session: https://claude.ai/code/session_01TdiauJaVCHuj45EzZGUxHh
Co-authored-by: Claude <noreply@anthropic.com>
…jectui#5867 batch 8) alert-dialog-read-dialect-7104, overlay-trigger-union-7081 and overlay-node-slot-doc-types-7082 extract an overlay page's interface from its schema fence by regex, and threw once batch 8 re-fenced those pages from plaintext to ts. The first two now read the ts fence. The 7082 file takes the per-subject fence language batch 7 (PR #11341) introduced, with its five overlay subjects on ts; EmptySchema stays plaintext here until #11341 lands. No assertion changes. Claude-Session: https://claude.ai/code/session_01TdiauJaVCHuj45EzZGUxHh Co-authored-by: Claude <noreply@anthropic.com>
Three @object-ui/types test files moved with the re-fence, so the presence gate counts published source; an empty frontmatter declares that nothing is released. Claude-Session: https://claude.ai/code/session_01TdiauJaVCHuj45EzZGUxHh Co-authored-by: Claude <noreply@anthropic.com>
|
changeset-claim-re-read
|
✅ Console Performance Budget
The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it. 📦 Bundle Size Report
Size Limits
|
✅ Console Performance Budget
The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it. 📦 Bundle Size Report
Size Limits
|
Two conflicts, both resolved by keeping both batches' work: - KNOWN_UNHIGHLIGHTED_TS_FENCES keeps both deletions; the map now holds only content/docs/components/basic/text.mdx and content/docs/components/form/file-upload.mdx. - overlay-node-slot-doc-types-7082.test.ts: all six SUBJECTS read fence 'ts' (batch 7 flipped EmptySchema, batch 8 the five overlay pages). Both changesets are kept. Claude-Session: https://claude.ai/code/session_01TdiauJaVCHuj45EzZGUxHh Co-authored-by: Claude <noreply@anthropic.com>
✅ Console Performance Budget
The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it. 📦 Bundle Size Report
Size Limits
|
…jectui#11168 slice 3, round 4) origin/main d0fba91 (#11346, #11359, #11361, #11367). It touches pnpm-lock.yaml, which this branch also edits (the plugin-tree devDependency link); no conflict. Claude-Session: https://claude.ai/code/session_01VhxTqosz7wn54ahqyxgERT Co-authored-by: Claude <noreply@anthropic.com>
Refs #5867 (batch 8)
Clause-②: no. A docs fence-language and compile pass; no contract or accept set moves.
Batch 8 of objectui#5867's lane, the last five subgroups of the components remainder. Every TypeScript block that triage's classifier reads as code under
content/docs/components/{complex,disclosure,layout,navigation,overlay}/**was fencedplaintext, socheck-doc-snippet-typesnever compiled it. All 31 of them are now fencedts. 24 then failed to compile, all on one name, and each is fixed in the block itself. None is marked as a fragment, and no component type or gate logic moved.Session:
https://claude.ai/code/session_01TdiauJaVCHuj45EzZGUxHhPopulation, re-measured on
main5262f7dd3Measured with
node scripts/check-doc-fence-languages.mjs --list(the gate's own walk and triage's classifier). The whole remainder onmainwas 72 blocks in 72 files. The five subgroups hold 31 blocks in 31 files, and the batch takes all of them. Neither excluded page (basic/text.mdx,form/file-upload.mdx) is in these subgroups.tsSchemaNodeonly)carousel,resizable,scroll-area,view-switcheraccordion,collapsibleheader-barmenubarSchemaNode)The handover predicted about 25 red, with
ReactNodeincomplex/data-table.mdx. That did not reproduce. The block in the population is theTableColumn/DataTableSchemalisting, and it compiles untouched. The page's otherplaintextfence, which ends inReactNode, opensrenderCellEditor?: (ctx: {. The classifier reads that as prose, so it was never in the population and is not in this batch.These figures are readings at the heads named below. The live number is that
--list, and nothing re-derives this table.All 31 blocks are self-declared
interfacelistings, so they belong to the separate #6143 own-interface count. The compile now proves that every member type resolves. It does not judge the member rows against the shipped schema; the three@object-ui/typesdoc pins below still do that for the overlay pages.The fix, 24 times
Each red block used
SchemaNodewithout declaring it. Each now opens withimport type { SchemaNode } from '@object-ui/types';, which is whatlayout/box.mdxand batch 7'slist.mdx/empty.mdxalready do. The import is the block's first line, and triage's classifier readsimport, so if one of these blocks is ever fencedplaintextagain the fence gate still flags it. The ablation below measures exactly that.KNOWN_UNHIGHLIGHTED_TS_FENCES: 31 rows deleted, none addedThis follows the card's standing rule (authorisation comment 5905984416): a batch deletes the zero-count rows of its own re-fenced pages.
scripts/check-doc-fence-languages.mjshas 0 lines added and 31 deleted, every one a map row. No number was raised and the gate logic is untouched. The deleted rows, all undercontent/docs/components/:complex/:carousel,data-table,filter-builder,filter-ui,resizable,scroll-area,sort-ui,table,view-switcher(9)disclosure/:accordion,collapsible,toggle-group(3)layout/:aspect-ratio,card,container,flex,grid,page,stack,tabs(8)navigation/:header-bar(1)overlay/:alert-dialog,context-menu,dialog,drawer,dropdown-menu,hover-card,menubar,popover,sheet,tooltip(10)Each row is the page's
.mdxwith a count of 1. The map goes from 72 rows to 41 onmain.The doc-pin readers, re-pointed with no assertion change
The three
packages/types/src/__tests__readers batch 7 named extract an overlay page's interface from its schema fence by regex. All three threw once the fence becamets:Test Files 3 failed | 1 passed (4), every failureexpected exactly one plaintext fence in ..., found 0.filter-builder-mirror-6939.test.tsalso reads a page in this batch (complex/filter-builder.mdx), but it locatesinterface X {across the whole page. It is fence-agnostic and stayed green.alert-dialog-read-dialect-7104.test.tsandoverlay-trigger-union-7081.test.ts:schemaFencenow reads the page's onetsfence. Every page they read is in this batch.overlay-node-slot-doc-types-7082.test.tstakes batch 7's per-subject fence language (Subject.fence). The header,schemaFence, theSubjectfield, the call site and the counter-probe use the same text PR docs: re-fence the basic, data-display, feedback and form remainder of objectui#5867 as ts, 39 blocks across 39 component pages (batch 7) #11341 introduced. The only difference from docs: re-fence the basic, data-display, feedback and form remainder of objectui#5867 as ts, 39 blocks across 39 component pages (batch 7) #11341's version of the file is the sixSUBJECTSvalues: the five overlay subjects arets.EmptySchemastaysplaintexthere, because onmainfeedback/empty.mdxis still plaintext until docs: re-fence the basic, data-display, feedback and form remainder of objectui#5867 as ts, 39 blocks across 39 component pages (batch 7) #11341 lands.expect(line touched is the counter-probe's call, which gains the fence argument exactly as in docs: re-fence the basic, data-display, feedback and form remainder of objectui#5867 as ts, 39 blocks across 39 component pages (batch 7) #11341. Its assertion (toThrow(/found 2/)) is unchanged.Because these tests sit under
packages/types/src,check-changeset-presencecounts them as published source and goes red without a changeset (measured: exit 1, naming the three files)..changeset/5867-plaintext-fenced-ts-batch8.mdtherefore has an empty frontmatter, so nothing is released. Noskip-changesetlabel is applied.Serial with PR #11341 (batch 7)
At this PR's opening, #11341 is still an open draft (head
1f9701afc) andmainhas not moved from5262f7dd3, so the pre-PRgit merge origin/mainwas a no-op (Already up to date.). A dry run,git merge-tree --write-treeof this head against #11341's head, shows exactly two conflicts. Both are mechanical, and everything else merges cleanly:scripts/check-doc-fence-languages.mjs, the map: keep both sides' deletions. The map then holds exactly two rows:content/docs/components/basic/text.mdxandcontent/docs/components/form/file-upload.mdx, the two excluded pages.overlay-node-slot-doc-types-7082.test.ts, theSUBJECTSblock: set all six subjects tofence: 'ts'.Once #11341 lands, this branch merges
main(merge, never rebase) with that resolution, and the gates re-run on the new head.Verification at
77e90204The tree was clean for every reading. Heavy runs went through
os-verify-lock.shinside a memory watchdog (kill below 2500 MB available), which never fired. Exit codes were captured by redirect before any pipe.turbo run buildover the snippet gate's own--build-filterclosure,--concurrency=2:Tasks: 35 successful, 35 total, VERDICT command-exit 0. The filter re-derived at the final head is byte-identical (md5 equal), so the closure did not move.5262f7dd3): exit 0,245 covered (129 of them hold a ts/tsx block), 4 ungated,Covered blocks: 854 — 698 to compile, 156 declared fragment(s).,698 of 698 block(s) judged, 0 failed.fb370a45, re-fence only): exit 1,729 to compile,729 of 729 block(s) judged, 24 failed.All 59 diagnostics wereTS2304: Cannot find name 'SchemaNode', across exactly the 24 files in the table.77e90204): exit 0,245 covered (160 of them hold a ts/tsx block), 4 ungated,Covered blocks: 885 — 729 to compile, 156 declared fragment(s).,Syntax phase: every block parsed,729 of 729 block(s) judged, 0 failed.,Every covered documentation snippet compiles against the built types.tsblock +31. Covered, ungated and fragments are unchanged.--self-testgave26 cases pass. The run gave exit 0,41 declared file(s) carrying 41 block(s)(base: 72 / 72).check:doc-types:Every documented component type is registered.check-prompt-component-keyscheck:doc-example-ids:414 real reference(s) all resolvecheck:doc-examplesdocs:check-links:Links are valid across 17 scan roots.check:docs-route-closurecheck-shell-escape-residuecheck:control-bytes:OK (scanned 9806 tracked text file(s); skipped 85 binary). A grep self-scan of the 36 changed files found 0 control bytes.check:new-line-citations:0 new citation(s)check-changeset-presence:declares 1 changeset(s), EMPTY frontmattercheck-changeset-no-majorcheck-governed-queue-guard --testover the 36 paths:NOT GOVERNEDvitest --maxWorkers=2:markdown-test-inputs.mjs --list(thecontent/docs/**andcontent/docs/components/**readers, plus the named overlay and filter-builder readers) and agit grepfor the five subgroup paths. That union is 21 files:Test Files 21 passed (21),Tests 1001 passed (1001).vitest run scripts/__tests__/(the fence script's own test file plus every scripts test that greps its name):Test Files 177 passed | 2 skipped (179),Tests 5371 passed | 2 skipped (5373), VERDICT command-exit 0.pnpm --filter @object-ui/types type-check(tsc --noEmit, thentsconfig.examples.json, thentsconfig.test.json) exits 0 with 0error TS.tsc -p tsconfig.test.json --listFilesincludes all three edited tests.eslint --no-inline-config --format jsonover the 36 changed files gives 36 results.File ignored because no matching configuration was supplied(31.mdx, 1.md).eslint.config.jsmatchests/tsxplus the default JavaScript set.scripts/check-doc-fence-languages.mjs), with 0 errors and 2 warnings. Both warnings areno-explicit-anyon an untouched pre-existing line ofoverlay-trigger-union-7081.test.ts; the same line is present at base.eslint.config.jsconfigures noprojectorprojectService, so type-aware linting is off and this diff cannot move any untouched file's verdict. Repo-widepnpm lintis left to CI.Ablation: one fixed block re-fenced
plaintextThe fix was committed first. The tool was objectstack's
ablation-replace.mjsin wrap mode, with an EXIT/INT/TERM restore on the absolute path. The target wasoverlay/dialog.mdx, one of the import-fixed blocks. The anchor```tswent x1 to x0,```plaintextwent x0 to x1, and the blob changed (742584d2to6b0085f6). On-disk counts taken while mutated were 0 / 1.check:doc-fencesred, one block beyond the baseline namingdialog.mdx;check:doc-snippetsgreen but one block fewer.check:doc-fencesexit 1:1 TypeScript block(s) under an unhighlighted fence, beyond the baseline: content/docs/components/overlay/dialog.mdx:12 ```plaintext — import type { SchemaNode } from '@object-ui/types';.check:doc-snippetsexit 0 with728 to compileand0 failed. That is the silent hole the fence gate closes.742584d2), andgit diff HEADis empty.Not measured
tsfences these pages' siblings already render.e2e/docs-smoke.spec.ts(Playwright) and the fullpnpm test: CI-owned.Acceptance notes
KNOWN_UNHIGHLIGHTED_TS_FENCESholds only the two excluded rows (basic/text.mdx, PR feat(cli):objectui validateandobjectui checkjudge through the strict authoring face (objectui#5250, slice A) #11069 parked;form/file-upload.mdx, its own labelled line). That is the whole of the card's remaining fence debt.scripts/markdown-test-inputs.mjsdoes not recordoverlay-trigger-union-7081.test.tsas a reader of the overlay pages. The test builds its path from a template (${DOCS}/${type}.mdx), so the scanner never makes it a candidate, and--auditpasses. It has no effect today:content/docs/**is already a recorded input, so--changedanswers non-empty for any of these pages and CI takes the full run.Generated by Claude Code
Update after PR #11341 landed (seat addendum, 2026-10-01)
92bcc82. This branch merged it at9e698f3e(a merge, never a rebase) with the keep-both resolution declared above:KNOWN_UNHIGHLIGHTED_TS_FENCESnow holds onlybasic/text.mdxandform/file-upload.mdx;overlay-node-slot-doc-types-7082SUBJECTS readfence: 'ts';9e698f3e, in the dev's follow-up report on objectui#5867 (5927398586). These readings supersede the77e90204verification above:check:doc-fences: 2 declared files;check:doc-snippets: 768 of 768 judged, 0 failed;scripts/__tests__/: green.