From db769af17878593d7ed3275ae26f741d439adddc Mon Sep 17 00:00:00 2001 From: rchaudharyy <145757771+rchaudharyy@users.noreply.github.com> Date: Fri, 2 Jan 2026 18:20:17 +0530 Subject: [PATCH 1/3] Create ui.ts Adding UI interface for run form --- schema/ui.ts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 schema/ui.ts diff --git a/schema/ui.ts b/schema/ui.ts new file mode 100644 index 0000000..53c7c7d --- /dev/null +++ b/schema/ui.ts @@ -0,0 +1,22 @@ +export interface Ui { + /** + * Component defines the form element that should be used to + * render the input. + */ + component?: "dropdown" | "text" | "number" | "date" | "datetime" | string; + + /** + * Autofocus configures the form element autofocus attribute. + */ + autofocus?: boolean; + + /** + * Placeholder configures the form element placeholder attribute. + */ + placeholder?: string; + + /** + * Tooltip configures the form element alt attribute. + */ + tooltip?: string; +} From ad33de35d6931ea7023b7669d478eb2fdb2d409a Mon Sep 17 00:00:00 2001 From: rchaudharyy <145757771+rchaudharyy@users.noreply.github.com> Date: Fri, 2 Jan 2026 18:23:31 +0530 Subject: [PATCH 2/3] Update input.ts --- schema/input.ts | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/schema/input.ts b/schema/input.ts index c58cc94..e6b9f2a 100644 --- a/schema/input.ts +++ b/schema/input.ts @@ -49,25 +49,9 @@ export interface Input { pattern?: string; /** - * Component defines the form element that should be used to - * render the input. + * Ui configures the ui component in run form. */ - component?: "dropdown" | "text" | "number" | "date" | "datetime" | string; - - /** - * Autofocus configures the form element autofocus attribute. - */ - autofocus?: boolean; - - /** - * Placeholder configures the form element placeholder attribute. - */ - placeholder?: string; - - /** - * Tooltip configures the form element alt attribute. - */ - tooltip?: string; + ui?: Ui; /** * Options defines a list of accepted input values. From caf5e34fc123b624b3610fee8d0c2392d2563aea Mon Sep 17 00:00:00 2001 From: rchaudharyy <145757771+rchaudharyy@users.noreply.github.com> Date: Fri, 2 Jan 2026 18:24:35 +0530 Subject: [PATCH 3/3] Update input.ts --- schema/input.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/schema/input.ts b/schema/input.ts index e6b9f2a..32e2aa2 100644 --- a/schema/input.ts +++ b/schema/input.ts @@ -1,3 +1,5 @@ +import { Ui } from "./ui"; + /** * @x-go-file input.go */