From 5aa93926ef3e024b0e2274829bdc0088b79dbe8a Mon Sep 17 00:00:00 2001 From: Ankita Kinger Date: Thu, 5 Sep 2024 10:41:26 +0530 Subject: [PATCH] feat: Action redesign: Updating the config for SMTP plugin to use sections and zones format (#36091) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description Action redesign: Updating the config for SMTP plugin to use sections and zones format Fixes [#35505 ](https://github.com/appsmithorg/appsmith/issues/35505) ## Automation /ok-to-test tags="@tag.All" ### :mag: Cypress test results > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: > Commit: f58dfce0a2729442a0e1222762f97cc483e5459b > Cypress dashboard. > Tags: `@tag.All` > Spec: >
Wed, 04 Sep 2024 19:46:08 UTC ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [ ] No ## Summary by CodeRabbit - **New Features** - Introduced a comprehensive email sending interface in the SMTP plugin, allowing users to input recipient addresses, subject, body type, and attachments. - Enhanced layout with a new `DOUBLE_COLUMN_ZONE` structure for improved organization of input fields. - **Improvements** - Expanded styling capabilities for the dynamic input text control, allowing for more flexible sizing and better responsiveness in the UI. - Updated existing configurations to streamline the email composition process and improve user experience. - **Bug Fixes** - Adjusted CSS rules to remove minimum height and width constraints for better adaptability of UI components. --- .../formControls/DynamicInputTextControl.tsx | 5 +- .../Editor/ActionForm/Zone/styles.module.css | 5 + .../src/main/resources/editor/body.json | 108 ++++++++++++++++++ .../src/main/resources/editor/root.json | 26 +++-- .../src/main/resources/editor/send.json | 91 ++++----------- 5 files changed, 155 insertions(+), 80 deletions(-) create mode 100644 app/server/appsmith-plugins/smtpPlugin/src/main/resources/editor/body.json diff --git a/app/client/src/components/formControls/DynamicInputTextControl.tsx b/app/client/src/components/formControls/DynamicInputTextControl.tsx index 874a8c9e9e..752dbede42 100644 --- a/app/client/src/components/formControls/DynamicInputTextControl.tsx +++ b/app/client/src/components/formControls/DynamicInputTextControl.tsx @@ -84,7 +84,10 @@ export function InputText(props: { } } return ( -
+
{/*
*/}