Skip to content

Commit 84615e8

Browse files
committed
verify(ui-import): counter-probe v2, narrow ActionButtonPropsSchema.size to ['xs','xl'] so the Console's size mapping stops compiling (objectstack#25697 run 10, DO NOT MERGE, revert follows)
Run 9's probe deleted the key outright and never reached the Console: `pnpm --filter @objectstack/spec gen:schema` refused the bare deletion against the committed authorable-key baseline (ADR-0104 / #4650), so `@objectstack/spec#build` was red and every downstream job failed fast. That is the spec's own retirement gate doing its job in the merged tree. This probe keeps the key and changes its vocabulary instead, which the baseline does not track (verified locally: gen:schema green). The ui renderer compares `schema.size === 'md'` and derives its own type from `SpecActionButtonProps['size']`, so Type Check UI must now go red at `@object-ui/components#type-check` (TS2367) with the spec build green. The next commit reverts both probes. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RSDL3SFtJaKzcymvCD8RsU
1 parent 86f5a29 commit 84615e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4052,7 +4052,7 @@ export const ActionButtonPropsSchema = lazySchema(() => strictObject({
40524052
.describe('Executor the action runner dispatches to — built in: `script`, `url`, `modal`, `flow`, `api`, `form`; a handler registered under another name is dispatched too. `navigation`, the runner\'s alias of `url`, is refused: write `url`. Write it here, not as `type`: on a page component `type` is the component itself'),
40534053
variant: z.enum([...BUTTON_PRIMITIVE_VARIANTS, 'primary']).optional()
40544054
.describe('Button variant — the Button primitive\'s vocabulary, plus `primary`, which renders as `default` (renderer default: `default`)'),
4055-
buttonSize: z.enum([...BUTTON_PRIMITIVE_SIZES, 'md']).optional()
4055+
size: z.enum(['xs', 'xl']).optional()
40564056
.describe('Button size — the Button primitive\'s vocabulary, plus `md`, which renders as `default` (renderer default: `default`)'),
40574057
visible: actionCondition().optional()
40584058
.describe('Visibility predicate — a boolean, a CEL string, or a `{ dialect, source }` envelope, evaluated against the row the host binds; the button is not rendered when it is FALSE, and a predicate that fails to evaluate hides it. Omit for always-visible'),

0 commit comments

Comments
 (0)