Skip to content

docs: layout-dsl.mdx teaches section-level virtualScroll/itemHeight/lazy/renderStrategy keys that exist on no schema #8251

Description

@huangyiirene

Found during the #7176 census (retiring the view-level virtualScroll); this is a different surface and was deliberately left out of that PR.

content/docs/protocol/objectui/layout-dsl.mdx (~lines 940-985, the "Performance Optimization" family of sections) documents YAML like:

section:
label: Product Catalog (1,000 items)virtualScroll: trueitemHeight: 60# px

plus lazy/source on sections and layout.renderStrategy: progressive. None of these is a real authoring surface:

  • FormSectionSchema (packages/spec/src/ui/view.zod.ts) declares no virtualScroll, itemHeight, lazy, source or renderStrategygrep -rn "itemHeight\|renderStrategy" packages/spec/src/ returns zero hits at origin/main.
  • The audit trail already flagged this passage: docs/audits/2026-06-handwritten-docs-accuracy-followups.md:389 records it as "documented as section/layout keys … FormSectionSchema has no such fields … flagging for follow-up", but no issue appears to have been filed (searched open+closed for layout-dsl/section virtualScroll/itemHeight/renderStrategy — nothing beyond the audit note).
  • The followup note pointed at PerformanceConfigSchema (responsive.zod.ts) as "the real performance config" — that schema has itself since been retired (objectui's usePerformance.ts header records the spec schema behind it was retired in 17.0.0-rc.1), so the note's own remedy is stale too.
  • Since [verdict question] view.json list.striped / list.bordered / list.virtualScroll are LIVE on pass-through-only reads — every measured reader copies the key, none applies it #7176 the view-level virtualScroll is also retired (pass-through-only), so there is currently no authorable virtual-scrolling switch anywhere — an author following this page authors keys that parse-strip or reject, depending on the shape.

Fix that lands here: rewrite/remove the affected layout-dsl.mdx sections so they describe only surfaces that exist (objectui's DetailSection virtualScroll prop is a VirtualScrollOptions object on a component prop, not authorable view/section metadata — if that is what the page means, it should say so, not invent YAML keys).

Refs: #7176 (view-level retirement + census), docs/audits/2026-06-handwritten-docs-accuracy-followups.md:389.


Generated by Claude Code

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions