diff --git a/ui-v2/src/components/automations/automations-wizard/trigger-step/custom-trigger-fields.tsx b/ui-v2/src/components/automations/automations-wizard/trigger-step/custom-trigger-fields.tsx new file mode 100644 index 000000000000..1f1fcd1e0524 --- /dev/null +++ b/ui-v2/src/components/automations/automations-wizard/trigger-step/custom-trigger-fields.tsx @@ -0,0 +1,93 @@ +import { useFormContext, useWatch } from "react-hook-form"; +import type { AutomationWizardSchema } from "@/components/automations/automations-wizard/automation-schema"; +import { + FormControl, + FormField, + FormItem, + FormLabel, + FormMessage, +} from "@/components/ui/form"; +import { Input } from "@/components/ui/input"; +import { Textarea } from "@/components/ui/textarea"; +import { PostureSelect } from "./posture-select"; + +export const CustomTriggerFields = () => { + const form = useFormContext(); + const posture = useWatch({ name: "trigger.posture" }); + + return ( +
+
+ +
+ + { + const events = field.value ?? []; + const textValue = events.join("\n"); + return ( + + Expected Events (one per line) + +