mirror of
https://github.com/Nikhil-Doye/workflow-builder.git
synced 2026-07-22 02:01:56 +02:00
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:
@@ -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> = ({
|
||||
|
||||
Reference in New Issue
Block a user