PromucFlow_constructor/app/client/cypress/fixtures/formSelectTreeselectDsl.json

195 lines
10 KiB
JSON
Raw Normal View History

{
"dsl": {
"widgetName": "MainContainer",
"backgroundColor": "none",
"rightColumn": 1160,
"snapColumns": 64,
"detachFromLayout": true,
"widgetId": "0",
"topRow": 0,
"bottomRow": 1110,
"containerStyle": "none",
"snapRows": 125,
"parentRowSpace": 1,
"type": "CANVAS_WIDGET",
"canExtend": true,
"version": 51,
"minHeight": 1090,
"parentColumnSpace": 1,
"dynamicBindingPathList": [],
"leftColumn": 0,
"children": [
{
"widgetName": "Form1",
"backgroundColor": "white",
"rightColumn": 35,
"isCanvas": true,
"displayName": "Form",
"iconSVG": "/static/media/icon.ea3e08d1.svg",
"widgetId": "gp06qafc2h",
"topRow": 20,
"bottomRow": 60,
"parentRowSpace": 10,
"isVisible": true,
"type": "FORM_WIDGET",
"hideCard": false,
"parentId": "0",
"renderMode": "CANVAS",
"isLoading": false,
"animateLoading": true,
"parentColumnSpace": 19.8125,
"leftColumn": 11,
"children": [
{
"widgetName": "Canvas1",
"rightColumn": 475.5,
"detachFromLayout": true,
"displayName": "Canvas",
"widgetId": "yjoe9m261a",
"containerStyle": "none",
"topRow": 0,
"bottomRow": 390,
"parentRowSpace": 1,
"isVisible": true,
"type": "CANVAS_WIDGET",
"canExtend": false,
"version": 1,
"hideCard": true,
"parentId": "gp06qafc2h",
"minHeight": 400,
"renderMode": "CANVAS",
"isLoading": false,
"parentColumnSpace": 1,
"leftColumn": 0,
"children": [
{
"widgetName": "Text1",
"displayName": "Text",
"iconSVG": "/static/media/icon.97c59b52.svg",
"topRow": 1,
"bottomRow": 5,
"type": "TEXT_WIDGET",
"hideCard": false,
"animateLoading": true,
"leftColumn": 1.5,
"shouldTruncate": false,
"truncateButtonColor": "#FFC13D",
"text": "Form",
"key": "29yspsbe4n",
"rightColumn": 25.5,
"textAlign": "LEFT",
"widgetId": "wc6sshu4b3",
"isVisible": true,
"fontStyle": "BOLD",
"textColor": "#231F20",
"shouldScroll": false,
"version": 1,
"parentId": "yjoe9m261a",
"renderMode": "CANVAS",
"isLoading": false,
"fontSize": "HEADING1"
},
{
"resetFormOnClick": true,
"widgetName": "FormButton1",
"buttonColor": "#03B365",
"displayName": "FormButton",
"iconSVG": "/static/media/icon.c8f649ed.svg",
"topRow": 33,
"bottomRow": 37,
"type": "FORM_BUTTON_WIDGET",
"hideCard": true,
"animateLoading": true,
"leftColumn": 46,
"text": "Submit",
"key": "eo83jr63xj",
"rightColumn": 62,
"isDefaultClickDisabled": true,
"widgetId": "zu43wqoxr7",
"isVisible": true,
"recaptchaType": "V3",
"version": 1,
"parentId": "yjoe9m261a",
"renderMode": "CANVAS",
"isLoading": false,
"disabledWhenInvalid": true,
"buttonVariant": "PRIMARY"
},
{
"widgetName": "Select2",
"isFilterable": false,
"displayName": "Select",
"iconSVG": "/static/media/icon.bd99caba.svg",
"labelText": "Label",
"topRow": 8,
"bottomRow": 15,
"parentRowSpace": 10,
"type": "SELECT_WIDGET",
"serverSideFiltering": false,
"hideCard": false,
"defaultOptionValue": "GREEN",
"selectionType": "SINGLE_SELECT",
"animateLoading": true,
"parentColumnSpace": 7.1171875,
"dynamicTriggerPathList": [],
"leftColumn": 3,
"dynamicBindingPathList": [],
feat: select and multiselect label value (#24964) ## Description - Select and multi-select widgets now have two new properties under the data section label and value. - The existing options have been renamed to Source data. - Users can set the label and value of the options through these new properties. - We have written migrations to make this work for existing select widgets. #### PR fixes following issue(s) Fixes https://github.com/appsmithorg/appsmith/issues/24022 > #### Media > A video or a GIF is preferred. when using Loom, don’t embed because it looks like it’s a GIF. instead, just link to the video > > #### Type of change > Please delete options that are not relevant. - Bug fix (non-breaking change which fixes an issue) - New feature (non-breaking change which adds functionality) - Breaking change (fix or feature that would cause existing functionality to not work as expected) - Chore (housekeeping or task changes that don't impact user perception) - This change requires a documentation update > > > ## Testing > #### How Has This Been Tested? > Please describe the tests that you ran to verify your changes. Also list any relevant details for your test configuration. > Delete anything that is not relevant - [x] Manual - [x] Jest - [x] Cypress > > #### Test Plan > Add Testsmith test cases links that relate to this PR > > #### Issues raised during DP testing > Link issues raised during DP testing for better visiblity and tracking (copy link from comments dropped on this PR) > > > ## Checklist: #### Dev activity - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [ ] PR is being merged under a feature flag #### QA activity: - [ ] [Speedbreak features](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#speedbreakers-) have been covered - [ ] Test plan covers all impacted features and [areas of interest](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#areas-of-interest-) - [ ] Test plan has been peer reviewed by project stakeholders and other QA members - [ ] Manually tested functionality on DP - [ ] We had an implementation alignment call with stakeholders post QA Round 2 - [ ] Cypress test cases have been added and approved by SDET/manual QA - [ ] Added `Test Plan Approved` label after Cypress tests were reviewed - [ ] Added `Test Plan Approved` label after JUnit tests were reviewed --------- Co-authored-by: Rishabh Rathod <rishabh.rathod@appsmith.com>
2023-07-25 04:56:33 +00:00
"sourceData": "[\n {\n \"label\": \"Blue\",\n \"value\": 0\n },\n {\n \"label\": \"Green\",\n \"value\": \"GREEN\"\n },\n {\n \"label\": \"Red\",\n \"value\": \"RED\"\n },\n\t{\n \"label\": \"Red2\",\n \"value\": \"\"\n }\n]",
"optionLabel": "label",
"optionValue": "value",
feat: Integrate one click binding to sourceData of select and multi select widget (#25750) ## Description We have changed the property control of sourceData of select and multi select widget to dropdowns which has one click-binding items. #### PR fixes following issue(s) Fixes https://github.com/appsmithorg/appsmith/issues/24780 #### Type of change - New feature (non-breaking change which adds functionality) ## Testing > #### How Has This Been Tested? > Please describe the tests that you ran to verify your changes. Also list any relevant details for your test configuration. > Delete anything that is not relevant - [x] Manual - [ ] Cypress > > #### Test Plan >(https://github.com/appsmithorg/TestSmith/issues/2472) > > #### Issues raised during DP testing > (https://github.com/appsmithorg/appsmith/pull/25750#issuecomment-1665077044) > > > ## Checklist: #### Dev activity - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [ ] PR is being merged under a feature flag #### QA activity: - [ ] [Speedbreak features](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#speedbreakers-) have been covered - [x] Test plan covers all impacted features and [areas of interest](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#areas-of-interest-) - [x] Test plan has been peer reviewed by project stakeholders and other QA members - [x] Manually tested functionality on DP - [ ] We had an implementation alignment call with stakeholders post QA Round 2 - [ ] Cypress test cases have been added and approved by SDET/manual QA - [ ] Added `Test Plan Approved` label after Cypress tests were reviewed - [ ] Added `Test Plan Approved` label after JUnit tests were reviewed
2023-08-10 05:21:19 +00:00
"dynamicPropertyPathList": [{"key": "sourceData"}],
"placeholderText": "Select option",
"isDisabled": false,
"key": "ber0u80gjl",
"isRequired": true,
"rightColumn": 36,
"widgetId": "rv7mga1t36",
"isVisible": true,
"version": 1,
"parentId": "yjoe9m261a",
"renderMode": "CANVAS",
"isLoading": false
},
{
"widgetName": "TreeSelect1",
"displayName": "TreeSelect",
"iconSVG": "/static/media/icon.bd99caba.svg",
"labelText": "Label",
"topRow": 20,
"bottomRow": 27,
"parentRowSpace": 10,
"type": "SINGLE_SELECT_TREE_WIDGET",
"hideCard": false,
"defaultOptionValue": "BLUE",
"animateLoading": true,
"parentColumnSpace": 7.1171875,
"dynamicTriggerPathList": [],
"leftColumn": 3,
"dynamicBindingPathList": [],
"options": "[\n {\n \"label\": \"Blue\",\n \"value\": 1\n },\n {\n \"label\": \"Green\",\n \"value\": \"GREEN\"\n },\n {\n \"label\": \"Red\",\n \"value\": \"RED\"\n },\n\t{\n \"label\": \"Red2\",\n \"value\": \"\"\n }\n]",
"placeholderText": "Select option",
"isDisabled": false,
"key": "wkuxvtxfci",
"isRequired": true,
"rightColumn": 37,
"widgetId": "4wf8avexi2",
"isVisible": true,
"version": 1,
"expandAll": false,
"parentId": "yjoe9m261a",
"renderMode": "CANVAS",
"isLoading": false,
"allowClear": false
}
],
"key": "zw0vf9cv0b"
}
],
"key": "xlr3lp9t6q"
}
]
}
}