From 63de59f9571d047b587a4af7a4a0d18ef8ce29f0 Mon Sep 17 00:00:00 2001 From: Nikhil-Doye Date: Thu, 23 Oct 2025 17:00:17 -0400 Subject: [PATCH] Add Gmail integration configuration fields to NodeConfiguration - Introduced detailed configuration fields for Gmail integration, including access token, operation type, recipient, subject, body, message ID, and search query. - Enhanced user experience by providing tailored input options for various Gmail operations, supporting send, read, reply, forward, draft, label, search, and attachment functionalities. --- src/components/NodeConfiguration.tsx | 56 ++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/src/components/NodeConfiguration.tsx b/src/components/NodeConfiguration.tsx index 1f049b3..84378fc 100644 --- a/src/components/NodeConfiguration.tsx +++ b/src/components/NodeConfiguration.tsx @@ -335,6 +335,62 @@ const nodeTypeConfigs: Record< }, ], }, + gmail: { + title: "Gmail Integration Configuration", + fields: [ + { + key: "accessToken", + label: "Access Token", + type: "text", + placeholder: "your-gmail-access-token", + }, + { + key: "operation", + label: "Operation Type", + type: "select", + options: [ + "send", + "read", + "reply", + "forward", + "draft", + "label", + "search", + "attachment", + ], + }, + { + key: "to", + label: "To (for send/forward operations)", + type: "text", + placeholder: "recipient@example.com", + }, + { + key: "subject", + label: "Subject", + type: "text", + placeholder: "Email subject", + }, + { + key: "body", + label: "Message Body", + type: "textarea", + placeholder: "Email content", + }, + { + key: "messageId", + label: "Message ID (for read/reply/forward operations)", + type: "text", + placeholder: "Message ID", + }, + { + key: "query", + label: "Search Query (for read/search operations)", + type: "text", + placeholder: "Search query", + }, + ], + }, }; export const NodeConfiguration: React.FC = ({