Skip to content

Commit 86f5a29

Browse files
committed
verify(ui-import): counter-probe, rename ActionButtonPropsSchema.size to prove the Console compiles against the workspace spec (objectstack#25697 run 9, DO NOT MERGE, revert follows)
Deliberately breaks a spec field the Console's action runner reads. The merged tree is supposed to type-check ui/ against packages/spec at HEAD, so Type Check UI must go red on this commit (TS2339 on `size`). If it stays green the coupling the merge exists for is not wired. The next commit reverts this one. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RSDL3SFtJaKzcymvCD8RsU
1 parent 3b0be7c commit 86f5a29

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-
size: z.enum([...BUTTON_PRIMITIVE_SIZES, 'md']).optional()
4055+
buttonSize: z.enum([...BUTTON_PRIMITIVE_SIZES, 'md']).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)