PromucFlow_constructor/app/client/src/constants
Ashok Kumar M be057ff1d8
feat: Anvil DnD highlight activation upgrade (#29979)
> Pull Request Template
>
> Use this template to quickly create a well written pull request.
Delete all quotes before creating the pull request.
>
## Description
In this PR, we are trying to help users figure out wrapped cells and
also differentiate cell drops vs new cell drops.
we are also enhancing the highlights selection algorithm.
- highlights no longer have dropzones
- closest vertical highlights(cell drops) are triggered whenever the
mouse is deemed to be inside the cell withing a set threshold. Cell is
also highlighted for such highlights
- horizontal highlights(new cell drops) are triggered whenever the mouse
is deemed to be not inside any cell based on set threshold.
- post the above filter the closest highlight to the mouse position is
selected to be shown on the canvas as a highlight. so except for places
like Section padding and Zone padding where there is no Canvas,
highlights will always show up.

Issues observed while working on this PR:
- In safari center highlight seems to not work.
- highlights dont trigger in Section + Zone padding areas(will not be
addressed in this PR)
#### PR fixes following issue(s)
Fixes # (issue number)
> if no issue exists, please create an issue and ask the maintainers
about this first
>
>
#### 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
- [ ] Manual
- [ ] JUnit
- [ ] Jest
- [ ] 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
- [ ] My code follows the style guidelines of this project
- [ ] 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
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] 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 highlight feature for the app's layout components.
- Enhanced search functionality with immediate activation for specific
feature flags.

- **Improvements**
- Improved the visual feedback during drag-and-drop operations with
optimized highlight rendering.
- Streamlined the logic for determining viable drop positions within the
layout system.
- Added conditional styling capabilities based on the application's
state.

- **Bug Fixes**
- Corrected the feature flag behavior to ensure consistent feature
access.

- **Refactor**
- Removed unused constants and properties related to drop zones to
simplify layout calculations.
- Enhanced type safety in selector functions for better maintainability.

- **Style**
- Added a new color constant for highlight effects, improving the visual
experience.

- **Tests**
- Updated tests to reflect changes in layout highlight logic and removal
of drop zones.


<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-01-11 21:31:38 +05:30
..
ApiEditorConstants feat: http2 support for REST API and GraphQL (#29304) 2023-12-19 15:56:20 +05:30
AppsmithActionConstants chore: custom widget (#28926) 2023-12-28 12:16:28 +05:30
defs feat: show additional info for autocomplete results (#28564) 2023-11-10 13:36:10 +05:30
routes chore: Refactoring API wiring for actions and JS actions to support private entity renaming on EE (#29763) 2023-12-21 10:22:54 +05:30
AppConstants.ts chore: New Theme Settings Integration (#29848) 2023-12-28 13:58:33 +05:30
BindingsConstants.ts revert: Reverting PR 23245 as regex is using lookbehind which is not … (#24306) 2023-06-12 13:01:29 +05:30
CanvasEditorConstants.tsx chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
collectionsConstants.ts chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
Colors.tsx feat: Anvil DnD highlight activation upgrade (#29979) 2024-01-11 21:31:38 +05:30
componentClassNameConstants.ts chore: code changes for widget position observer and widget name on canvas (#27367) 2023-10-06 15:37:43 +05:30
Currency.tsx chore: integrate currency input widget (#28566) 2023-11-15 15:57:50 +03:00
Datasource.ts feat: Datasource preview page in view mode (#26381) 2023-08-30 08:14:14 +01:00
DatasourceEditorConstants.ts chore: refactor for convert query to module (#29970) 2024-01-03 15:42:35 +05:30
DefaultTheme.tsx chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
DocumentationLinks.ts chore: Sunset Omnibar Documentation and Snippets (#24787) 2023-06-30 15:51:08 +05:30
Explorer.ts fix: hide explorer menu on scroll (#15537) 2022-08-16 14:18:47 +05:30
FieldExpectedValue.ts Widget Property Validation structure (#5270) 2021-07-26 11:20:46 +05:30
Fonts.tsx fix: Visual changes to code inside appsmith (#22652) 2023-05-11 23:08:10 +05:30
GitErrorCodes.ts feat: Error handling phase 1 (#20629) 2023-02-18 18:25:46 +05:30
HelpConstants.ts feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
IconConstants.tsx chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
ImagesURL.ts feat: util to serve images locally or via remote url (#22080) 2023-04-10 12:32:31 +05:30
ISDCodes_v2.tsx feat: Input, Phone no., Currency input widget (#10259) 2022-01-18 13:22:24 +05:30
ISDCodes.tsx Input widget: New data type supported - Phone number with ISD codes (#5256) 2021-08-26 16:22:45 +05:30
KeyboardShortcuts.ts Tern autocomplete 2020-05-20 11:30:53 +00:00
Layers.tsx fix: Added an Indice.Layer to the Border and Indicator of the Guided … (#25585) 2023-07-24 15:43:55 +05:30
minWidthConstants.ts feat: Auto layout appsmith editor and mobile responsiveness (#21151) 2023-03-04 12:55:54 +05:30
ProductUpdate.ts chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
PropertyControlConstants.tsx chore: custom widget (#28926) 2023-12-28 12:16:28 +05:30
providerConstants.ts chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
QueryEditorConstants.ts feat: Datasource preview page in view mode (#26381) 2023-08-30 08:14:14 +01:00
Regex.ts fix: display name validation (client) (#22938) 2023-05-04 18:29:57 +05:30
routes.test.ts chore: route builder refactor (#27905) 2023-10-12 11:01:22 +05:30
serverAssets.ts fix: oracle icon path (#22986) 2023-05-08 12:53:55 +05:30
StyleConstants.tsx WIP: Fix eslint errors 2019-09-09 14:38:54 +05:30
TemplatesConstants.tsx feat: adds see more to canvas starter templates (#29777) 2023-12-27 10:29:33 +05:30
ThemeConstants.tsx chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
ThirdPartyConstants.tsx fix: remove feature flag and minor fixes for git branch protection (#28770) 2023-11-13 13:37:18 +05:30
typography.ts refactor: admin settings (#9906) 2022-02-11 23:38:46 +05:30
userConstants.ts fix: updated the design for the admin users (#29712) 2023-12-25 17:54:46 +05:30
WalkthroughConstants.ts feat: walkthrough optional footer (#28702) 2023-11-08 20:40:36 +05:30
WebsocketConstants.tsx refactor: client side rts (#7837) 2021-10-01 16:44:19 +00:00
WidgetConstants.tsx chore: Remove server side filtering flag (#27663) 2023-10-04 13:48:41 +05:30
WidgetValidation.ts chore(deps): bump axios from 0.27.2 to 1.6.0 in /app/client (#28776) 2023-11-23 18:12:28 +05:30