Skip to content

Commit 467caf0

Browse files
committed
fix(spec): allowStageChange describe says absent or false is the readout
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibxNQzFQH8nBAaoSUkx
1 parent 008f250 commit 467caf0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎packages/spec/src/ui/component.zod.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2083,9 +2083,9 @@ export const RecordPathProps = strictObject({
20832083
terminal: z.enum(['won', 'lost']).optional().describe('Mark this stage a terminus and its kind — overrides the renderer\'s value/label token heuristic'),
20842084
})).optional().describe('Explicit stage definitions (if not using field metadata)'),
20852085
/**
2086-
* Opt in to changing the record's stage from the path itself. Off unless
2087-
* authored: an unset key is the read-only progress rail, so every existing
2088-
* path keeps its non-interactive look. No schema default, for the
2086+
* Opt in to changing the record's stage from the path itself. Absent or
2087+
* `false` is the read-only progress rail, as today, so every existing path
2088+
* keeps its non-interactive look. No schema default, for the
20892089
* `RecordChatterProps` reason — a default would write `false` onto every
20902090
* parsed component and turn "the author said nothing" into "the author
20912091
* asked for it".
@@ -2099,7 +2099,7 @@ export const RecordPathProps = strictObject({
20992099
* field's edit rights judge the move like any other edit; a refusal (an
21002100
* illegal transition, a missing required field) is shown in place.
21012101
*/
2102-
allowStageChange: z.boolean().optional().describe('Let the reader change the record\'s stage by pressing a stage on the path (default: off — the path is a read-only progress rail). Each press asks for confirmation and saves `statusField` through the ordinary record update, so the object\'s state machine validation and the field\'s edit rights decide; stages appear pressable only to readers who may edit `statusField`, and a refused move is shown in place.'),
2102+
allowStageChange: z.boolean().optional().describe('Let the reader change the record\'s stage by pressing a stage on the path. Absent or `false`: the path is a read-only progress rail, as today. Each press asks for confirmation and saves `statusField` through the ordinary record update, so the object\'s state machine validation and the field\'s edit rights decide; stages appear pressable only to readers who may edit `statusField`, and a refused move is shown in place.'),
21032103
/** ARIA accessibility */
21042104
aria: AriaPropsSchema.optional().describe('ARIA accessibility attributes'),
21052105
});

0 commit comments

Comments
 (0)