appsmith icon indicating copy to clipboard operation
appsmith copied to clipboard

feat: Action redesign: Updating the config for Google AI plugin to use sections and zones format

Open ankitakinger opened this issue 1 year ago • 4 comments

Description

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

Fixes #35493

Automation

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

:mag: Cypress test results

[!CAUTION] 🔴 🔴 🔴 Some tests have failed. Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/10591186442 Commit: 17302a8a5513451fd2fc201011cbd60b446b9245 Cypress dashboard. Tags: @tag.All Spec: The following are new failures, please fix them before merging the PR:

  1. cypress/e2e/Regression/ServerSide/ApiTests/API_All_Verb_spec.js
List of identified flaky tests.
Wed, 28 Aug 2024 07:08:56 UTC

Communication

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

  • [ ] Yes
  • [ ] No

Summary by CodeRabbit

  • New Features
    • Enhanced editor layout with a new "SECTION_V2" structure for improved usability.
    • Introduced flexible "DOUBLE_COLUMN_ZONE" for command selection and model dropdowns.
    • Added a new section allowing users to input multiple messages for content generation with conditional visibility.
  • Improvements
    • Enhanced interactivity and responsiveness of the editor for a better user experience.

ankitakinger avatar Aug 28 '24 06:08 ankitakinger

Walkthrough

The changes involve a significant update to the JSON structure of the Google AI Plugin's editor configuration. The editor has transitioned from a simpler "SECTION" control type to an advanced "SECTION_V2," enhancing layout capabilities. New zones and sections have been introduced, allowing for improved organization and interactivity. This includes conditional visibility features and dynamic input options, ultimately refining the user experience within the editor.

Changes

Files Change Summary
app/server/appsmith-plugins/googleAiPlugin/src/main/resources/editor/root.json Transitioned from SECTION to SECTION_V2, updated identifiers, introduced DOUBLE_COLUMN_ZONE for layout, and added conditional logic for dropdowns and array fields.

Assessment against linked issues

Objective Addressed Explanation
Add Zone & Section to Google AI plugin form (#35493)

🎉 In the realm of code, changes take flight,
With sections and zones, the future looks bright!
Conditional logic and inputs anew,
A dynamic editor, just waiting for you!
So here’s to the updates, let’s give them a cheer,
For a better user journey, we hold dear! 🎈


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.

coderabbitai[bot] avatar Aug 28 '24 06:08 coderabbitai[bot]

/build-deploy-preview skip-tests=true

ankitakinger avatar Aug 28 '24 06:08 ankitakinger

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

github-actions[bot] avatar Aug 28 '24 06:08 github-actions[bot]

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

github-actions[bot] avatar Aug 28 '24 06:08 github-actions[bot]

/build-deploy-preview skip-tests=true

ankitakinger avatar Aug 28 '24 19:08 ankitakinger

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

github-actions[bot] avatar Aug 28 '24 19:08 github-actions[bot]

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

github-actions[bot] avatar Aug 28 '24 19:08 github-actions[bot]

/build-deploy-preview skip-tests=true

ankitakinger avatar Aug 29 '24 10:08 ankitakinger

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

github-actions[bot] avatar Aug 29 '24 10:08 github-actions[bot]

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

github-actions[bot] avatar Aug 29 '24 10:08 github-actions[bot]

/build-deploy-preview skip-tests=true

albinAppsmith avatar Aug 30 '24 15:08 albinAppsmith

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

github-actions[bot] avatar Aug 30 '24 15:08 github-actions[bot]

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

github-actions[bot] avatar Aug 30 '24 15:08 github-actions[bot]

/build-deploy-preview skip-tests=true

albinAppsmith avatar Sep 02 '24 02:09 albinAppsmith

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

github-actions[bot] avatar Sep 02 '24 02:09 github-actions[bot]

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

github-actions[bot] avatar Sep 02 '24 02:09 github-actions[bot]

Adding @AmanAgarwal041 for review

NilanshBansal avatar Sep 02 '24 14:09 NilanshBansal