PromucFlow_constructor/app/client/src/actions
Abhinav Jha d6f2d7ed7a
fix: Changes for Anvil Alpha release (#34211)
## Description
This PR makes the following changes to prepare for the Anvil Alpha
release
- Add a toggle to the applications page header that allows us to toggle
the Anvil feature flag from the UI.
- Enable the above toggle if the toggle feature flag is enabled
- When the toggle is enabled the following changes occur in the UX
- Import application via Git is disabled and a callout is shown to the
user
  - Git features are unavailable for users in Anvil applications
- Copying and pasting widgets between two different layout systems is
disabled and a warning message is shown to the user
- Partial import export of widgets between two different layout systems
is disabled and a warning message is shown to the user
  - CRUD page generation is disabled from datasources
- Anvil applications and classic applications are separated into their
own sections in the workspace.
- In case any of the above sections are empty, an appropriate message is
displayed in the empty section

### Screenshots

![Alpha
Toggle](https://github.com/appsmithorg/appsmith/assets/103687/6bc887e7-eff6-41c2-98a9-ddd5826d4d1a)
![Import from Git
Callout](https://github.com/appsmithorg/appsmith/assets/103687/42cd05c8-da90-4e2e-93be-f4038b1f21f3)

![Paste-callout](https://github.com/appsmithorg/appsmith/assets/103687/031ee732-4ad5-4a03-88bf-d02bab1d3faa)
![Screenshot from 2024-07-03
14-39-13](https://github.com/appsmithorg/appsmith/assets/103687/037585d0-1470-47f7-81b2-c0cf4c7901f9)

### Other details  
- Toggle feature flag - `release_anvil_toggle_enabled`
- Anvil feature flag - `release_anvil_enabled`


Fixes #34578 
Fixes #34576 
Fixes #34575 
Fixes #33718

## Automation

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

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!CAUTION]
> 🔴 🔴 🔴 Some tests have failed.
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/9793128338>
> Commit: 09401272c1d52c915aee3b68925406f2f5f962ba
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=9793128338&attempt=2&selectiontype=test&testsstatus=failed&specsstatus=fail"
target="_blank">Cypress dashboard</a>.
> Tags: @tag.All
> The following are new failures, please fix them before merging the PR:
<ol>
>
<li>cypress/e2e/Regression/ClientSide/PartialImportExport/PartialExport_spec.ts</ol>
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/identified-flaky-tests-65890b3c81d7400d08fa9ee3?branch=master"
target="_blank">List of identified flaky tests</a>.
<!-- 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**
  - Added Anvil toggle functionality to the page header.
  - Introduced layout compatibility checks for pasting widgets.

- **Enhancements**
  - Updated widget paste action to verify layout system compatibility.
- Improved handling and processing of user-uploaded JSON files for
widget import.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-07-05 13:57:59 +05:30
..
actionSelectorActions.ts chore: Add analytics event to track telemetry is disabled & update properties for INVITE_USER event (#24042) 2023-06-06 02:57:40 +05:30
activeFieldActions.ts chore: Refactor debugger analytics for active fields (#28036) 2023-10-16 09:22:11 +05:30
analyticsActions.ts chore: Removing feature flag for app level invites (#22650) 2023-04-26 12:48:16 +05:30
apiPaneActions.ts chore: Debugger Split states (#31043) 2024-02-29 11:53:57 +05:30
appCollabActions.ts feat: Refactor code for SAML integration (#12700) 2022-04-12 16:20:01 +05:30
appSettingsPaneActions.ts chore: Make App Sidebar Generally Available (#30923) 2024-02-07 11:25:23 +05:30
appThemingActions.tsx feat: Frontend changes for consolidated-api with EE test case support (#30506) 2024-01-24 12:14:16 +05:30
appViewActions.ts feat: App Theming (#9714) 2022-05-04 15:15:57 +05:30
authActions.ts feat: Frontend changes for consolidated-api with EE test case support (#30506) 2024-01-24 12:14:16 +05:30
autoHeightActions.ts chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
autoLayoutActions.ts chore: Remove unneeded fields in snapshot response body (#32813) 2024-04-22 08:08:45 +05:30
batchActions.ts chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
browserRequestActions.ts feat: Refactor code for SAML integration (#12700) 2022-04-12 16:20:01 +05:30
canvasSelectionActions.ts chore: Layout system wise restructuring of Canvas Widget (#27496) 2023-10-04 17:23:29 +05:30
communityTemplateActions.ts chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
controlActions.tsx chore: Make use of widget methods to get binding properties in sniping mode (#25429) 2023-07-26 11:08:11 +05:30
crudInfoModalActions.ts chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
datasourceActions.ts chore: change saas authentication to context based (#31064) 2024-03-07 15:36:31 +05:30
debuggerActions.ts chore: refactor in debugger saga to transform error logs in EE (#32383) 2024-04-11 11:36:48 +05:30
editorActions.ts feat: debugger error navigation (#25505) 2023-08-01 09:32:41 +05:30
editorContextActions.ts chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
errorActions.ts Remove server error cases 2023-04-05 14:09:00 +05:30
evaluationActions.ts feat: constrained diff between states (#31847) 2024-03-27 14:37:46 +05:30
explorerActions.ts feat: Refactor code for SAML integration (#12700) 2022-04-12 16:20:01 +05:30
featureFlagActions.ts chore: fix ee type checks issue. (#32612) 2024-04-11 19:03:39 +05:30
focusHistoryActions.ts fix: On delete of last item, redirect user to blank screen (#32418) 2024-04-05 17:56:17 +05:30
gitSyncActions.ts chore: autocommit feature branch (#34062) 2024-06-10 12:35:23 +05:30
globalSearchActions.ts chore: Sunset Omnibar Documentation and Snippets (#24787) 2023-06-30 15:51:08 +05:30
helpActions.ts feat: Refactor code for SAML integration (#12700) 2022-04-12 16:20:01 +05:30
ideActions.ts feat: side-by-side edit mode hover analytics (#34185) 2024-06-20 14:03:06 +05:30
importActions.ts chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
initActions.ts feat: Frontend changes for consolidated-api with EE test case support (#30506) 2024-01-24 12:14:16 +05:30
jsActionActions.ts fix: The case of the missing tabs (#33066) 2024-05-08 22:57:27 +05:30
JSLibraryActions.ts feat: Frontend changes for consolidated-api with EE test case support (#30506) 2024-01-24 12:14:16 +05:30
jsPaneActions.ts fix: Show loading state of application until all jsobject update calls are complete (#33545) 2024-05-24 11:49:29 +05:30
lintingActions.ts feat: show lint errors in async functions bound to sync fields (#21187) 2023-04-03 16:11:15 +05:30
metaActions.ts fix: reset widget to default value after setter method (#29151) 2023-12-08 11:16:31 +01:00
metaWidgetActions.ts chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
onboardingActions.ts fix: Remove guided tour code (#30387) 2024-01-24 16:31:21 +05:30
oneClickBindingActions.ts chore: Add analytics event to track telemetry is disabled & update properties for INVITE_USER event (#24042) 2023-06-06 02:57:40 +05:30
pageActions.tsx chore: Remove blockNavigation in Page create API body (#32859) 2024-04-25 21:31:51 +05:30
pageVisibilityActions.ts feat: Bundle optimization and first load improvements (#21667) 2023-05-11 10:56:03 +05:30
pluginActionActions.ts fix: The case of the missing tabs (#33066) 2024-05-08 22:57:27 +05:30
pluginActions.ts feat: Frontend changes for consolidated-api with EE test case support (#30506) 2024-01-24 12:14:16 +05:30
propertyPaneActions.ts fix: action selector create flow (#32326) 2024-04-05 11:28:47 +05:30
queryPaneActions.ts chore: Debugger Split states (#31043) 2024-02-29 11:53:57 +05:30
reflowActions.ts chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
releasesActions.ts feat: Refactor code for SAML integration (#12700) 2022-04-12 16:20:01 +05:30
templateActions.ts fix: remove building blocks on canvas (#33761) 2024-05-31 11:22:34 +05:30
themeActions.ts chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
tourActions.ts chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
userActions.ts feat: Frontend changes for consolidated-api with EE test case support (#30506) 2024-01-24 12:14:16 +05:30
utilActions.ts feat: Refactor code for SAML integration (#12700) 2022-04-12 16:20:01 +05:30
websocketActions.ts chore: Refactor rts connection retry with limits (#19781) 2023-01-14 21:38:39 +05:30
widgetActions.tsx fix: Changes for Anvil Alpha release (#34211) 2024-07-05 13:57:59 +05:30
widgetSelectionActions.ts chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
widgetSidebarActions.tsx chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30