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

docs(checkbox): schema block declares checked/description/error/className/wrapperClass - #8036

Merged
baozhoutao merged 1 commit into
mainfrom
claude/issue-7724-checkbox-schema-block
Sep 6, 2026
Merged

baozhoutao merged 1 commit into
mainfrom
claude/issue-7724-checkbox-schema-block

Conversation

@baozhoutao

Copy link
Copy Markdown
Contributor

Fixes #7724

What changed

Replaced the six-line ## Schema summary block in content/docs/components/form/checkbox.mdx with the full set of CheckboxSchema members declared on main at fix time (packages/types/src/form.ts:306, re-read fresh — not copied from the triage comment's 0558e0f reading).

Before / after

Member Before After Source
type listed listed own
name listed listed own
label listed listed own
defaultChecked listed listed own
checked missing added own (form.ts:323)
required listed listed own
disabled listed (verbatim, #7530-current shape) listed (verbatim, unchanged) inherited (BaseSchema, base.ts:343)
description missing added own (form.ts:327)
error missing added own (form.ts:331)
className missing added inherited (BaseSchema, base.ts:171)
wrapperClass missing added own (form.ts:354, landed by #7723)
onChange not listed not listed (deliberate — see below) own (form.ts:364)

The one judgment: onChange

CheckboxSchema.onChange carries the same docblock as InputSchema/TextareaSchema/SelectSchema/FileUploadSchema's onChange: "RUNTIME SLOT ... a host-supplied function, NOT authorable metadata: JSON has no function value, so the zod twin refuses this key by name." Checked precedent across every sibling content/docs/components/form/*.mdx page whose schema declares a real (non-never) onChange:

  • Omit onChange from the doc block: input.mdx, textarea.mdx, select.mdx, file-upload.mdx (4)
  • Include onChange: date-picker.mdx, input-otp.mdx (2)

Majority (4 of 6) omits it, and it's the same majority whose schemas carry the identical "not authorable metadata" docblock as checkbox's own — so onChange stays out of this block.

For the inherited className, precedent runs the other way: 9 of 14 comparable sibling pages (file-upload, radio-group, date-picker, combobox, input-otp, calendar, button, command, label) document it; only the minimal-summary pages (input, select, switch, textarea, slider) omit it — the same genre checkbox.mdx is leaving behind. className is added.

Scope

content/docs/components/form/checkbox.mdx, the ## Schema block only — no other page, no packages/** change, no doc-parity gate (per triage §3/§4, filed separately if opened).

🤖 Generated with Claude Code

https://claude.ai/code/session_01FhBNJcLRZLe8M87VcUgpKr


Generated by Claude Code

…Name/wrapperClass

The `## Schema` block in checkbox.mdx was a six-line summary that omitted five
CheckboxSchema members that are real, declared authoring keys as of main
(`checked`, `description`, `error`, `wrapperClass` — own members — and
`className` via BaseSchema). `onChange` is excluded: it is a host-supplied
runtime callback the zod twin explicitly refuses by name (same docblock
wording as input/textarea/select/file-upload, the majority of sibling pages
that omit it despite declaring it). The `disabled` line is kept verbatim —
it is already the most current line on the page.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FhBNJcLRZLe8M87VcUgpKr

Copy link
Copy Markdown
Contributor Author

Standing-down note — Live E2E (informational) is red on main and on every branch today: the upstream base-red anchored on #7990 (objectstack#16186). It is continue-on-error by design, never blocks the queue, and touches nothing this diff changes (five lines in one doc page's schema block). Not this PR's to fix; no re-run requested. ACCEPTed on the card (#7724); flip and arming follow once the remaining checks conclude.


Generated by Claude Code

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

2 participants