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.
This commit is contained in:
Nikhil-Doye
2025-10-23 15:56:01 -04:00
parent 096a87ece0
commit 80f7d2f600
+35
View File
@@ -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<NodeConfigurationProps> = ({