diff --git a/desktop/src/features/workflows/ui/WorkflowConditionBuilder.tsx b/desktop/src/features/workflows/ui/WorkflowConditionBuilder.tsx index 33c30ee95..f883d88df 100644 --- a/desktop/src/features/workflows/ui/WorkflowConditionBuilder.tsx +++ b/desktop/src/features/workflows/ui/WorkflowConditionBuilder.tsx @@ -5,12 +5,12 @@ import { useUsersBatchQuery } from "@/features/profile/hooks"; import { ProfileAvatar } from "@/features/profile/ui/ProfileAvatar"; import { useIdentityQuery } from "@/shared/api/hooks"; import type { Channel, UserProfileSummary } from "@/shared/api/types"; +import { cn } from "@/shared/lib/cn"; import { truncatePubkey } from "@/shared/lib/pubkey"; import { Input } from "@/shared/ui/input"; import { AuthorGridPicker } from "./AuthorGridPicker"; import { MessageIdPicker } from "./MessageIdPicker"; import { WorkflowEmojiField } from "./WorkflowEmojiField"; -import { FieldLabel, FormSelect } from "./workflowFormPrimitives"; import { buildConditionExpressions, conditionFieldsForTrigger, @@ -209,39 +209,86 @@ function ConditionEditorFields({ editor.webhookField.length > 0 && normalizeWebhookField(editor.webhookField) === null; const controlIdPrefix = `${idPrefix}-${editor.field}`; + const valueInput = ( + onChange({ ...editor, value: event.target.value })} + placeholder={ + editor.field === "webhook_field" + ? "Value to match" + : valuePlaceholder(editor.field) + } + value={editor.value} + /> + ); return (