Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

fix(components,schema-catalog): button-group honors per-button disabled, corpus stops authoring 29 unread keys - #7596

Merged
os-project-manager merged 1 commit into
mainfrom
claude/issue-7077-button-group-retire-authored-surface
Sep 4, 2026
Merged

os-project-manager merged 1 commit into
mainfrom
claude/issue-7077-button-group-retire-authored-surface

Conversation

@os-project-manager

Copy link
Copy Markdown
Collaborator

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-catalog and one .mdx; it touches no packages/types file 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.

⚠️ One row of the ruling is stale — onClick is NOT wired, and that is not a gap

The ruling's item 2 says to wire "the two keys ButtonGroupButton already declares". On main today only one of them is declared. onClick was RETIRED by #7339 (landed 2026-09-02, a8d5c717e, implementing #6124 under the same ADR-0049) and now refuses by name in all three carriers:

carrier state on main
packages/types/src/navigation.ts onClick?: never; tagged RETIRED (objectui#6124, ADR-0049)
packages/types/src/zod/navigation.zod.ts:148 onClick: handlerKeyRefusal('onClick', 'retired', 'Click handler')
content/docs/components/basic/button-group.mdx:29 already teaches the never row

The card was filed 2026-08-31, before that landed; triage verified the renderer file only and carried the stale reading into the ruling. Wiring onClick would be an un-retirement of a key another landed ADR-0049 ruling deliberately killed — an edit to packages/types plus the mirror plus the docs, which is a contract widening and would flip Clause-② to yes. That is not the lane's to do.

⭐ The ruling's intent is already satisfied for onClick by 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

fixture buttons[].value buttons[].icon group value selectionMode
basic-button-group.json 3 0 0 0
icon-toolbar.json 3 3 0 0
multiple-selection.json 3 3 1 1
outline-variant.json 3 0 0 0
single-selection.json 3 0 1 1
with-icons.json 2 2 0 0
total 17 8 2 2

29, six of six — no drift from the 2026-08-31 table. 25 leave by being stripped, 4 by with-icons.json being removed. No fixture authored onClick.

What changed

Renderer — packages/components/src/renderers/basic/button-group.tsx gains exactly one line, disabled={button.disabled}, matching every sibling that declares item-level disabled (tabs, select, dropdown-menu, menubar, context-menu, toggle-group since #4632). #4632 is the precedent in shape as well as spelling: same finding, icon retired and disabled wired.

Corpus — all 29 keys gone. button-group stays presentational.

The two filename traps the ruling named:

Rendered output of every surviving fixture, read rather than assumed (catalog-gallery-render.test.tsx fails only on an unregistered type, so it renders blanks green):

basic-button-group.json  buttons=3  texts=["Left","Center","Right"]        svg=0
icon-toolbar.json        buttons=3  texts=["Copy","Cut","Paste"]           svg=0
multiple-selection.json  buttons=3  texts=["Bold","Italic","Underline"]    svg=0
outline-variant.json     buttons=3  texts=["Day","Week","Month"]           svg=0
single-selection.json    buttons=3  texts=["Option 1","Option 2","Option 3"] svg=0

No blank buttons. svg=0 is unchanged by this PR — the renderer never read icon in the first place.

Docs delta is only what the fixture set forces. #6347 already removed value / selectionMode / onValueChange / icon from the page; re-measured on main and nothing else remained to delete. The page loses the with-icons example, and the DemoGrid wrapper plus its now-unused import go with it.

Two landed pins my change moves, updated rather than deleted

  • safe-validate-corpus-6318.test.ts asserted buttons.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 asserts icon and value are absent, and the label assertion (53 in-repo schema files carry a registered ObjectUI type but fail safeValidateSchema #6318's actual repair) is untouched.
  • button-group-doc-surface-6347.test.ts asserts single-selection.json and multiple-selection.json stay 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 rendered button elements, not the schema. A test asserting disabled is 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 through BaseSchema.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 package exports to dist, 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.

HEAD_BLOB=67d1ef545fa58e2c46d52ad18856d762a801b385
MUTATION: anchored delete applied (1 occurrence)
MUT_PROOF: anchored_count_after=0 (expect 0)  MUT_BLOB=3f50669992c157e160e624350d7810f1c061e210
MUTATED_LEG_EXIT=1     Tests  2 failed | 2 passed (4)
                       expect(element).toBeDisabled()  line 65  ('Cut')
                       expect(element).toBeDisabled()  line 82  ('Right')
RESTORE_PROOF: blob=67d1ef545... head=67d1ef545... diff_empty=yes anchored_count=1
RESTORED_LEG_EXIT=0    Tests  4 passed (4)

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_PATH and proved by state — blob equal to HEAD's and git diff HEAD empty — not by exit code. Whole run under trap restore EXIT INT TERM with 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 clean

run result
vitest run packages/components/ 231 files / 2159 tests passed
vitest run examples/schema-catalog/ + the three packages/types button-group pins 30 files / 2167 tests passed
type-check (components, schema-catalog) exit 0, both echo tsc --noEmit && tsc -p tsconfig.test.json
lint (components, schema-catalog) exit 0, 0 errors
check:doc-snippets "Every covered documentation snippet compiles against the built types." 452 of 452 judged, 0 failed
check:sdui-registration-pins "All 16 registration(s) a sideEffects array promises are present in the built console (518 chunks weighed)"
check:icon-record-names "OK — 182 authored/declared names reaching 1 record-reading resolver are live icons keys"
check:doc-types · check:doc-fences · check:control-bytes · check:docs-route-closure exit 0
regenerate:check "index.ts is up to date (431 entries)"

Both 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-pins prerequisite 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.json projects' include globs (src/**/*.test.tsx, test/**/*.test.ts) match the new files.

Open question for the maintainer — filenames that outlive the capability

single-selection.json and multiple-selection.json now 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 the with-icons.json trap the ruling named. I did not act on it: the ruling gave no instruction for these two, and button-group-doc-surface-6347.test.ts explicitly 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 to basic-button-group.json and differ only in labels.


🤖 Generated with Claude Code

https://claude.ai/code/session_01EMrWaQw3XS5DxTHxp4yRyC


Generated by Claude Code

…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
@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 50 chunks) 3182.6 KB 3191.4 KB
Main entry chunk (gzip) 143.2 KB 350 KB
Entry file index-GJvY996t.js —
Status PASS —

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

Package Size Gzipped
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 15.67KB 5.75KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.06KB 3.86KB
auth (ActiveOrganizationStorage.js) 25.05KB 9.16KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.18KB 10.59KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.39KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.65KB 2.22KB
auth (SocialSignInButtons.js) 9.61KB 3.89KB
auth (UserMenu.js) 3.41KB 1.23KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.21KB 10.80KB
auth (createAuthenticatedFetch.js) 8.46KB 3.43KB
auth (index.js) 3.19KB 1.44KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 5.13KB 2.35KB
collaboration (CommentThread.js) 26.08KB 7.56KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.49KB 2.64KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.05KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 516.24KB 117.84KB
core (index.js) 6.12KB 2.42KB
create-plugin (index.js) 10.08KB 3.26KB
data-objectstack (index.js) 180.00KB 50.20KB
fields (index.js) 242.40KB 61.26KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 1.22KB 0.64KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 4.28KB 1.75KB
i18n (index.js) 3.65KB 1.47KB
i18n (pickLocalized.js) 7.62KB 3.26KB
i18n (provider.js) 26.89KB 9.04KB
i18n (useDisplayLocale.js) 2.85KB 1.45KB
i18n (useObjectLabel.js) 34.34KB 9.17KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 38.98KB 10.98KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.55KB 0.62KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 2.53KB 0.85KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useResponsiveConfig.js) 1.37KB 0.63KB
mobile (useSpecGesture.js) 4.32KB 1.64KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 11.71KB 4.29KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.24KB 2.16KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 5.12KB 1.74KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 15.75KB 3.80KB
plugin-calendar (index.js) 48.09KB 13.34KB
plugin-charts (index.js) 70.92KB 19.75KB
plugin-chatbot (index.js) 196.19KB 46.43KB
plugin-dashboard (index.js) 132.89KB 34.68KB
plugin-designer (index.js) 212.87KB 43.19KB
plugin-detail (index.js) 250.59KB 64.06KB
plugin-editor (index.js) 2.46KB 1.10KB
plugin-form (index.js) 132.87KB 32.66KB
plugin-gantt (index.js) 167.40KB 41.05KB
plugin-grid (index.js) 210.75KB 56.95KB
plugin-kanban (index.js) 52.71KB 14.55KB
plugin-list (index.js) 113.28KB 27.59KB
plugin-map (index.js) 20.55KB 6.80KB
plugin-markdown (index.js) 13.72KB 4.69KB
plugin-report (index.js) 43.57KB 11.96KB
plugin-timeline (index.js) 30.84KB 8.85KB
plugin-tree (index.js) 9.38KB 3.22KB
plugin-view (index.js) 85.24KB 20.94KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 11.66KB 3.50KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 81.07KB 26.86KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.63KB 2.18KB
react (schema-input.js) 2.32KB 1.24KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (codegen.js) 5.41KB 2.34KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 4.93KB 2.24KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 20.57KB 5.88KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 10.35KB 3.60KB
types (ai.js) 0.20KB 0.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 2.87KB 1.00KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 2.74KB 1.41KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 0.20KB 0.18KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 4.74KB 2.25KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 4.58KB 2.23KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 0.20KB 0.18KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.11KB 3.32KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

@os-project-manager
os-project-manager marked this pull request as ready for review September 4, 2026 04:22
@os-project-manager
os-project-manager added this pull request to the merge queue Sep 4, 2026
Merged via the queue into main with commit 00d3f09 Sep 4, 2026
33 checks passed
@os-project-manager
os-project-manager deleted the claude/issue-7077-button-group-retire-authored-surface branch September 4, 2026 04:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants