PromucFlow_constructor/app/client/src
Preet Sidhu fa7bd6a543
feat: add layouts and widgets for sections and zones. (#29713)
## Description

1. Create Section Widget.
2. Create Zone Widget.
3. Create layouts and presets for Sections and zones.
4. Upate layout for Anvil Main Canvas.
5. Refactor BaseLayoutComponent. Separate renderer for edit and view
modes.
6. Add childrenMap context to avoid prop drilling through all layouts.
7. Add Anvil Config for WDS widgets.

#### Type of change
- New feature (non-breaking change which adds functionality)

## Testing
#### How Has This Been Tested?
- [x] Manual
- [ ] JUnit
- [ ] Jest
- [ ] Cypress

#### Test Plan

## 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
- [ ] 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 `Zone Stepper Control` component for UI interaction.
- Added `AnvilCanvas` and `AnvilMainCanvas` components with improved
performance and interaction features.
- Implemented `LayoutProvider` and `useClickToClearSelections` for
better layout management.
- Launched `AnvilCanvasDraggingArena` and `AnvilHighlightingCanvas`
components with enhanced drag-and-drop capabilities.
- New `useZoneMinWidth` hook to calculate minimum zone width based on
child widgets.
- Added `SectionRow`, `Section`, `ZoneColumn`, and `Zone` components for
advanced layout structuring.
  - New `WidgetRenderer` component for dynamic child widget rendering.

- **Enhancements**
- Improved canvas activation and deactivation logic with
`useCanvasActivation` and `useCanvasActivationStates`.
- Enhanced drag-and-drop experience with updated `useCanvasDragging`
logic.
- Streamlined `AnvilMainCanvas` integration with conditional rendering
based on `renderMode`.
- Optimized `FlexLayout` component to handle new `isContainer` and
`layoutType` properties.

- **Bug Fixes**
- Fixed issues with widget positioning and event handling in
`WidgetNamesCanvas` components.
- Corrected `PageView` width property type for consistent page
rendering.

- **Refactor**
- Consolidated Anvil layout update management with `anvilSagas` and
`anvilChecksSagas`.
- Refined `SectionWidget` and `ZoneWidget` configuration for improved
stability and performance.
- Streamlined `LayoutElementPositionsObserver` with `layoutType`
enhancements.

- **Documentation**
- Updated comments and added clarifications for better developer
understanding of canvas-related hooks and components.

- **Style**
- Modified `.anvil-canvas` class styles for full-width and height
presentation.

- **Chores**
- Cleaned up import statements and removed unused code across various
components and utilities.

- **Tests**
- Enhanced Cypress tests with additional selectors and interaction
commands for `AutoDimension` feature verification.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Ashok Kumar M <35134347+marks0351@users.noreply.github.com>
2023-12-26 09:16:58 -05:00
..
actions feat: autocommit UI integration (#29755) 2023-12-22 16:36:54 +05:30
api fix: Refactoring code to fix a couple of issues related to modules on EE (#29843) 2023-12-26 11:38:00 +05:30
assets chore: Added context switching for pages pane (#29100) 2023-11-28 18:16:43 +05:30
ce feat: add layouts and widgets for sections and zones. (#29713) 2023-12-26 09:16:58 -05:00
components feat: add layouts and widgets for sections and zones. (#29713) 2023-12-26 09:16:58 -05:00
constants fix: updated the design for the admin users (#29712) 2023-12-25 17:54:46 +05:30
ee fix: Refactoring code to fix a couple of issues related to modules on EE (#29843) 2023-12-26 11:38:00 +05:30
enterprise
entities fix: Blank states sidebar (#29768) 2023-12-26 14:39:14 +05:30
globalStyles feat: show additional info for autocomplete results (#28564) 2023-11-10 13:36:10 +05:30
icons feat: Adds partial import functionality (#28293) 2023-11-17 12:46:18 +05:30
layoutSystems feat: add layouts and widgets for sections and zones. (#29713) 2023-12-26 09:16:58 -05:00
mockComponentProps
mockResponses
mocks feat: add layouts and widgets for sections and zones. (#29713) 2023-12-26 09:16:58 -05:00
navigation fix: Moves property pane width context state to Editor level (#29806) 2023-12-22 21:56:58 +05:30
pages feat: add layouts and widgets for sections and zones. (#29713) 2023-12-26 09:16:58 -05:00
plugins/Linting chore: CE changes for linting (#28542) 2023-11-03 16:31:49 +05:30
polyfills
reducers feat: add layouts and widgets for sections and zones. (#29713) 2023-12-26 09:16:58 -05:00
reflow
sagas feat: add layouts and widgets for sections and zones. (#29713) 2023-12-26 09:16:58 -05:00
selectors feat: autocommit UI integration (#29755) 2023-12-22 16:36:54 +05:30
templates
theme
transformers feat: http2 support for REST API and GraphQL (#29304) 2023-12-19 15:56:20 +05:30
UITelemetry chore: capturing more telemetry data as per fe coder's requirements(#29153) (#29287) 2023-12-05 11:02:03 +05:30
usagePulse
utils fix: Icons not coming up in start with template flow. (#29857) 2023-12-26 14:49:08 +05:30
WidgetProvider chore: add configuration for large and small widgets (#28671) 2023-11-14 10:55:48 +05:30
WidgetQueryGenerators
widgets feat: add layouts and widgets for sections and zones. (#29713) 2023-12-26 09:16:58 -05:00
workers fix: clearInterval only clears the 'id' passed as the argument, instead of all the intervals (#29805) 2023-12-26 15:15:53 +05:30
App.css
AppErrorBoundry.tsx
config.d.ts
Globals.d.ts
index.css
index.tsx chore: frontend and backend telemetry updates for execute flow #28800 and #28805 (#28936) 2023-11-24 13:09:02 +05:30
LandingScreen.tsx
preload-route-chunks.ts fix: Refactor preloads to fix an issue with CDN on EE (#28402) 2023-10-30 13:32:37 +05:30
react-app-env.d.ts
RouteChangeListener.tsx
serviceWorker.js
store.ts chore: Refactor URLAssembly to throw error on missing pageId for app route resolution only (#28527) 2023-11-02 15:55:24 +05:30
wdyr.ts