Skip to content

Commit da35804

Browse files
committed
test: record pressed in the form omit ledger and the lint key-read pin
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibvXVNub8x3B5XhGFrP
1 parent 353a9a4 commit da35804

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

‎packages/lint/src/validate-expressions.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3409,7 +3409,7 @@ const READ_SURFACES: Array<{ receiver: string; expected: string[]; declaredBy: s
34093409
// `object` is absent — the action schema's canonical key is `objectName`.
34103410
// `disabledReason` is absent by contract (#26619): display copy beside
34113411
// `disabled`, never read as a condition.
3412-
expected: ['disabled', 'name', 'objectName', 'visible'],
3412+
expected: ['disabled', 'name', 'objectName', 'pressed', 'visible'],
34133413
declaredBy: 'ObjectStackSchema.actions[]',
34143414
keys: () => shapeKeysOf(ObjectStackSchema.shape.actions),
34153415
},

‎packages/spec/src/system/metadata-form-zod-reconciliation.test.ts‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,16 @@ const LEDGER: ReadonlyArray<OmitEntry | SubsetEntry> = [
365365
key: 'conditionalFormatting',
366366
why: "planned, not yet rendered — a field's cell formatting rules (`[{ condition, style }]`, the list view's own rule element) are validated at parse and their CEL is judged at the authoring doors (it parses, it reads only `value` and `record`), but no renderer styles a cell from them until objectui's cell renderers read them, after the spec publishes. A form control offered today would let an author set a style nothing paints",
367367
},
368+
// #27946 — an action's pressed-state predicate lands spec-first the same
369+
// way: `planned` in the liveness ledger, drawn by no action surface until
370+
// the console card that draws `aria-pressed` on the header buttons.
371+
{
372+
kind: 'omit',
373+
type: 'action',
374+
path: ROOT_PATH,
375+
key: 'pressed',
376+
why: "planned, not yet rendered — the reader's pressed-state predicate is validated at parse (CEL only, no boolean literal) and judged at the authoring doors in the `record` scope, but no action surface draws the pressed face until the console's header buttons read it. A form control offered today would let an author write a predicate nothing shows",
377+
},
368378
{
369379
kind: 'omit',
370380
type: 'view',

0 commit comments

Comments
 (0)