PromucFlow_constructor/app/client/src
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
..
actions fix: Changes for Anvil Alpha release (#34211) 2024-07-05 13:57:59 +05:30
api chore: Remove strict payload parsing (#34680) 2024-07-03 19:11:41 +05:30
assets fix: Sync EE items into CE (#34373) 2024-06-24 09:36:38 +00:00
ce fix: Changes for Anvil Alpha release (#34211) 2024-07-05 13:57:59 +05:30
components fix: Changes for Anvil Alpha release (#34211) 2024-07-05 13:57:59 +05:30
constants fix: Changes for Anvil Alpha release (#34211) 2024-07-05 13:57:59 +05:30
ee chore: Prefetch module apis in service worker (#34003) 2024-06-14 16:30:23 +05:30
enterprise
entities chore: autocommit feature branch (#34062) 2024-06-10 12:35:23 +05:30
globalStyles fix: Sync EE items into CE (#34373) 2024-06-24 09:36:38 +00:00
icons
IDE fix: Overflow list new UI restore (#34658) 2024-07-05 11:55:29 +05:30
layoutSystems fix: Changes for Anvil Alpha release (#34211) 2024-07-05 13:57:59 +05:30
mockComponentProps
mockResponses
mocks feat: Anvil DnD Polish(Refactor) (#32839) 2024-04-29 11:32:08 +05:30
navigation test: Extract pageId with regex to cover more cases (#34521) 2024-07-02 06:31:59 +05:30
pages fix: Changes for Anvil Alpha release (#34211) 2024-07-05 13:57:59 +05:30
plugins/Linting chore: add new custom linter for module inputs (#33940) 2024-06-05 21:09:12 +05:30
polyfills
reducers feat: side-by-side edit mode hover analytics (#34185) 2024-06-20 14:03:06 +05:30
reflow chore: update storybook (#32828) 2024-04-22 12:17:28 +03:00
sagas fix: Changes for Anvil Alpha release (#34211) 2024-07-05 13:57:59 +05:30
selectors fix: Changes for Anvil Alpha release (#34211) 2024-07-05 13:57:59 +05:30
templates
theme
transformers fix: self signed certificates value set in the props (#32474) 2024-04-08 14:34:53 +05:30
UITelemetry chore: Add evalTreeWithDiff to evalWorkerAction (#34403) 2024-06-27 12:08:53 +05:30
usagePulse chore: Update analytics to pass the correct source information in identify user call (#32591) 2024-04-19 15:06:50 +05:30
utils fix: Changes for Anvil Alpha release (#34211) 2024-07-05 13:57:59 +05:30
WidgetProvider feat: On Canvas UI Colors and Widget API to consume these colors (#33013) 2024-05-01 13:57:52 +05:30
WidgetQueryGenerators
widgets chore: Turn off Allow filtering property on Table widget (#34593) 2024-07-05 08:46:11 +01:00
workers chore: update local uneval tree only for jsObjects and exit early for other entities (#34524) 2024-07-04 12:30:21 +05:30
App.css
AppErrorBoundry.tsx chore: Update analytics to pass the correct source information in identify user call (#32591) 2024-04-19 15:06:50 +05:30
config.d.ts
Globals.d.ts fix: Sync EE items into CE (#34373) 2024-06-24 09:36:38 +00:00
index.css feat: font update - PT root UI medium (#33008) 2024-05-08 17:47:34 +05:30
index.tsx chore: Fix bugs in logic for capturing web vitals for client (#32371) 2024-04-09 14:25:46 +05:30
LandingScreen.tsx
preload-route-chunks.ts
react-app-env.d.ts
RouteChangeListener.tsx
serviceWorker.ts chore: Prefetch module apis in service worker (#34003) 2024-06-14 16:30:23 +05:30
store.ts
wdyr.ts