From 80f7d2f60085427534a7620492f6ad671f3aa1f7 Mon Sep 17 00:00:00 2001 From: Nikhil-Doye Date: Thu, 23 Oct 2025 15:56:01 -0400 Subject: [PATCH] Add Slack integration configuration fields to NodeConfiguration - Introduced configuration fields for Slack integration, including bot token, operation type, channel, message text, and user ID. - Enhanced user experience by providing tailored input options for various Slack operations. --- src/components/NodeConfiguration.tsx | 35 ++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/src/components/NodeConfiguration.tsx b/src/components/NodeConfiguration.tsx index 0119507..e452bd4 100644 --- a/src/components/NodeConfiguration.tsx +++ b/src/components/NodeConfiguration.tsx @@ -257,6 +257,41 @@ const nodeTypeConfigs: Record< }, ], }, + slack: { + title: "Slack Integration Configuration", + fields: [ + { + key: "botToken", + label: "Bot Token", + type: "text", + placeholder: "xoxb-your-bot-token", + }, + { + key: "operation", + label: "Operation Type", + type: "select", + options: ["message", "channel", "user", "file", "reaction", "reminder"], + }, + { + key: "channel", + label: "Channel (for message/channel operations)", + type: "text", + placeholder: "#general or @username", + }, + { + key: "text", + label: "Message Text", + type: "textarea", + placeholder: "Hello from the workflow!", + }, + { + key: "user", + label: "User ID (for user operations)", + type: "text", + placeholder: "U1234567890", + }, + ], + }, }; export const NodeConfiguration: React.FC = ({