This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
fix(components,schema-catalog): button-group honors per-button disabled, corpus stops authoring 29 unread keys - #7596
Merged
os-project-manager merged 1 commit intoSep 4, 2026
Conversation
…led`, corpus stops authoring 29 unread keys Executes the maintainer ruling of 2026-09-04 (decision batch #25, option 2): retire the authored surface, keep `button-group` presentational, and wire the declared key the renderer never read. Renderer: `ButtonGroupButton` declares `disabled?: boolean` and the renderer forwarded nothing — it passed `variant`, `size`, `className` and `label` only, so a button declaring `disabled: true` rendered live. It now forwards the value, matching every sibling that declares item-level `disabled` (`tabs`, `select`, `dropdown-menu`, `menubar`, `context-menu`, `toggle-group` since objectui#4632). No new key, no new type member, no accept/refuse change. Corpus: all six catalog fixtures authored four undeclared keys across 29 occurrences — `buttons[].value` x17, `buttons[].icon` x8, group `value` x2, `selectionMode` x2 — every one parsing green through `BaseSchema.passthrough()`. All 29 are gone. `with-icons.json` is removed rather than emptied: with `icon` retired it authored no icons and duplicated `basic-button-group.json`. `onClick` is deliberately NOT wired. objectui#6124 (PR #7339, landed 2026-09-02) retired it — `onClick?: never` plus a named zod refusal — so the ruling's second key no longer exists to forward. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EMrWaQw3XS5DxTHxp4yRyC
Contributor
✅ 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
|
os-project-manager
marked this pull request as ready for review
September 4, 2026 04:22
os-project-manager
deleted the
claude/issue-7077-button-group-retire-authored-surface
branch
September 4, 2026 04:37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #7077
Executes the maintainer ruling of 2026-09-04 (decision batch #25, option 2), recorded in comment 5534409692. Not re-adjudicated here.
Clause-②: no — re-judged from the actual diff, not from the expectation. The diff touches
packages/components,examples/schema-catalogand one.mdx; it touches nopackages/typesfile and no zod mirror. Forwarding an already-declared key to the DOM changes no accept/refuse behaviour and widens no public surface, and the fixture edits are corpus, not contract.onClickis NOT wired, and that is not a gapThe ruling's item 2 says to wire "the two keys
ButtonGroupButtonalready declares". Onmaintoday only one of them is declared.onClickwas RETIRED by #7339 (landed 2026-09-02,a8d5c717e, implementing #6124 under the same ADR-0049) and now refuses by name in all three carriers:mainpackages/types/src/navigation.tsonClick?: never;taggedRETIRED (objectui#6124, ADR-0049)packages/types/src/zod/navigation.zod.ts:148onClick: handlerKeyRefusal('onClick', 'retired', 'Click handler')content/docs/components/basic/button-group.mdx:29neverrowThe card was filed 2026-08-31, before that landed; triage verified the renderer file only and carried the stale reading into the ruling. Wiring
onClickwould be an un-retirement of a key another landed ADR-0049 ruling deliberately killed — an edit topackages/typesplus the mirror plus the docs, which is a contract widening and would flip Clause-② toyes. That is not the lane's to do.⭐ The ruling's intent is already satisfied for
onClickby the other route. ADR-0049 is enforce-or-remove; #6124 removed it. There is no declared-but-dead handler left to forward. This needs PM acknowledgement, not new work.Re-count on the current tree — matches the card exactly
buttons[].valuebuttons[].iconvalueselectionModebasic-button-group.jsonicon-toolbar.jsonmultiple-selection.jsonoutline-variant.jsonsingle-selection.jsonwith-icons.json29, six of six — no drift from the 2026-08-31 table. 25 leave by being stripped, 4 by
with-icons.jsonbeing removed. No fixture authoredonClick.What changed
Renderer —
packages/components/src/renderers/basic/button-group.tsxgains exactly one line,disabled={button.disabled}, matching every sibling that declares item-leveldisabled(tabs,select,dropdown-menu,menubar,context-menu,toggle-groupsince #4632). #4632 is the precedent in shape as well as spelling: same finding,iconretired anddisabledwired.Corpus — all 29 keys gone.
button-groupstays presentational.The two filename traps the ruling named:
icon-toolbar.json— the blank-button trap is STALE and does not fire. Catalog fixtures declare childiconkeys that button-group, breadcrumb and command never read — two of them are named with-icons.json and render none #5931's "renders three buttons with empty text and zero svg" was measured before 53 in-repo schema files carry a registered ObjectUI type but failsafeValidateSchema#6318, which gave it labels (that PR's own changelog: "the button group's three buttons went from blank to labelled"). Verified by rendering, not by assuming — see below. It keeps its labels and itsvariant: outline/size: smdemo, so "rewritten with labels" is already satisfied and the file stays.with-icons.json— REMOVED. Withiconretired it authored no icons, and what remained duplicatedbasic-button-group.json. Its demo slot on the docs page goes with it.Rendered output of every surviving fixture, read rather than assumed (
catalog-gallery-render.test.tsxfails only on an unregistered type, so it renders blanks green):No blank buttons.
svg=0is unchanged by this PR — the renderer never readiconin the first place.Docs delta is only what the fixture set forces. #6347 already removed
value/selectionMode/onValueChange/iconfrom the page; re-measured onmainand nothing else remained to delete. The page loses thewith-iconsexample, and theDemoGridwrapper plus its now-unused import go with it.Two landed pins my change moves, updated rather than deleted
safe-validate-corpus-6318.test.tsassertedbuttons.map(b => b.icon)was['copy','scissors','clipboard']. That pin's own header says it names the key that moved precisely so a later sweep deleting it cannot go silently green — this PR is that sweep. The assertion is inverted, not removed: it now assertsiconandvalueare absent, and thelabelassertion (53 in-repo schema files carry a registered ObjectUI type but failsafeValidateSchema#6318's actual repair) is untouched.button-group-doc-surface-6347.test.tsassertssingle-selection.jsonandmultiple-selection.jsonstay on disk. They do: keys stripped, files kept. See the open question below.New pins
packages/components/src/__tests__/button-group-item-disabled-7077.test.tsx— asserts the renderedbuttonelements, not the schema. A test assertingdisabledis a member of the mirror would restate a declaration this PR did not change and would stay green with the forwarding deleted again.examples/schema-catalog/test/button-group-retired-keys-7077.test.ts— derives "undeclared" from the shipped mirror rather than blacklisting the four names, so the rule is "author nothing undeclared" and keeps holding as the mirror moves. Carries a counter-probe asserting the retired keys really do parse green throughBaseSchema.passthrough(), which is why membership is not read off parse.Ablation — both legs, mutation and restore proved by state
Subject resolves through a relative source import (
../renderers), not through packageexportstodist, so no rebuild leg applies — and the RED below is itself the proof: a dist-resolved subject would have ignored the source mutation and stayed green.Predicted direction RED, observed RED. Mutation proved on disk (anchored count 1 to 0, blob differs from HEAD) before any result was read; restore via
git checkout HEAD -- ABSOLUTE_PATHand proved by state — blob equal to HEAD's andgit diff HEADempty — not by exit code. Whole run undertrap restore EXIT INT TERMwith absolute paths. Exactly 2 of 4 cases failed under mutation: the two that assert the forwarding. The two that assert "no button disabled when none declares it" correctly stayed green, which is what makes the RED specific rather than a broken render.Verification — all at final commit
17beb3d3e, tree cleanvitest run packages/components/vitest run examples/schema-catalog/+ the threepackages/typesbutton-group pinstype-check(components, schema-catalog)tsc --noEmit && tsc -p tsconfig.test.jsonlint(components, schema-catalog)check:doc-snippetscheck:sdui-registration-pinssideEffectsarray promises are present in the built console (518 chunks weighed)"check:icon-record-namesiconskeys"check:doc-types·check:doc-fences·check:control-bytes·check:docs-route-closureregenerate:checkBoth gates that first returned exit 2 / PRECONDITION NOT MET were treated as not measured, not as green: their prerequisites were built and both were re-run to a real verdict. The
check:sdui-registration-pinsprerequisite additionally required building@object-ui/plugin-tree, whose absence is pre-existing and unrelated to this diff.Type-check genuinely covers the new tests: both
tsconfig.test.jsonprojects'includeglobs (src/**/*.test.tsx,test/**/*.test.ts) match the new files.Open question for the maintainer — filenames that outlive the capability
single-selection.jsonandmultiple-selection.jsonnow author no selection, but their filenames still name the capability this ruling declares does not exist, and the corpus is retrieved by name. That is the same class as thewith-icons.jsontrap the ruling named. I did not act on it: the ruling gave no instruction for these two, andbutton-group-doc-surface-6347.test.tsexplicitly asserts both stay on disk ("catalog entries are a separate verification population and are NOT deleted to tidy that up"). Deleting or renaming them means editing another card's landed pin, which is a decision rather than a dev's call. After stripping, both are structurally identical tobasic-button-group.jsonand differ only in labels.🤖 Generated with Claude Code
https://claude.ai/code/session_01EMrWaQw3XS5DxTHxp4yRyC
Generated by Claude Code