feat: Action redesign: Updating the config for Google AI plugin to use sections and zones format (#36095)
## Description Action redesign: Updating the config for Google AI plugin to use sections and zones format Fixes [#35493](https://github.com/appsmithorg/appsmith/issues/35493) ## 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/10700147940> > Commit: dda8cee018765fc2827d3bfed214057dda73c692 > <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=10700147940&attempt=2" target="_blank">Cypress dashboard</a>. > Tags: `@tag.All` > Spec: > <hr>Wed, 04 Sep 2024 13:18:18 UTC <!-- end of auto-generated comment: Cypress test results --> ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [ ] No <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced chat interface with improved control organization through the introduction of `DOUBLE_COLUMN_ZONE` and `SINGLE_COLUMN_ZONE`. - Upgraded section functionality with `SECTION_V2` for better usability and clarity. - More structured layout for dropdown controls, allowing for easier navigation and interaction. - **Bug Fixes** - Resolved layout issues by restructuring child elements for improved user experience. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
parent
75599f8847
commit
440ff139e9
|
|
@ -1,9 +1,13 @@
|
|||
{
|
||||
"controlType": "SECTION_V2",
|
||||
"identifier": "CHAT",
|
||||
"controlType": "SECTION",
|
||||
"conditionals": {
|
||||
"show": "{{actionConfiguration.formData.command.data === 'GENERATE_CONTENT'}}"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"controlType": "DOUBLE_COLUMN_ZONE",
|
||||
"identifier": "CHAT-Z1",
|
||||
"children": [
|
||||
{
|
||||
"label": "Models",
|
||||
|
|
@ -31,7 +35,13 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"controlType": "SINGLE_COLUMN_ZONE",
|
||||
"identifier": "CHAT-Z2",
|
||||
"children": [
|
||||
{
|
||||
"label": "Messages",
|
||||
"tooltipText": "Ask a question",
|
||||
|
|
@ -76,4 +86,6 @@
|
|||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,12 @@
|
|||
{
|
||||
"editor": [
|
||||
{
|
||||
"controlType": "SECTION",
|
||||
"controlType": "SECTION_V2",
|
||||
"identifier": "SELECTOR",
|
||||
"children": [
|
||||
{
|
||||
"controlType": "DOUBLE_COLUMN_ZONE",
|
||||
"identifier": "SELECTOR-Z1",
|
||||
"children": [
|
||||
{
|
||||
"label": "Command",
|
||||
|
|
@ -20,6 +24,8 @@
|
|||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"files": ["generate.json"]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user