PromucFlow_constructor/app/client/src/ce/constants
Preet Sidhu c396fc5499
feat: Add copy paste functionality for Anvil. (#30217)
## Description

1. Copy paste functionality for Anvil.
2. Handle automatic creation of sections and zones based on different
scenarios.
3. Handle space distribution on paste.

#### 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
- [ ] JUnit
- [ ] Jest
- [ ] Cypress

## 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
- [ ] My changes generate no new warnings
- [ ] 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


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

- **New Features**
- Introduced a new paste functionality for widgets within the Anvil
layout system.

- **Improvements**
  - Refined widget movement logic to accommodate different canvas types.
- Expanded widget pasting capabilities with additional checks and
operations.

- **Bug Fixes**
- Addressed potential issues with dragging blocks by ensuring existence
checks before mapping.

- **Refactor**
- Streamlined sagas for widget operations to better align with the Anvil
layout system.
- Consolidated widget position utility functions for more efficient
layout management.

- **User Interface**
- Implemented user-friendly error messaging for paste operations that
fail.

- **Documentation**
- Updated messages and constants to support new paste functionality and
error handling.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Ashok Kumar M <35134347+marks0351@users.noreply.github.com>
2024-01-24 21:55:08 +05:30
..
routes chore: Remove unused services (#30292) 2024-01-23 05:43:16 +05:30
ApiConstants.tsx feat: Email Verification (#25854) 2023-08-26 09:52:23 +05:30
forms.ts fix: updated the design for the admin users (#29712) 2023-12-25 17:54:46 +05:30
messages.ts feat: Add copy paste functionality for Anvil. (#30217) 2024-01-24 21:55:08 +05:30
ModuleConstants.ts chore: split for module instance evaluation on ee (#29027) 2023-11-22 15:02:44 +05:30
ModuleInstanceConstants.ts fix: on click bug fix (#29743) 2023-12-19 19:50:31 +05:30
PackageConstants.ts chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
ReduxActionConstants.tsx fix: Remove guided tour code (#30387) 2024-01-24 16:31:21 +05:30
SocialLogin.tsx chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
tenantConstants.ts feat: use hideWatermark from tenantConfig (#28085) 2023-10-15 00:04:45 +05:30
UsagePulse.ts fix: fix usage pulse fallback (#21735) 2023-04-06 17:51:58 +05:30
WorkflowConstants.ts chore: workflows sidebar changes code split (#29718) 2024-01-04 11:38:20 +05:30
workspaceConstants.ts chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00