You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(spec): structured buttons + defaults config on FormViewSchema (#2998) (#3014)
Track A of #2998: spec home for the renderer-invented flat form keys
ObjectUI's ObjectForm reads today (showSubmit/submitText/showCancel/
cancelText/showReset/initialValues — objectui#2545), which the strip-mode
FormViewSchema container silently discards (ADR-0078's prohibited shape).
- New optional `buttons` block: per-button { show, label } for
submit/cancel/reset via exported FormButtonConfigSchema (.strict()
per ADR-0089 D3a).
- New optional `defaults` record: initial field values for create-mode
forms (absorbs objectui initialValues).
- Both marked [EXPERIMENTAL — NOT ENFORCED, #2998] per ADR-0078's escape
hatch until the ObjectUI renderer wiring lands (objectui#2545).
- Additive only: minor changeset; api-surface +2 exports;
json-schema.manifest +ui/FormButtonConfig; ui/view.mdx regenerated.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Ue47V8zZ5QhcYMPiRQDA7
|**buttons**|`Object`| optional |[EXPERIMENTAL — NOT ENFORCED, #2998] Form action-button visibility & labels. Renderer wiring pending in ObjectUI (objectui#2545). |
191
+
|**defaults**|`Record<string, any>`| optional |[EXPERIMENTAL — NOT ENFORCED, #2998] Initial field values for create-mode forms (spec home for ObjectUI `initialValues`). Renderer wiring pending (objectui#2545). |
178
192
|**aria**|`Object`| optional | ARIA accessibility attributes for the form view |
.describe('[EXPERIMENTAL — NOT ENFORCED, #2998] Initial field values for create-mode forms (spec home for ObjectUI `initialValues`). Renderer wiring pending (objectui#2545).'),
963
+
927
964
/** ARIA accessibility attributes */
928
965
aria: AriaPropsSchema.optional().describe('ARIA accessibility attributes for the form view'),
0 commit comments