Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Action redesign: Updating the config for SMTP plugin to use sections and zones format #36001

Closed
wants to merge 4 commits into from

Conversation

ankitakinger
Copy link
Contributor

@ankitakinger ankitakinger commented Aug 30, 2024

Description

Action redesign: Updating the config for SMTP plugin to use sections and zones format

Fixes #35505

Automation

/ok-to-test tags="@tag.All"

🔍 Cypress test results

Tip

🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/10659691143
Commit: 3917fdb
Cypress dashboard.
Tags: @tag.All
Spec:


Mon, 02 Sep 2024 04:23:47 UTC

Communication

Should the DevRel and Marketing teams inform users about this change?

  • Yes
  • No

Summary by CodeRabbit

  • New Features

    • Enhanced styling capabilities for the dynamic input text control with a new CSS class.
    • Redesigned SMTP plugin email configuration interface with a multi-section layout, improving usability and flexibility.
    • Added new fields for CC, BCC, and conditional visibility for reply settings in the email configuration.
  • Bug Fixes

    • Removed minimum height and width constraints for dynamic input text elements, allowing for more flexible sizing.

Copy link
Contributor

coderabbitai bot commented Aug 30, 2024

Walkthrough

The changes involve modifications to the DynamicInputTextControl.tsx for enhanced styling, the addition of new CSS rules in styles.module.css for flexible sizing, and a comprehensive redesign of the SMTP plugin's editor configuration in root.json. This redesign introduces a multi-section layout with improved controls for email parameters, enhancing user interaction and functionality.

Changes

Files Change Summary
app/client/src/components/formControls/DynamicInputTextControl.tsx
app/client/src/pages/Editor/ActionForm/Zone/styles.module.css
Enhanced the InputText component by adding a new CSS class for improved styling. Updated CSS rules for the new class to remove minimum height and width constraints, allowing for more flexible sizing.
app/server/appsmith-plugins/smtpPlugin/src/main/resources/editor/root.json Redesigned the SMTP plugin's editor layout from a single-section to a multi-section format. Introduced new controls for email parameters, including CC and BCC options, and improved dynamic input capabilities. Updated control types and identifiers to reflect these changes.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant DynamicInputTextControl
    participant SMTPPlugin

    User->>DynamicInputTextControl: Interacts with input field
    DynamicInputTextControl->>User: Displays enhanced input field
    User->>SMTPPlugin: Configures email parameters
    SMTPPlugin->>User: Provides multi-section layout
    User->>SMTPPlugin: Enters CC/BCC and other details
    SMTPPlugin->>User: Confirms email configuration
Loading

Poem

In the realm of code, changes take flight,
A dynamic input, styled just right.
SMTP's sections, now neatly aligned,
With CC and BCC, all well-defined.
Flexibility blooms, as we code and create,
In the world of tech, we celebrate! 🎉


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.
Early access features: disabled

We are currently testing the following features in early access:

  • Anthropic claude-3-5-sonnet for code reviews: Anthropic claims that the new Claude model has stronger code understanding and code generation capabilities than their previous models. Note: Our default code review model was also updated late last week. Please compare the quality of the reviews between the two models by toggling the early access feature.

Note:

  • You can enable or disable early access features from the CodeRabbit UI or by updating the CodeRabbit configuration file.
  • Please join our Discord Community to provide feedback and report issues on the discussion post.

@github-actions github-actions bot added IDE Navigation Issues/feature requests related to IDE navigation, and context switching IDE Pod Issues that new developers face while exploring the IDE IDE Product Issues related to the IDE Product Task A simple Todo Enhancement New feature or request labels Aug 30, 2024
@ankitakinger ankitakinger added the ok-to-test Required label for CI label Aug 30, 2024
@ankitakinger
Copy link
Contributor Author

/build-deploy-preview skip-tests=true

Copy link

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/10629704553.
Workflow: On demand build Docker image and deploy preview.
skip-tests: true.
env: ``.
PR: 36001.
recreate: .

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 4b89c1c and 9de2e54.

Files selected for processing (3)
  • app/client/src/components/formControls/DynamicInputTextControl.tsx (1 hunks)
  • app/client/src/pages/Editor/ActionForm/Zone/styles.module.css (1 hunks)
  • app/server/appsmith-plugins/smtpPlugin/src/main/resources/editor/root.json (1 hunks)
Files skipped from review due to trivial changes (1)
  • app/client/src/components/formControls/DynamicInputTextControl.tsx
Additional comments not posted (3)
app/client/src/pages/Editor/ActionForm/Zone/styles.module.css (1)

51-54: Review the impact of CSS changes on layout.

The changes to the .uqi-dynamic-input-text class remove constraints on width and min-height, which could potentially affect the layout in various parts of the application. While the flexibility is appreciated, it's crucial to ensure that these changes do not introduce any layout issues elsewhere.

Please verify the impact of these changes on the layout by checking the elements using this class across different pages and screen sizes.

app/server/appsmith-plugins/smtpPlugin/src/main/resources/editor/root.json (2)

4-69: Review the new section and zone configurations.

The introduction of SECTION_V2 and various DOUBLE_COLUMN_ZONE controls represents a significant redesign aimed at improving the organization and functionality of the SMTP plugin's configuration. It's important to ensure that all new fields and controls are correctly configured and that the placeholders and evaluation substitution types are set up properly to enhance user interaction.

Please verify that all new configurations are correctly implemented and function as expected during runtime. This includes checking the dynamic behavior of placeholders and evaluation substitutions.


70-174: Ensure comprehensive testing of new email parameter controls.

The addition of new fields for CC, BCC, and conditional visibility settings for the "Reply to email" field based on the "Set reply to email" switch is a welcome improvement. However, it's crucial to ensure that these new controls are thoroughly tested, especially the conditional visibility and the dynamic input functionalities.

Please conduct comprehensive testing to ensure that all new controls work as expected and that the conditional logic behaves correctly under various scenarios.

Copy link

Deploy-Preview-URL: https://ce-36001.dp.appsmith.com

@@ -47,6 +47,11 @@
}
}
}
/* DynamicInputTextControl min height and width removed */
& :global(.uqi-dynamic-input-text) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you really need a global selector here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah thats how it has been done for other fields... hence I have added it the similar way. This global lies under the selector .zone

@hetunandu hetunandu requested review from NilanshBansal and removed request for hetunandu August 30, 2024 09:27
@albinAppsmith
Copy link
Collaborator

/build-deploy-preview skip-tests=true

Copy link

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/10635374975.
Workflow: On demand build Docker image and deploy preview.
skip-tests: true.
env: ``.
PR: 36001.
recreate: .

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 9de2e54 and 7424052.

Files selected for processing (1)
  • app/client/src/pages/Editor/ActionForm/Zone/styles.module.css (1 hunks)
Files skipped from review due to trivial changes (1)
  • app/client/src/pages/Editor/ActionForm/Zone/styles.module.css

Copy link

Deploy-Preview-URL: https://ce-36001.dp.appsmith.com

Copy link

Failed server tests

  • com.appsmith.server.solutions.ce.ActionExecutionSolutionCETest#testWidgetSuggestionAfterExecutionWithTableWidgetData

@albinAppsmith
Copy link
Collaborator

/build-deploy-preview skip-tests=true

Copy link

github-actions bot commented Sep 2, 2024

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/10659699107.
Workflow: On demand build Docker image and deploy preview.
skip-tests: true.
env: ``.
PR: 36001.
recreate: .

Copy link

github-actions bot commented Sep 2, 2024

Deploy-Preview-URL: https://ce-36001.dp.appsmith.com

@NilanshBansal
Copy link
Contributor

Adding @AmanAgarwal041 for review

@NilanshBansal NilanshBansal requested review from AmanAgarwal041 and removed request for NilanshBansal September 2, 2024 14:50
@ankitakinger ankitakinger deleted the action-redesign/smtp branch September 5, 2024 05:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request IDE Navigation Issues/feature requests related to IDE navigation, and context switching IDE Pod Issues that new developers face while exploring the IDE IDE Product Issues related to the IDE Product ok-to-test Required label for CI Task A simple Todo
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Task]: Add Zone & Section to SMTP plugin form
4 participants