Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

feat(gmail): ui improvement (#16359)

Talal Jaberea1737a4e58b
diff --git a/bun.lock b/bun.lock
index 8b8637e11a6..3f7415b8d8b 100644
--- a/bun.lock
+++ b/bun.lock
@@ -3765,7 +3765,7 @@
},
"packages/pieces/community/gmail": {
"name": "@activepieces/piece-gmail",
- "version": "0.17.5",
+ "version": "0.18.0",
"dependencies": {
"@activepieces/core-piece-types": "workspace:*",
"@activepieces/core-utils": "workspace:*",
diff --git a/packages/pieces/community/gmail/package.json b/packages/pieces/community/gmail/package.json
index c4b493ff966..1450f601d6b 100644
--- a/packages/pieces/community/gmail/package.json
+++ b/packages/pieces/community/gmail/package.json
@@ -1,6 +1,6 @@
{
"name": "@activepieces/piece-gmail",
- "version": "0.17.5",
+ "version": "0.18.0",
"main": "./dist/src/index.js",
"types": "./dist/src/index.d.ts",
"dependencies": {
diff --git a/packages/pieces/community/gmail/src/lib/actions/create-draft-reply-action.ts b/packages/pieces/community/gmail/src/lib/actions/create-draft-reply-action.ts
index 89d258cf7de..9d07c5a0384 100644
--- a/packages/pieces/community/gmail/src/lib/actions/create-draft-reply-action.ts
+++ b/packages/pieces/community/gmail/src/lib/actions/create-draft-reply-action.ts
@@ -19,6 +19,22 @@ export const gmailCreateDraftReplyAction = createAction({
idempotent: false,
},
displayName: 'Create Draft Reply',
+ propertyGroups: [
+ {
+ key: 'reply_target',
+ display: 'section',
+ label: 'Reply to',
+ icon: 'reply',
+ props: ['message_id', 'reply_type'],
+ },
+ {
+ key: 'reply_content',
+ display: 'section',
+ label: 'Your Reply',
+ icon: 'text',
+ props: ['body_type', 'body', 'include_original_message', 'attachment'],
+ },
+ ],
props: {
message_id: GmailProps.message,
reply_type: Property.StaticDropdown({
diff --git a/packages/pieces/community/gmail/src/lib/actions/reply-to-email-action.ts b/packages/pieces/community/gmail/src/lib/actions/reply-to-email-action.ts
index 728ae325d38..425fa434aba 100644
--- a/packages/pieces/community/gmail/src/lib/actions/reply-to-email-action.ts
+++ b/packages/pieces/community/gmail/src/lib/actions/reply-to-email-action.ts
@@ -19,6 +19,22 @@ export const gmailReplyToEmailAction = createAction({
'Sends a reply to an existing email, preserving the thread and subject and addressing the original sender (reply) or all participants (reply all). Use this to respond within a known conversation; requires the Gmail message ID of the email being answered. Not idempotent: each call sends a new reply message into the thread.',
idempotent: false,
},
+ propertyGroups: [
+ {
+ key: 'reply_target',
+ display: 'section',
+ label: 'Reply to',
+ icon: 'reply',
+ props: ['message_id', 'reply_type'],
+ },
+ {
+ key: 'reply_content',
+ display: 'section',
+ label: 'Your Reply',
+ icon: 'text',
+ props: ['body_type', 'body', 'attachment'],
+ },
+ ],
props: {
message_id: GmailProps.message,
reply_type: Property.StaticDropdown({