PromucFlow_constructor/app/client/src/pages
Hetu Nandu b568efa137
fix: ADS Context Menu issues (#39683)
## Description

Fixes two bugs related to ADS Entity Explorer usage of Context Menu

1. To fix the issue with the context menu position, we make sure the
right control has visibility change on hover instead of display. The
menu is anchored to a element for position and when the display of the
element is none, it get attached to the top left corner on 0,0
This is the same solution as the one used in the old entity explorer

https://github.com/appsmithorg/appsmith/blob/release/app/client/src/pages/Editor/Explorer/Entity/index.tsx#L178-L179

2. To fix the issue with the cmd+z not working, we add a timeout for
delete action in the context menu. This is an old issue with menu where
the focus is set to the menu trigger component when the menu closes.
This blocks us from listening to keyboard shortcut events as the element
is not propagating the event up.
This is the same solution as the one used in old entity explorer

https://github.com/appsmithorg/appsmith/blob/release/app/client/src/pages/Editor/Explorer/ContextMenu.tsx#L53-L56

Fixes #39665
Fixes #39641

## Automation

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



## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [ ] No


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

## Summary by CodeRabbit

- **Style**
- Improved hover behavior in list items so that controls reveal
seamlessly without affecting the overall layout.

- **Bug Fixes**
- Refined the widget deletion process to prevent focus issues, ensuring
smoother keyboard shortcut interactions.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-03-12 10:58:39 +00:00
..
AdminSettings chore: Migrate Tenant to Organization (#38891) 2025-02-18 20:41:07 +05:30
AppIDE fix: ADS Context Menu issues (#39683) 2025-03-12 10:58:39 +00:00
Applications fix: App card routing (#38798) 2025-01-29 13:52:20 +05:30
AppViewer chore: Delete unused KnowledgeBase and fix some explicit-any (#37783) 2025-02-21 12:35:21 +05:30
common chore: Migrate Tenant to Organization (#38891) 2025-02-18 20:41:07 +05:30
Editor chore: added upcoming section for gac enabled users (#39563) 2025-03-07 18:19:33 +05:30
hooks chore: delete unused code (#36461) 2024-09-23 13:52:00 +03:00
setup fix: Use Spring's native CSRF protection, and fix login page (#37292) 2025-03-08 21:01:02 +05:30
Templates chore: Removing cyclic dependencies due to Sentry route (#39471) 2025-02-27 15:17:38 +05:30
tests chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
UserAuth fix: CSRF token in email verification form 2025-03-11 15:11:35 +05:30
UserProfile chore: Migrate Tenant to Organization (#38891) 2025-02-18 20:41:07 +05:30
users chore:delete unused files (#36368) 2024-09-19 16:01:03 +03:00
workspace chore: Removing cyclic dependencies due to Sentry route (#39471) 2025-02-27 15:17:38 +05:30
utils.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00