feat: action redesign, UQI upgrade AWS plugin config to dual zone format (#36092)

## Description
Upgrade AWS lambda plugin config to new format using SECTION_V2,
SINGLE_COLUMN_ZONE, and DOUBLE_COLUMN_ZONE.

Fixes #35488

## Automation

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

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!TIP]
> 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/10716532467>
> Commit: 7af86d65c8dabd006c5c2fabaeb3d0886aa3bdcd
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=10716532467&attempt=2"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.All`
> Spec:
> <hr>Thu, 05 Sep 2024 09:39:20 UTC
<!-- end of auto-generated comment: Cypress test results  -->


## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [x] No


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit


- **New Features**
- Enhanced user interface for the AWS Lambda plugin with updated control
types, improving layout and interaction.
- Introduced new input options, including a dedicated section for "Post
body."

- **Bug Fixes**
- Updated control types to reflect improved functionality and user
experience in the editor.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Alex 2024-09-06 10:11:48 +03:00 committed by GitHub
parent 7f556268c3
commit 4a7ff64242
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 28 additions and 17 deletions

View File

@ -1,12 +1,12 @@
{
"identifier": "INVOKE_FUNCTION",
"controlType": "SECTION",
"controlType": "SECTION_V2",
"conditionals": {
"show": "{{actionConfiguration.formData.command.data === 'INVOKE_FUNCTION'}}"
},
"children": [
{
"controlType": "SECTION",
"controlType": "DOUBLE_COLUMN_ZONE",
"label": "Details of lambda function",
"children": [
{
@ -63,7 +63,12 @@
"fetchOptionsConditionally": false,
"setFirstOptionAsDefault": true,
"alternateViewTypes": ["json"]
},
}
]
},
{
"controlType": "SINGLE_COLUMN_ZONE",
"children": [
{
"label": "Post body",
"configProperty": "actionConfiguration.formData.body.data",

View File

@ -1,6 +1,6 @@
{
"identifier": "LIST_FUNCTIONS",
"controlType": "SECTION",
"controlType": "SECTION_V2",
"conditionals": {
"show": "{{actionConfiguration.formData.command.data === 'LIST_FUNCTIONS'}}"
},

View File

@ -1,23 +1,29 @@
{
"editor": [
{
"controlType": "SECTION",
"controlType": "SECTION_V2",
"identifier": "SELECTOR",
"children": [
{
"label": "Command",
"description": "Choose the method you would like to use",
"configProperty": "actionConfiguration.formData.command.data",
"controlType": "DROP_DOWN",
"initialValue": "LIST_FUNCTIONS",
"options": [
"controlType": "DOUBLE_COLUMN_ZONE",
"children": [
{
"label": "List all functions",
"value": "LIST_FUNCTIONS"
},
{
"label": "Invoke a function",
"value": "INVOKE_FUNCTION"
"label": "Command",
"description": "Choose the method you would like to use",
"configProperty": "actionConfiguration.formData.command.data",
"controlType": "DROP_DOWN",
"initialValue": "LIST_FUNCTIONS",
"options": [
{
"label": "List all functions",
"value": "LIST_FUNCTIONS"
},
{
"label": "Invoke a function",
"value": "INVOKE_FUNCTION"
}
]
}
]
}