Repository: appsmithorg/appsmith
Pull request #39557: chore: AppIDE new Entity Explorer changes
Author: login: hetunandu
Labels: name: IDE Product
description: Issues related to the IDE Product
name: Task
description: A simple Todo
name: skip-changelog
description: Adding this label to a PR prevents it from being listed in the changelog
name: IDE Pod
description: Issues that new developers face while exploring the IDE
name: IDE Navigation
description: Issues/feature requests related to IDE navigation, and context switching
name: ok-to-test
description: Required label for CI
Created: 2025-03-05T05:12:10Z | Merged: 2025-03-06T05:52:27Z

## Description

Just UI changes from #39093 


Fixes #39556

## Automation

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

### :mag: Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!TIP]
> 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
> Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/13673781581>
> Commit: b78e21d50dce1e6af78e40237a9a0bced5b35bc7
> <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=13673781581&attempt=1" target="_blank">Cypress dashboard</a>.
> Tags: `@tag.IDE`
> Spec:
> <hr>Wed, 05 Mar 2025 10:57:58 UTC
<!-- end of auto-generated comment: Cypress test results  -->


## 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

- **New Features**
	- Enhanced editable text components now support name normalization with dynamic ellipsis and improved tooltip handling.
	- Entity and widget list views now display names directly with updated expand/collapse icons and refined selection behavior.
	- Context menus reflect conditional interactivity by disabling options based on permissions and item types.
	- New identifiers for list items and context menus improve testing capabilities.

- **Refactor**
	- Consolidated property handling and class name assignments across components for consistent behavior.
	- Streamlined data structures and conditional rendering in entity explorers and context menus to enhance clarity and maintainability.
	- Updated components to use direct property access for improved performance and readability.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Linked issue #39556: [Task]: AppIDE Entity Explorer style fixes
Separate out the Entity Explorer changes from #39093

Diff:
diff --git a/app/client/packages/design-system/ads/src/List/List.tsx b/app/client/packages/design-system/ads/src/List/List.tsx
index f066d484efb4..7ae36989c255 100644
--- a/app/client/packages/design-system/ads/src/List/List.tsx
+++ b/app/client/packages/design-system/ads/src/List/List.tsx
@@ -119,7 +119,7 @@ function ListItem(props: ListItemProps) {
 
   return (
     <StyledListItem
-      className={clsx(ListItemClassName, props.className)}
+      className={clsx(ListItemClassName, props.className, "t--ide-list-item")}
       data-disabled={props.isDisabled || false}
       data-isblockdescription={isBlockDescription}
       data-rightcontrolvisibility={rightControlVisibility}
diff --git a/app/client/packages/design-system/ads/src/Templates/EditableEntityName/EditableEntityName.tsx b/app/client/packages/design-system/ads/src/Templates/EditableEntityName/EditableEntityName.tsx
index 7037649ca10e..4b00efeee568 100644
--- a/app/client/packages/design-system/ads/src/Templates/EditableEntityName/EditableEntityName.tsx
+++ b/app/client/packages/design-system/ads/src/Templates/EditableEntityName/EditableEntityName.tsx
@@ -1,11 +1,17 @@
-import React, { useMemo } from "react";
+import React, { useEffect, useMemo, useRef, useState } from "react";
 
-import { Spinner, Tooltip } from "../..";
+import { Spinner } from "../../Spinner";
+import { Tooltip } from "../../Tooltip";
 import { useEditableText } from "../../__hooks__";
 
 import * as Styled from "./EditableEntityName.styles";
 
 import type { EditableEntityNameProps } from "./EditableEntityName.types";
+import clsx from "clsx";
+
+export const isEllipsisActive = (element: HTMLElement | null) => {
+  return element && element.clientWidth < element.scrollWidth;
+};
 
 export const EditableEntityName = (props: EditableEntityNameProps) => {
   const {
@@ -16,13 +22,17 @@ export const EditableEntityName = (props: EditableEntityNameProps) => {
     isFixedWidth,
     isLoading,
     name,
+    normalizeName = false,
     onExitEditing,
     onNameSave,
+    showEllipsis = false,
     size = "small",
     validateName,
   } = props;
 
   const inEditMode = canEdit ? isEditing : false;
+  const [showTooltip, setShowTooltip] = useState(false);
+  const longNameRef = useRef<HTMLDivElement | null>(null);
 
   const [
     inputRef,
@@ -36,6 +46,7 @@ export const EditableEntityName = (props: EditableEntityNameProps) => {
     onExitEditing,
     validateName,
     onNameSave,
+    normalizeName,
   );
 
   // When in loading state, start icon becomes the loading icon
@@ -58,30 +69,54 @@ export const EditableEntityName = (props: EditableEntityNameProps) => {
         paddingTop: "4px",
         paddingBottom: "4px",
         top: "-5px",
+        placeholder: "Name",
       },
     }),
     [handleKeyUp, handleTitleChange, inputTestId],
   );
 
+  useEffect(
+    function handleShowTooltipOnEllipsis() {
+      if (showEllipsis) {
+        setShowTooltip(!!isEllipsisActive(longNameRef.current));
+      }
+    },
+    [editableName, showEllipsis],
+  );
+
   return (
     <Styled.Root data-size={size}>
       {startIcon}
       <Tooltip
-        content={validationError}
-        placement="bottom"
-        visible={Boolean(validationError)}
+        content={name}
+        isDisabled={!showTooltip}
+        key="entity-name"
+        mouseEnterDelay={1}
+        placement="topLeft"
+        showArrow={false}
       >
-        <Styled.Text
-          aria-invalid={Boolean(validationError)}
-          data-isediting={inEditMode}
-          data-isfixedwidth={isFixedWidth}
-          inputProps={inputProps}
-          inputRef={inputRef}
-          isEditable={inEditMode}
-          kind={size === "small" ? "body-s" : "body-m"}
+        <Tooltip
+          content={validationError}
+          isDisabled={false}
+          mouseEnterDelay={0}
+          placement="bottom"
+          showArrow
+          visible={Boolean(validationError)}
         >
-          {editableName}
-        </Styled.Text>
+          <Styled.Text
+            aria-invalid={Boolean(validationError)}
+            className={clsx("t--entity-name", { editing: inEditMode })}
+            data-isediting={inEditMode}
+            data-isfixedwidth={isFixedWidth}
+            inputProps={inputProps}
+            inputRef={inputRef}
+            isEditable={inEditMode}
+            kind={size === "small" ? "body-s" : "body-m"}
+            ref={showEllipsis ? longNameRef : null}
+          >
+            {editableName}
+          </Styled.Text>
+        </Tooltip>
       </Tooltip>
     </Styled.Root>
   );
diff --git a/app/client/packages/design-system/ads/src/Templates/EditableEntityName/EditableEntityName.types.ts b/app/client/packages/design-system/ads/src/Templates/EditableEntityName/EditableEntityName.types.ts
index e51d4350ff6c..3531ce8c47e8 100644
--- a/app/client/packages/design-system/ads/src/Templates/EditableEntityName/EditableEntityName.types.ts
+++ b/app/client/packages/design-system/ads/src/Templates/EditableEntityName/EditableEntityName.types.ts
@@ -23,4 +23,8 @@ export interface EditableEntityNameProps {
   onNameSave: (name: string) => void;
   /** Function to validate the name. */
   validateName: (name: string) => string | null;
+  /** Whether a name should be normalized on renaming */
+  normalizeName?: boolean;
+  /** Used for showing ellipsis for longer names */
+  showEllipsis?: boolean;
 }
diff --git a/app/client/packages/design-system/ads/src/Templates/EntityContextMenu/EntityContextMenu.tsx b/app/client/packages/design-system/ads/src/Templates/EntityContextMenu/EntityContextMenu.tsx
index 70cb3e8a9354..5d8abdcb23eb 100644
--- a/app/client/packages/design-system/ads/src/Templates/EntityContextMenu/EntityContextMenu.tsx
+++ b/app/client/packages/design-system/ads/src/Templates/EntityContextMenu/EntityContextMenu.tsx
@@ -14,7 +14,7 @@ import {
 import * as Styled from "./EntityContextMenu.styles";
 
 interface Props {
-  dataTestid?: string;
+  dataTestId?: string;
   children?: React.ReactNode[] | React.ReactNode;
   tooltipContent?: React.ReactNode;
 }
@@ -22,7 +22,7 @@ interface Props {
 export const EntityContextMenu = (props: Props) => {
   const {
     children,
-    dataTestid = DEFAULT_DATA_TEST_ID,
+    dataTestId = DEFAULT_DATA_TEST_ID,
     tooltipContent = DEFAULT_TOOLTIP_CONTENT,
   } = props;
 
@@ -40,7 +40,7 @@ export const EntityContextMenu = (props: Props) => {
           >
             <Button
               className={EntityClassNames.CONTEXT_MENU}
-              data-testid={dataTestid}
+              data-testid={dataTestId}
               isIconButton
               kind="tertiary"
               startIcon="more-2-fill"
diff --git a/app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityGroupsList/EntityGroupsList.tsx b/app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityGroupsList/EntityGroupsList.tsx
index 05ad78b69a4a..798b61a1976d 100644
--- a/app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityGroupsList/EntityGroupsList.tsx
+++ b/app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityGroupsList/EntityGroupsList.tsx
@@ -69,6 +69,7 @@ const EntityGroup = <T,>({
             group.renderList(item)
           ) : (
             <ListItem
+              dataTestId={`entity-group-item-${(item as ListItemProps)?.title}`}
               key={(item as ListItemProps)?.title || `item-${index}`}
               {...(item as ListItemProps)}
             />
diff --git a/app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityItem/EntityItem.tsx b/app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityItem/EntityItem.tsx
index c269815bdb5e..f917db4cdafe 100644
--- a/app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityItem/EntityItem.tsx
+++ b/app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityItem/EntityItem.tsx
@@ -17,6 +17,7 @@ export const EntityItem = (props: EntityItemProps) => {
     canEdit,
     isEditing,
     isLoading,
+    normalizeName = false,
     onEditComplete,
     onNameSave,
     validateName,
@@ -34,8 +35,10 @@ export const EntityItem = (props: EntityItemProps) => {
         isFixedWidth
         isLoading={isLoading}
         name={props.title}
+        normalizeName={normalizeName}
         onExitEditing={onEditComplete}
         onNameSave={onNameSave}
+        showEllipsis
         size="medium"
         validateName={validateName}
       />
@@ -44,6 +47,7 @@ export const EntityItem = (props: EntityItemProps) => {
     canEdit,
     isEditing,
     isLoading,
+    normalizeName,
     onEditComplete,
     onNameSave,
     props.title,
@@ -65,7 +69,7 @@ export const EntityItem = (props: EntityItemProps) => {
       {...rest}
       className={clx("t--entity-item", props.className)}
       customTitleComponent={customTitle}
-      data-testid={`t--entity-item-${props.title}`}
+      dataTestId={`t--entity-item-${props.title}`}
       id={"entity-" + props.id}
       onDoubleClick={doubleClickOverride}
       rightControl={rightControl}
diff --git a/app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityItem/EntityItem.types.ts b/app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityItem/EntityItem.types.ts
index 36873a9f422a..24eb8e90855f 100644
--- a/app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityItem/EntityItem.types.ts
+++ b/app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityItem/EntityItem.types.ts
@@ -21,5 +21,7 @@ export interface EntityItemProps
     onNameSave: (newName: string) => void;
     // Provide a function validate the new name
     validateName: (newName: string) => string | null;
+    // Whether entity name should be normalized on renaming
+    normalizeName?: boolean;
   };
 }
diff --git a/app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityListTree/EntityListTree.stories.tsx b/app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityListTree/EntityListTree.stories.tsx
index c35e443c04ca..9357efca7c3a 100644
--- a/app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityListTree/EntityListTree.stories.tsx
+++ b/app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityListTree/EntityListTree.stories.tsx
@@ -28,36 +28,31 @@ const nameEditorConfig = {
   validateName: () => null,
 };
 
-const names = {
-  "1": "Parent 1",
-  "1.1": "Child 1.1",
-  "1.1.1": "Child 1.1.1",
-  "1.1.2": "Child 1.1.2",
-  "1.2": "Child 1.2",
-  "2": "Parent 2",
-};
-
 const Tree: EntityListTreeProps["items"] = [
   {
     id: "1",
     isExpanded: true,
     isSelected: false,
+    name: "Parent 1",
     children: [
       {
         id: "1.1",
         isExpanded: false,
         isSelected: true,
+        name: "Child 1.1",
         children: [
           {
             id: "1.1.1",
             isExpanded: false,
             isSelected: false,
+            name: "Child 1.1.1",
           },
           {
             id: "1.1.2",
             isDisabled: true,
             isExpanded: false,
             isSelected: false,
+            name: "Child 1.1.2",
           },
         ],
       },
@@ -65,6 +60,7 @@ const Tree: EntityListTreeProps["items"] = [
         id: "1.2",
         isExpanded: false,
         isSelected: false,
+        name: "Child 1.2",
       },
     ],
   },
@@ -72,6 +68,7 @@ const Tree: EntityListTreeProps["items"] = [
     id: "2",
     isExpanded: false,
     isSelected: false,
+    name: "Parent 2",
   },
 ];
 
@@ -111,7 +108,7 @@ const EntityItemComponent = (props: { item: EntityListTreeItem }) => {
       onClick={noop}
       onDoubleClick={() => onItemEdit(item.id)}
       startIcon={<Icon name="apps-line" />}
-      title={names[item.id as keyof typeof names] || item.id}
+      title={item.name}
     />
   );
 };
diff --git a/app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityListTree/EntityListTree.test.tsx b/app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityListTree/EntityListTree.test.tsx
index bcb195043f76..c92c46da9675 100644
--- a/app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityListTree/EntityListTree.test.tsx
+++ b/app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityListTree/EntityListTree.test.tsx
@@ -8,18 +8,8 @@ import type {
 
 const mockOnItemExpand = jest.fn();
 
-const name = {
-  "1": "Parent 1",
-  "1.1": "Child 1.1",
-  "1.1.1": "Child 1.1.1",
-  "1.1.2": "Child 1.1.2",
-  "1.2": "Child 1.2",
-  "2": "No Children Parent",
-  "1-1": "Child",
-};
-
 const ItemComponent = ({ item }: { item: EntityListTreeItem }) => {
-  return <div>{name[item.id as keyof typeof name] || item.id}</div>;
+  return <div>{item.name}</div>;
 };
 
 const defaultProps: EntityListTreeProps = {
@@ -30,12 +20,14 @@ const defaultProps: EntityListTreeProps = {
       isExpanded: false,
       isSelected: false,
       isDisabled: false,
+      name: "Parent 1",
       children: [
         {
           id: "1-1",
           isExpanded: false,
           isSelected: false,
           isDisabled: false,
+          name: "Child 1.1",
           children: [],
         },
       ],
@@ -52,7 +44,7 @@ describe("EntityListTree", () => {
 
   it("calls onItemExpand when expand icon is clicked", () => {
     render(<EntityListTree {...defaultProps} />);
-    const expandIcon = screen.getByTestId("t--entity-item-expand-icon");
+    const expandIcon = screen.getByTestId("t--entity-collapse-toggle");
 
     fireEvent.click(expandIcon);
     expect(mockOnItemExpand).toHaveBeenCalledWith("1");
@@ -67,13 +59,14 @@ describe("EntityListTree", () => {
           isExpanded: false,
           isSelected: false,
           isDisabled: false,
+          name: "No Children Parent",
           children: [],
         },
       ],
     };
 
     render(<EntityListTree {...props} />);
-    const expandIcon = screen.queryByTestId("t--entity-item-expand-icon");
+    const expandIcon = screen.queryByTestId("t--entity-collapse-toggle");
 
     expect(
       screen.getByRole("treeitem", { name: "No Children Parent" }),
@@ -90,12 +83,14 @@ describe("EntityListTree", () => {
           isExpanded: true,
           isSelected: false,
           isDisabled: false,
+          name: "Parent 1",
           children: [
             {
               id: "1-1",
               isExpanded: false,
               isSelected: false,
               isDisabled: false,
+              name: "Child 1.1",
               children: [],
             },
           ],
@@ -105,12 +100,14 @@ describe("EntityListTree", () => {
 
     render(<EntityListTree {...props} />);
 
-    expect(screen.getByRole("treeitem", { name: "Child" })).toBeInTheDocument();
+    expect(
+      screen.getByRole("treeitem", { name: "Child 1.1" }),
+    ).toBeInTheDocument();
   });
 
   it("does not render nested EntityListTree when item is not expanded", () => {
     render(<EntityListTree {...defaultProps} />);
 
-    expect(screen.queryByRole("treeitem", { name: "Child" })).toBeNull();
+    expect(screen.queryByRole("treeitem", { name: "Child 1.1" })).toBeNull();
   });
 });
diff --git a/app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityListTree/EntityListTree.tsx b/app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityListTree/EntityListTree.tsx
index 86c8a563330b..2c47dca03dc2 100644
--- a/app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityListTree/EntityListTree.tsx
+++ b/app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityListTree/EntityListTree.tsx
@@ -49,8 +49,11 @@ export function EntityListTree(props: EntityListTreeProps) {
           >
             {item.children && item.children.length ? (
               <CollapseWrapper
+                data-icon={
+                  item.isExpanded ? "arrow-down-s-line" : "arrow-right-s-line"
+                }
                 data-itemid={item.id}
-                data-testid="t--entity-item-expand-icon"
+                data-testid="t--entity-collapse-toggle"
                 onClick={handleOnExpandClick}
               >
                 <Icon
diff --git a/app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityListTree/EntityListTree.types.ts b/app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityListTree/EntityListTree.types.ts
index 58ed5125fc3c..e89accd7aa9b 100644
--- a/app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityListTree/EntityListTree.types.ts
+++ b/app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityListTree/EntityListTree.types.ts
@@ -4,6 +4,7 @@ export interface EntityListTreeItem {
   isSelected: boolean;
   isDisabled?: boolean;
   id: string;
+  name: string;
 }
 
 export interface EntityListTreeProps {
diff --git a/app/client/packages/design-system/ads/src/__hooks__/useEditableText/useEditableText.ts b/app/client/packages/design-system/ads/src/__hooks__/useEditableText/useEditableText.ts
index dead483aaa15..a5cefd2c1165 100644
--- a/app/client/packages/design-system/ads/src/__hooks__/useEditableText/useEditableText.ts
+++ b/app/client/packages/design-system/ads/src/__hooks__/useEditableText/useEditableText.ts
@@ -19,6 +19,7 @@ export function useEditableText(
   exitEditing: () => void,
   validateName: (name: string) => string | null,
   onNameSave: (name: string) => void,
+  normalizeName?: boolean,
 ): [
   RefObject<HTMLInputElement>,
   string,
@@ -87,7 +88,9 @@ export function useEditableText(
 
   const handleTitleChange = useEventCallback(
     (e: ChangeEvent<HTMLInputElement>) => {
-      const value = normaliseName(e.target.value);
+      const value = normalizeName
+        ? normaliseName(e.target.value)
+        : e.target.value;
 
       setEditableName(value);
       validate(value);
diff --git a/app/client/src/IDE/Components/EntityContextMenu.tsx b/app/client/src/IDE/Components/EntityContextMenu.tsx
index a6b1e5bf6b54..afe349768134 100644
--- a/app/client/src/IDE/Components/EntityContextMenu.tsx
+++ b/app/client/src/IDE/Components/EntityContextMenu.tsx
@@ -8,7 +8,8 @@ import {
 import { EntityClassNames } from "pages/Editor/Explorer/Entity";
 
 interface Props {
-  children?: React.ReactNode[] | React.ReactNode;
+  children: React.ReactNode[] | React.ReactNode;
+  dataTestId?: string;
 }
 
 const EntityContextMenu = (props: Props) => {
@@ -26,7 +27,7 @@ const EntityContextMenu = (props: Props) => {
           >
             <Button
               className={EntityClassNames.CONTEXT_MENU}
-              data-testid="t--more-action-trigger"
+              data-testid={props.dataTestId}
               isIconButton
               kind="tertiary"
               startIcon="more-2-fill"
diff --git a/app/client/src/pages/AppIDE/components/AppPluginActionEditor/components/ContextMenuItems/Copy.tsx b/app/client/src/pages/AppIDE/components/AppPluginActionEditor/components/ContextMenuItems/Copy.tsx
index faaf175b72b8..29a7448accf8 100644
--- a/app/client/src/pages/AppIDE/components/AppPluginActionEditor/components/ContextMenuItems/Copy.tsx
+++ b/app/client/src/pages/AppIDE/components/AppPluginActionEditor/components/ContextMenuItems/Copy.tsx
@@ -31,7 +31,7 @@ export const Copy = ({ action, disabled }: Props) => {
 
   return (
     <MenuSub>
-      <MenuSubTrigger startIcon="duplicate">
+      <MenuSubTrigger disabled={disabled} startIcon="duplicate">
         {createMessage(CONTEXT_COPY)}
       </MenuSubTrigger>
       <MenuSubContent style={{ maxHeight: "350px" }} width="220px">
diff --git a/app/client/src/pages/AppIDE/components/AppPluginActionEditor/components/ContextMenuItems/Move.tsx b/app/client/src/pages/AppIDE/components/AppPluginActionEditor/components/ContextMenuItems/Move.tsx
index 080c8d48e10b..c7f546d0af92 100644
--- a/app/client/src/pages/AppIDE/components/AppPluginActionEditor/components/ContextMenuItems/Move.tsx
+++ b/app/client/src/pages/AppIDE/components/AppPluginActionEditor/components/ContextMenuItems/Move.tsx
@@ -42,7 +42,7 @@ export const Move = ({ action, disabled }: Props) => {
 
   return (
     <MenuSub>
-      <MenuSubTrigger startIcon="swap-horizontal">
+      <MenuSubTrigger disabled={disabled} startIcon="swap-horizontal">
         {createMessage(CONTEXT_MOVE)}
       </MenuSubTrigger>
       <MenuSubContent style={{ maxHeight: "350px" }} width="220px">
diff --git a/app/client/src/pages/AppIDE/components/JSEntityItem/JSEntityItem.tsx b/app/client/src/pages/AppIDE/components/JSEntityItem/JSEntityItem.tsx
index 45cc149bceda..a515c9779682 100644
--- a/app/client/src/pages/AppIDE/components/JSEntityItem/JSEntityItem.tsx
+++ b/app/client/src/pages/AppIDE/components/JSEntityItem/JSEntityItem.tsx
@@ -20,6 +20,7 @@ import { jsCollectionIdURL } from "ee/RouteBuilder";
 import { JsFileIconV2 } from "pages/Editor/Explorer/ExplorerIcons";
 import { AppJSContextMenuItems } from "./AppJSContextMenuItems";
 import type { EntityItem as EntityItemProps } from "ee/IDE/Interfaces/EntityItem";
+import clsx from "clsx";
 
 export const JSEntityItem = ({ item }: { item: EntityItemProps }) => {
   const jsAction = useSelector((state: AppState) =>
@@ -37,14 +38,17 @@ export const JSEntityItem = ({ item }: { item: EntityItemProps }) => {
     entityName: item.title,
   });
   const dispatch = useDispatch();
-  const contextMenu = useMemo(
-    () => (
+  const contextMenu = useMemo(() => {
+    if (Boolean(jsAction.isMainJSCollection)) {
+      return null;
+    }
+
+    return (
       <EntityContextMenu>
         <AppJSContextMenuItems jsAction={jsAction} />
       </EntityContextMenu>
-    ),
-    [jsAction],
-  );
+    );
+  }, [jsAction]);
 
   const jsActionPermissions = jsAction.userPermissions || [];
 
@@ -55,6 +59,11 @@ export const JSEntityItem = ({ item }: { item: EntityItemProps }) => {
     jsActionPermissions,
   );
 
+  const canEdit = useMemo(
+    () => canManageJSAction && !Boolean(jsAction?.isMainJSCollection),
+    [canManageJSAction, jsAction?.isMainJSCollection],
+  );
+
   const navigateToUrl = jsCollectionIdURL({
     baseParentEntityId: parentEntityId,
     baseCollectionId: jsAction.baseId,
@@ -73,11 +82,11 @@ export const JSEntityItem = ({ item }: { item: EntityItemProps }) => {
         invokedBy: NavigationMethod.EntityExplorer,
       });
     }
-  }, [parentEntityId, jsAction.baseId, jsAction.name, location.pathname]);
+  }, [jsAction.baseId, jsAction.name, location.pathname, navigateToUrl]);
 
   const nameEditorConfig = useMemo(() => {
     return {
-      canEdit: canManageJSAction && !Boolean(jsAction.isMainJSCollection),
+      canEdit,
       isEditing: editingEntity === jsAction.id,
       isLoading: updatingEntity === jsAction.id,
       onEditComplete: exitEditMode,
@@ -86,23 +95,23 @@ export const JSEntityItem = ({ item }: { item: EntityItemProps }) => {
       validateName: (newName: string) => validateName(newName),
     };
   }, [
-    canManageJSAction,
+    canEdit,
     editingEntity,
-    exitEditMode,
-    ideType,
-    item.title,
     jsAction.id,
-    jsAction.isMainJSCollection,
-    dispatch,
     updatingEntity,
+    exitEditMode,
+    dispatch,
+    ideType,
     validateName,
   ]);
 
   return (
     <EntityItem
-      className="t--jsaction"
+      className={clsx("t--jsaction", {
+        editable: canEdit,
+      })}
       id={jsAction.id}
-      isSelected={activeActionBaseId === jsAction.id}
+      isSelected={activeActionBaseId === item.key}
       key={jsAction.id}
       nameEditorConfig={nameEditorConfig}
       onClick={navigateToJSCollection}
diff --git a/app/client/src/pages/AppIDE/components/QueryEntityItem/QueryEntityItem.tsx b/app/client/src/pages/AppIDE/components/QueryEntityItem/QueryEntityItem.tsx
index 037ef273ff9a..2757aba2763e 100644
--- a/app/client/src/pages/AppIDE/components/QueryEntityItem/QueryEntityItem.tsx
+++ b/app/client/src/pages/AppIDE/components/QueryEntityItem/QueryEntityItem.tsx
@@ -50,14 +50,14 @@ export const QueryEntityItem = ({ item }: { item: EntityItemProps }) => {
   const dispatch = useDispatch();
   const contextMenu = useMemo(
     () => (
-      <EntityContextMenu>
+      <EntityContextMenu dataTestId="t--entity-context-menu-trigger">
         <AppQueryContextMenuItems action={action} />
       </EntityContextMenu>
     ),
     [action],
   );
 
-  const actionPermissions = action.userPermissions || [];
+  const actionPermissions = action?.userPermissions || [];
 
   const isFeatureEnabled = useFeatureFlag(FEATURE_FLAG.license_gac_enabled);
 
@@ -74,6 +74,8 @@ export const QueryEntityItem = ({ item }: { item: EntityItemProps }) => {
     pluginGroups[action.pluginId],
   );
 
+  const icon = config?.getIcon(action, pluginGroups[action.pluginId]);
+
   const switchToAction = useCallback(() => {
     url && history.push(url, { invokedBy: NavigationMethod.EntityExplorer });
     AnalyticsUtil.logEvent("ENTITY_EXPLORER_CLICK", {
@@ -104,25 +106,26 @@ export const QueryEntityItem = ({ item }: { item: EntityItemProps }) => {
   }, [
     canManageAction,
     editingEntity,
-    exitEditMode,
-    ideType,
-    item.title,
     action.id,
     updatingEntity,
+    exitEditMode,
+    dispatch,
+    ideType,
+    validateName,
   ]);
 
   return (
     <EntityItem
       className="action t--action-entity"
       id={action.id}
-      isSelected={activeActionBaseId === action.id}
+      isSelected={activeActionBaseId === item.key}
       key={action.id}
       nameEditorConfig={nameEditorConfig}
       onClick={switchToAction}
       onDoubleClick={() => enterEditMode(action.id)}
       rightControl={contextMenu}
       rightControlVisibility="hover"
-      startIcon={item.icon}
+      startIcon={icon}
       title={item.title}
     />
   );
diff --git a/app/client/src/pages/AppIDE/components/UIEntityListTree/UIEntityListTree.tsx b/app/client/src/pages/AppIDE/components/UIEntityListTree/UIEntityListTree.tsx
index dc7352cbe635..9b8ad7fa1408 100644
--- a/app/client/src/pages/AppIDE/components/UIEntityListTree/UIEntityListTree.tsx
+++ b/app/client/src/pages/AppIDE/components/UIEntityListTree/UIEntityListTree.tsx
@@ -15,6 +15,7 @@ export const UIEntityListTree = () => {
 
   const items = enhanceItemsTree(widgets?.children || [], (widget) => ({
     id: widget.widgetId,
+    name: widget.widgetName,
     isSelected: selectedWidgets.includes(widget.widgetId),
     isExpanded: expandedWidgets.includes(widget.widgetId),
   }));
diff --git a/app/client/src/pages/AppIDE/components/UIEntityListTree/WidgetContextMenu.tsx b/app/client/src/pages/AppIDE/components/UIEntityListTree/WidgetContextMenu.tsx
index d31f1f373b9e..9626aa31afdd 100644
--- a/app/client/src/pages/AppIDE/components/UIEntityListTree/WidgetContextMenu.tsx
+++ b/app/client/src/pages/AppIDE/components/UIEntityListTree/WidgetContextMenu.tsx
@@ -22,6 +22,8 @@ import {
 } from "ee/constants/messages";
 import { useDeleteWidget } from "./hooks/useDeleteWidget";
 import { InspectStateMenuItem } from "components/editorComponents/Debugger/StateInspector/CTAs";
+import { EntityClassNames } from "pages/Editor/Explorer/Entity";
+import clsx from "clsx";
 
 export const WidgetContextMenu = (props: {
   widgetId: string;
@@ -86,6 +88,7 @@ export const WidgetContextMenu = (props: {
     editWidgetName,
     showBinding,
     widget?.isDeletable,
+    widgetId,
   ]);
 
   return (
@@ -98,7 +101,16 @@ export const WidgetContextMenu = (props: {
           startIcon="more-2-fill"
         />
       </MenuTrigger>
-      <MenuContent align="start" key={widgetId} side="right" width="300px">
+      <MenuContent
+        align="start"
+        className={clsx(
+          "t--entity-context-menu",
+          EntityClassNames.CONTEXT_MENU_CONTENT,
+        )}
+        key={widgetId}
+        side="right"
+        width="300px"
+      >
         {menuContent}
       </MenuContent>
     </Menu>
diff --git a/app/client/src/pages/AppIDE/components/UIEntityListTree/WidgetTreeItem.tsx b/app/client/src/pages/AppIDE/components/UIEntityListTree/WidgetTreeItem.tsx
index 5513a0542f97..251e559a45dc 100644
--- a/app/client/src/pages/AppIDE/components/UIEntityListTree/WidgetTreeItem.tsx
+++ b/app/client/src/pages/AppIDE/components/UIEntityListTree/WidgetTreeItem.tsx
@@ -12,9 +12,10 @@ import { getPagePermissions } from "selectors/editorSelectors";
 import { useFeatureFlag } from "utils/hooks/useFeatureFlag";
 import { useSwitchToWidget } from "./hooks/useSwitchToWidget";
 import { WidgetTypeIcon } from "./WidgetTypeIcon";
+import type { WidgetProps } from "widgets/BaseWidget";
 
 export const WidgetTreeItem = ({ item }: { item: EntityListTreeItem }) => {
-  const widget = useSelector(getWidgetByID(item.id));
+  const widget: WidgetProps | undefined = useSelector(getWidgetByID(item.id));
   const switchToWidget = useSwitchToWidget();
 
   const isFeatureEnabled = useFeatureFlag(FEATURE_FLAG.license_gac_enabled);
@@ -36,15 +37,15 @@ export const WidgetTreeItem = ({ item }: { item: EntityListTreeItem }) => {
     useNameEditorState();
 
   const validateName = useValidateEntityName({
-    entityName: widget.widgetName,
-    entityId: widget.widgetId,
+    entityName: item.name,
+    entityId: item.id,
   });
 
-  const isLoading = updatingEntity === widget.widgetId;
-  const isEditing = editingEntity === widget.widgetId;
+  const isLoading = updatingEntity === item.id;
+  const isEditing = editingEntity === item.id;
   const onNameSave = useCallback(
-    (newName: string) => handleNameSave(widget.widgetId, newName),
-    [handleNameSave, widget.widgetId],
+    (newName: string) => handleNameSave(item.id, newName),
+    [handleNameSave, item.id],
   );
 
   const nameEditorConfig = useMemo(
@@ -67,8 +68,8 @@ export const WidgetTreeItem = ({ item }: { item: EntityListTreeItem }) => {
   );
 
   const startIcon = useMemo(
-    () => <WidgetTypeIcon type={widget.type} />,
-    [widget.type],
+    () => <WidgetTypeIcon type={widget?.type} />,
+    [widget?.type],
   );
 
   const onClick = useCallback(
@@ -77,20 +78,19 @@ export const WidgetTreeItem = ({ item }: { item: EntityListTreeItem }) => {
   );
 
   const onDoubleClick = useCallback(
-    () => enterEditMode(widget.widgetId),
-    [enterEditMode, widget.widgetId],
+    () => enterEditMode(item.id),
+    [enterEditMode, item.id],
   );
 
   const rightControl = useMemo(
     () => (
-      <WidgetContextMenu
-        canManagePages={canManagePages}
-        widgetId={widget.widgetId}
-      />
+      <WidgetContextMenu canManagePages={canManagePages} widgetId={item.id} />
     ),
-    [canManagePages, widget.widgetId],
+    [canManagePages, item.id],
   );
 
+  if (!widget) return null;
+
   return (
     <EntityItem
       id={item.id}
@@ -101,7 +101,7 @@ export const WidgetTreeItem = ({ item }: { item: EntityListTreeItem }) => {
       rightControl={rightControl}
       rightControlVisibility="hover"
       startIcon={startIcon}
-      title={widget.widgetName}
+      title={item.name}
     />
   );
 };
diff --git a/app/client/src/pages/Editor/Explorer/Entity/Name.tsx b/app/client/src/pages/Editor/Explorer/Entity/Name.tsx
index 9e044c37aabb..c30f51dbbeab 100644
--- a/app/client/src/pages/Editor/Explorer/Entity/Name.tsx
+++ b/app/client/src/pages/Editor/Explorer/Entity/Name.tsx
@@ -45,7 +45,7 @@ const Wrapper = styled.div`
   }
 `;
 
-const EditableWrapper = styled.div`
+const EditableWrapper = styled.span`
   overflow: hidden;
   margin: 0 ${(props) => props.theme.spaces[1]}px;
   padding: ${(props) => props.theme.spaces[3] + 1}px 0;
diff --git a/app/client/src/pages/Editor/JSEditor/AppJSEditorContextMenu.tsx b/app/client/src/pages/Editor/JSEditor/AppJSEditorContextMenu.tsx
index 20c8859ebcbf..ec5c72847b3a 100644
--- a/app/client/src/pages/Editor/JSEditor/AppJSEditorContextMenu.tsx
+++ b/app/client/src/pages/Editor/JSEditor/AppJSEditorContextMenu.tsx
@@ -28,8 +28,12 @@ export function AppJSEditorContextMenu({
     jsCollection?.userPermissions || [],
   );
 
+  if (Boolean(jsCollection?.isMainJSCollection)) {
+    return null;
+  }
+
   return (
-    <EntityContextMenu>
+    <EntityContextMenu dataTestId="t--more-action-trigger">
       <RenameMenuItem
         disabled={!isChangePermitted}
         entityId={jsCollection.id}
diff --git a/app/client/src/pages/Editor/JSEditor/ContextMenuItems/Copy.tsx b/app/client/src/pages/Editor/JSEditor/ContextMenuItems/Copy.tsx
index 3150111a9c0b..96e7511dae4e 100644
--- a/app/client/src/pages/Editor/JSEditor/ContextMenuItems/Copy.tsx
+++ b/app/client/src/pages/Editor/JSEditor/ContextMenuItems/Copy.tsx
@@ -31,7 +31,7 @@ export const Copy = ({ disabled, jsAction }: Props) => {
 
   return (
     <MenuSub>
-      <MenuSubTrigger startIcon="duplicate">
+      <MenuSubTrigger disabled={disabled} startIcon="duplicate">
         {createMessage(CONTEXT_COPY)}
       </MenuSubTrigger>
       <MenuSubContent style={{ maxHeight: "350px" }} width="220px">
diff --git a/app/client/src/pages/Editor/JSEditor/ContextMenuItems/Move.tsx b/app/client/src/pages/Editor/JSEditor/ContextMenuItems/Move.tsx
index 2ef91ee55861..6f8427f9a35d 100644
--- a/app/client/src/pages/Editor/JSEditor/ContextMenuItems/Move.tsx
+++ b/app/client/src/pages/Editor/JSEditor/ContextMenuItems/Move.tsx
@@ -41,7 +41,7 @@ export const Move = ({ disabled, jsAction }: Props) => {
 
   return (
     <MenuSub>
-      <MenuSubTrigger startIcon="swap-horizontal">
+      <MenuSubTrigger disabled={disabled} startIcon="swap-horizontal">
         {createMessage(CONTEXT_MOVE)}
       </MenuSubTrigger>
       <MenuSubContent style={{ maxHeight: "350px" }} width="220px">


Reviews:
user: login: hetunandu
state: COMMENTED
author_association: MEMBER
submitted_at: 2025-03-05T05:13:14Z
user: login: coderabbitai[bot]
body: **Actionable comments posted: 1**

<details>
<summary>🧹 Nitpick comments (8)</summary><blockquote>

<details>
<summary>app/client/src/IDE/Components/EntityContextMenu.tsx (1)</summary><blockquote>

`30-30`: **Properly implemented the dataTestId prop**

The implementation correctly uses the provided dataTestId on the button element.


However, consider providing a default value to ensure this element always has a test identifier even when the prop is not provided.

```diff
-data-testid={props.dataTestId}
+data-testid={props.dataTestId || "t--entity-context-menu-trigger"}
```

</blockquote></details>
<details>
<summary>app/client/src/pages/AppIDE/components/UIEntityListTree/WidgetContextMenu.tsx (1)</summary><blockquote>

`104-113`: **Improved MenuContent implementation with structured className**

The use of clsx for combining classnames and the inclusion of EntityClassNames constants enhances maintainability and consistency across the codebase.


Consider extracting the width value to a constant if this width is used elsewhere in the application for similar context menus.

</blockquote></details>
<details>
<summary>app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityGroupsList/EntityGroupsList.tsx (1)</summary><blockquote>

`72-72`: **Enhanced test identification with dynamic testid**

Adding a dynamic data-testid based on the item title improves test stability and readability.


Consider handling the case where the title might contain special characters that could cause test selector issues:

```diff
-data-testid={`entity-group-item-${(item as ListItemProps)?.title}`}
+data-testid={`entity-group-item-${(item as ListItemProps)?.title?.replace(/[^a-zA-Z0-9-_]/g, '-')}`}
```

</blockquote></details>
<details>
<summary>app/client/src/pages/Editor/JSEditor/AppJSEditorContextMenu.tsx (1)</summary><blockquote>

`31-33`: **Remove redundant Boolean call**

The Boolean call is unnecessary as the value will already be coerced to a boolean in the if statement.


```diff
-  if (Boolean(jsCollection?.isMainJSCollection)) {
+  if (jsCollection?.isMainJSCollection) {
    return null;
  }
```

<details>
<summary>🧰 Tools</summary>

<details>
<summary>🪛 Biome (1.9.4)</summary>

[error] 31-31: Avoid redundant `Boolean` call

It is not necessary to use `Boolean` call when a value will already be coerced to a boolean.
Unsafe fix: Remove redundant `Boolean` call


(lint/complexity/noExtraBooleanCast)

</details>

</details>

</blockquote></details>
<details>
<summary>app/client/src/pages/AppIDE/components/JSEntityItem/JSEntityItem.tsx (2)</summary><blockquote>

`41-51`: **Improved context menu rendering logic**

The component now conditionally prevents rendering the context menu for main JS collections, which is appropriate for these special entities.


However, the Boolean call is redundant since the condition will already be coerced to a boolean.


```diff
-    if (Boolean(jsAction.isMainJSCollection)) {
+    if (jsAction.isMainJSCollection) {
```

<details>
<summary>🧰 Tools</summary>

<details>
<summary>🪛 Biome (1.9.4)</summary>

[error] 42-42: Avoid redundant `Boolean` call

It is not necessary to use `Boolean` call when a value will already be coerced to a boolean.
Unsafe fix: Remove redundant `Boolean` call


(lint/complexity/noExtraBooleanCast)

</details>

</details>

---

`62-65`: **Extracted permission logic into a dedicated variable**

Encapsulating the edit permission logic into a dedicated variable improves code readability and maintainability.


The Boolean call is redundant here as well.


```diff
-    () => canManageJSAction && !Boolean(jsAction?.isMainJSCollection),
+    () => canManageJSAction && !jsAction?.isMainJSCollection,
```

<details>
<summary>🧰 Tools</summary>

<details>
<summary>🪛 Biome (1.9.4)</summary>

[error] 63-63: Avoid redundant `Boolean` call

It is not necessary to use `Boolean` call when a value will already be coerced to a boolean.
Unsafe fix: Remove redundant `Boolean` call


(lint/complexity/noExtraBooleanCast)

</details>

</details>

</blockquote></details>
<details>
<summary>app/client/packages/design-system/ads/src/Templates/EditableEntityName/EditableEntityName.tsx (2)</summary><blockquote>

`72-73`: **Consider input placeholder implementation.**

The placeholder is defined in the style object rather than as a proper input property. This may not work as expected since placeholder is typically an attribute, not a style property.


```diff
- placeholder: "Name",
+ // Remove placeholder from style object
```

Then, add it to the inputProps object:

```diff
  inputProps = useMemo(
    () => ({
      ["data-testid"]: inputTestId,
      onKeyUp: handleKeyUp,
      onChange: handleTitleChange,
      autoFocus: true,
+     placeholder: "Name",
      style: {
        backgroundColor: "var(--ads-v2-color-bg)",
        paddingTop: "4px",
        paddingBottom: "4px",
        top: "-5px",
      },
    }),
    [handleKeyUp, handleTitleChange, inputTestId],
  );
```

---

`87-88`: **Consider implementing the suggested tooltip separation.**

The comment suggests using two separate tooltips for validation errors and long names. This might be a cleaner implementation as it would separate concerns.


Instead of conditionally configuring a single tooltip, consider:

```diff
- // Tooltip can either show the validation error or the name incase of long names
- // Maybe we should use two different tooltips for this @Ankita
- const tooltipProps: TooltipProps = useMemo(
-   () =>
-     validationError
-       ? {
-           content: validationError,
-           placement: "bottom",
-           visible: true,
-           isDisabled: false,
-           mouseEnterDelay: 0,
-           showArrow: true,
-         }
-       : {
-           content: name,
-           placement: "topLeft",
-           visible: !showTooltip,
-           isDisabled: !showTooltip,
-           mouseEnterDelay: 1,
-           showArrow: false,
-         },
-   [name, showTooltip, validationError],
- );
+ // Separate tooltip configurations for validation error and long names
+ const validationTooltipProps = useMemo(
+   () => ({
+     content: validationError,
+     placement: "bottom",
+     visible: !!validationError,
+     isDisabled: !validationError,
+     mouseEnterDelay: 0,
+     showArrow: true,
+   }),
+   [validationError]
+ );
+ 
+ const nameTooltipProps = useMemo(
+   () => ({
+     content: name,
+     placement: "topLeft",
+     visible: showTooltip,
+     isDisabled: !showTooltip,
+     mouseEnterDelay: 1,
+     showArrow: false,
+   }),
+   [name, showTooltip]
+ );
+ 
+ // Then in the JSX, conditionally render the appropriate tooltip
+ {validationError ? (
+   <Tooltip {...validationTooltipProps}>
+     <StyledComponent />
+   </Tooltip>
+ ) : (
+   <Tooltip {...nameTooltipProps}>
+     <StyledComponent />
+   </Tooltip>
+ )}
```

</blockquote></details>

</blockquote></details>

<details>
<summary>📜 Review details</summary>

**Configuration used: .coderabbit.yaml**
**Review profile: CHILL**
**Plan: Pro**

<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between 320b168199774f94b47d244fabc3c41643a79e41 and 87cb9d6c3e9806cf61ad4776847ecf44b0b07f45.

</details>

<details>
<summary>📒 Files selected for processing (22)</summary>

* `app/client/packages/design-system/ads/src/List/List.tsx` (1 hunks)
* `app/client/packages/design-system/ads/src/Templates/EditableEntityName/EditableEntityName.tsx` (4 hunks)
* `app/client/packages/design-system/ads/src/Templates/EditableEntityName/EditableEntityName.types.ts` (1 hunks)
* `app/client/packages/design-system/ads/src/Templates/EntityContextMenu/EntityContextMenu.tsx` (2 hunks)
* `app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityGroupsList/EntityGroupsList.tsx` (1 hunks)
* `app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityItem/EntityItem.tsx` (4 hunks)
* `app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityItem/EntityItem.types.ts` (1 hunks)
* `app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityListTree/EntityListTree.stories.tsx` (2 hunks)
* `app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityListTree/EntityListTree.test.tsx` (6 hunks)
* `app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityListTree/EntityListTree.tsx` (1 hunks)
* `app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityListTree/EntityListTree.types.ts` (1 hunks)
* `app/client/packages/design-system/ads/src/__hooks__/useEditableText/useEditableText.ts` (2 hunks)
* `app/client/src/IDE/Components/EntityContextMenu.tsx` (2 hunks)
* `app/client/src/pages/AppIDE/components/AppPluginActionEditor/components/ContextMenuItems/Copy.tsx` (1 hunks)
* `app/client/src/pages/AppIDE/components/AppPluginActionEditor/components/ContextMenuItems/Move.tsx` (1 hunks)
* `app/client/src/pages/AppIDE/components/JSEntityItem/JSEntityItem.tsx` (5 hunks)
* `app/client/src/pages/AppIDE/components/UIEntityListTree/UIEntityListTree.tsx` (1 hunks)
* `app/client/src/pages/AppIDE/components/UIEntityListTree/WidgetContextMenu.tsx` (3 hunks)
* `app/client/src/pages/AppIDE/components/UIEntityListTree/WidgetTreeItem.tsx` (5 hunks)
* `app/client/src/pages/Editor/JSEditor/AppJSEditorContextMenu.tsx` (1 hunks)
* `app/client/src/pages/Editor/JSEditor/ContextMenuItems/Copy.tsx` (1 hunks)
* `app/client/src/pages/Editor/JSEditor/ContextMenuItems/Move.tsx` (1 hunks)

</details>

<details>
<summary>✅ Files skipped from review due to trivial changes (1)</summary>

* app/client/packages/design-system/ads/src/List/List.tsx

</details>

<details>
<summary>🧰 Additional context used</summary>

<details>
<summary>🪛 Biome (1.9.4)</summary>

<details>
<summary>app/client/src/pages/Editor/JSEditor/AppJSEditorContextMenu.tsx</summary>

[error] 31-31: Avoid redundant `Boolean` call

It is not necessary to use `Boolean` call when a value will already be coerced to a boolean.
Unsafe fix: Remove redundant `Boolean` call


(lint/complexity/noExtraBooleanCast)

</details>
<details>
<summary>app/client/src/pages/AppIDE/components/JSEntityItem/JSEntityItem.tsx</summary>

[error] 42-42: Avoid redundant `Boolean` call

It is not necessary to use `Boolean` call when a value will already be coerced to a boolean.
Unsafe fix: Remove redundant `Boolean` call


(lint/complexity/noExtraBooleanCast)

---

[error] 63-63: Avoid redundant `Boolean` call

It is not necessary to use `Boolean` call when a value will already be coerced to a boolean.
Unsafe fix: Remove redundant `Boolean` call


(lint/complexity/noExtraBooleanCast)

</details>

</details>

</details>

<details>
<summary>⏰ Context from checks skipped due to timeout of 90000ms (11)</summary>

* GitHub Check: perform-test / client-build / client-build
* GitHub Check: perform-test / server-build / server-unit-tests
* GitHub Check: perform-test / rts-build / build
* GitHub Check: client-unit-tests / client-unit-tests
* GitHub Check: client-check-cyclic-deps / check-cyclic-dependencies
* GitHub Check: client-build / client-build
* GitHub Check: client-prettier / prettier-check
* GitHub Check: client-lint / client-lint
* GitHub Check: chromatic-deployment
* GitHub Check: storybook-tests
* GitHub Check: chromatic-deployment

</details>

<details>
<summary>🔇 Additional comments (39)</summary><blockquote>

<details>
<summary>app/client/src/pages/Editor/JSEditor/ContextMenuItems/Copy.tsx (1)</summary>

`34-34`: **Proper disabled state propagation implemented.**

The addition of the `disabled` prop to `MenuSubTrigger` ensures consistent state propagation from parent to child components.

</details>
<details>
<summary>app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityItem/EntityItem.types.ts (1)</summary>

`24-25`: **Well-documented enhancement for name normalization.**

The addition of the optional `normalizeName` property with appropriate documentation provides flexible control over entity name handling during the rename process.

</details>
<details>
<summary>app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityListTree/EntityListTree.types.ts (1)</summary>

`7-7`: <details>
<summary>❓ Verification inconclusive</summary>

**Verify all implementations include the new required property.**

Adding the required `name` property to `EntityListTreeItem` interface enhances identification but might cause breaking changes if not all implementations are updated.

---

🏁 Script executed:

```shell
#!/bin/bash
# Search for implementations of EntityListTreeItem to verify they include the name property

# Find where EntityListTreeItem is constructed or defined
rg "EntityListTreeItem\s*(\{|\[)" --type ts
```

Length of output: 467

---



</details>

**Action Required: Verify that all instantiations of EntityListTreeItem include the new `name` property**

The interface update in  
`app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityListTree/EntityListTree.types.ts`  
now mandates a `name: string;` property. Our repository search only shows the updated interface definition and no obvious literal implementations missing this property. 

- Confirm that any object literal or constructor using `EntityListTreeItem` supplies a valid `name` value.
- Double-check areas invoking this interface (even outside the immediate file) to prevent potential type errors.

</details>
<details>
<summary>app/client/src/pages/Editor/JSEditor/ContextMenuItems/Move.tsx (1)</summary>

`44-44`: **Proper disabled state propagation implemented.**

The addition of the `disabled` prop to `MenuSubTrigger` ensures proper state reflection and maintains UI consistency with the Copy component implementation.

</details>
<details>
<summary>app/client/src/IDE/Components/EntityContextMenu.tsx (1)</summary>

`12-12`: **Good addition for improving component testability**

Adding an optional dataTestId prop allows for more flexible testing configurations.

</details>
<details>
<summary>app/client/src/pages/AppIDE/components/UIEntityListTree/UIEntityListTree.tsx (1)</summary>

`18-18`: **Appropriate addition of name property**

Including the widget's name in the enhanced items tree is a good approach for maintaining proper identification in the UI.

</details>
<details>
<summary>app/client/src/pages/AppIDE/components/UIEntityListTree/WidgetContextMenu.tsx (1)</summary>

`25-26`: **Good addition of necessary imports**

The imports for EntityClassNames and clsx appropriately support the updated component implementation.

</details>
<details>
<summary>app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityListTree/EntityListTree.tsx (2)</summary>

`52-54`: **Enhanced icon state representation in DOM**

The addition of the `data-icon` attribute improves component testability by making the current expansion state directly accessible in the DOM structure.

---

`56-56`: **Updated test identifier for better semantic clarity**

Renaming the test ID from what appears to be `t--entity-item-expand-icon` to `t--entity-collapse-toggle` better reflects the component's purpose, which is to toggle the collapse state.

</details>
<details>
<summary>app/client/src/pages/AppIDE/components/AppPluginActionEditor/components/ContextMenuItems/Copy.tsx (1)</summary>

`34-34`: **Added disabled state propagation to MenuSubTrigger**

Good implementation of the disabled state. The menu trigger now respects the parent component's disabled state, ensuring consistent UI behavior and preventing confusing user interactions.

</details>
<details>
<summary>app/client/packages/design-system/ads/src/Templates/EditableEntityName/EditableEntityName.types.ts (1)</summary>

`27-29`: <details>
<summary>✅ Verification successful</summary>

**Added configuration options for name handling and display**

The addition of `normalizeName` and `showEllipsis` optional properties enhances the flexibility of the component. These well-documented props allow for better control over naming conventions and text overflow handling.


Make sure to implement these properties correctly in the component implementation file to ensure proper name normalization and ellipsis behavior.

---

🏁 Script executed:

```shell
#!/bin/bash
# Check if the new props are properly implemented in the component
rg -A 5 -B 5 "normalizeName|showEllipsis" --type typescript app/client/packages/design-system/ads/src/Templates/EditableEntityName/EditableEntityName.tsx
```

Length of output: 190

---

🏁 Script executed:

```shell
#!/bin/bash
# Re-run searchable pattern to verify the new props implementation in the component without using an unrecognized file type flag.
rg -A 5 -B 5 "normalizeName|showEllipsis" app/client/packages/design-system/ads/src/Templates/EditableEntityName/EditableEntityName.tsx
```

Length of output: 1432

---



</details>

**Confirmed: Configuration Options Implemented Correctly**

The new props (`normalizeName` and `showEllipsis`) have been successfully integrated. Verification confirms that:
- They are declared as optional properties in the types file with clear documentation.
- They are appropriately destructured with default values in the component file.
- The ellipsis behavior is properly handled via the conditional logic in the `useEffect` hook.

No further changes are needed.

</details>
<details>
<summary>app/client/src/pages/AppIDE/components/AppPluginActionEditor/components/ContextMenuItems/Move.tsx (1)</summary>

`45-45`: **Added disabled state propagation to MenuSubTrigger**

Effective implementation of the disabled state for the Move operation. This change ensures UI consistency with the Copy operation and provides appropriate visual feedback to users when actions are unavailable.

</details>
<details>
<summary>app/client/packages/design-system/ads/src/Templates/EntityContextMenu/EntityContextMenu.tsx (3)</summary>

`17-17`: **Standardizing prop naming convention**

Updated prop name from `dataTestid` to `dataTestId` for consistency with other component props in the codebase, improving maintainability.

---

`25-25`: **Updated destructuring to match interface change**

Correctly updated the destructured prop name to match the interface change.

---

`43-43`: **Updated attribute to use new prop name**

The `data-testid` attribute now correctly uses the renamed `dataTestId` prop.

</details>
<details>
<summary>app/client/src/pages/Editor/JSEditor/AppJSEditorContextMenu.tsx (1)</summary>

`36-36`: **Updated to use consistent dataTestId prop**

Added the test ID for the EntityContextMenu component in line with the prop renaming in the component definition.

</details>
<details>
<summary>app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityItem/EntityItem.tsx (4)</summary>

`20-20`: **Added normalizeName prop with default value**

New optional property added to control name normalization behavior.

---

`38-38`: **Enhanced EditableEntityName with additional props**

Added normalizeName and showEllipsis props to improve the name display functionality:
- normalizeName: Controls name normalization behavior
- showEllipsis: Shows ellipsis for text overflow




Also applies to: 41-41

---

`50-50`: **Updated useMemo dependency array**

Correctly added normalizeName to the dependency array of useMemo to ensure the cached value is recalculated when this prop changes.

---

`72-72`: **Updated data-testId attribute case**

Changed attribute from `data-testid` to `data-testId` to maintain consistent naming convention across components.

</details>
<details>
<summary>app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityListTree/EntityListTree.stories.tsx (2)</summary>

`36-36`: **Direct name property assignment**

Simplified data structure by adding name property directly to tree items instead of using a separate names mapping object. This improves code maintainability and readability.



Also applies to: 42-42, 48-48, 55-55, 63-63, 71-71

---

`111-111`: **Updated to use direct name reference**

Modified to directly access item.name instead of looking up in a separate mapping object, aligning with the tree structure changes.

</details>
<details>
<summary>app/client/packages/design-system/ads/src/__hooks__/useEditableText/useEditableText.ts (2)</summary>

`22-22`: **Enhanced function signature with normalization control**

Adding the optional `normalizeName` parameter provides flexibility for consumers of this hook to control the name normalization behavior.

---

`91-93`: **Well-implemented conditional name normalization**

The implementation correctly uses the `normalizeName` flag to conditionally apply normalization, maintaining backward compatibility while adding new functionality.

</details>
<details>
<summary>app/client/src/pages/AppIDE/components/UIEntityListTree/WidgetTreeItem.tsx (2)</summary>

`15-15`: **Improved type safety with explicit typing**

Adding explicit type imports and annotations for the widget variable enhances type safety and code clarity.



Also applies to: 18-18

---

`40-42`: **Refactored to use direct item properties instead of widget properties**

The component now consistently uses properties from the `item` parameter rather than retrieving them from the widget object. This improves robustness by removing potential null reference issues and simplifies the code.



Also applies to: 44-49, 71-73, 81-83, 87-90, 102-102

</details>
<details>
<summary>app/client/src/pages/AppIDE/components/JSEntityItem/JSEntityItem.tsx (2)</summary>

`23-23`: **Added conditional class names with clsx**

Using clsx for managing conditional class names is a good practice that improves readability and maintainability.



Also applies to: 110-112

---

`114-114`: **Fixed selection logic to use item key**

Using `item.key` for the selection comparison instead of `jsAction.id` aligns with the Entity Explorer's selection model.

</details>
<details>
<summary>app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityListTree/EntityListTree.test.tsx (2)</summary>

`12-12`: **Simplified ItemComponent to use direct name property**

The component now directly accesses the name from the item object, which simplifies the code and aligns with the updated data structure.

---

`23-24`: **Updated test data and queries to match new component structure**

Tests now include name properties in the test data and use role-based queries with name attributes, which is more robust and matches the new component implementation.



Also applies to: 30-31, 47-47, 62-63, 69-69, 86-87, 93-94, 103-105, 111-111

</details>
<details>
<summary>app/client/packages/design-system/ads/src/Templates/EditableEntityName/EditableEntityName.tsx (9)</summary>

`12-14`: **Clean utility function for checking text overflow.**

Good abstraction that encapsulates overflow detection logic into a reusable function.

---

`25-26`: **Props correctly introduced with default values.**

The new props `normalizeName` and `showEllipsis` are properly defined with sensible defaults, promoting flexibility while maintaining backward compatibility.



Also applies to: 28-29

---

`34-35`: **State management for tooltip visibility.**

Good approach using dedicated state variable and ref for tracking overflow condition.

---

`78-85`: **Effect for detecting text overflow.**

The implementation correctly handles the ellipsis detection and updates tooltip visibility accordingly.

---

`117-118`: **Improved class naming with clsx.**

Good use of the clsx utility to conditionally apply the editing class.

---

`124-125`: **Conditional ref application.**

The ref is correctly applied only when the showEllipsis prop is true, avoiding unnecessary DOM references.

---

`1-1`: **Properly organized imports.**

Good organization of React hooks in the import statement.

---

`49-50`: <details>
<summary>❓ Verification inconclusive</summary>

**Verify normalizeName implementation in useEditableText.**

The `normalizeName` prop is now passed to the `useEditableText` hook. Ensure the hook implementation properly handles this parameter.

---

🏁 Script executed:

```shell
#!/bin/bash
# Check the implementation of useEditableText
echo "Checking useEditableText hook implementation..."
rg -A 20 "export const useEditableText" --type tsx --glob "**/packages/design-system/ads/src/**"
```

Length of output: 231

---



</details>

**Action Required: Verify `normalizeName` Handling in `useEditableText` Hook**

It appears our initial script using `--type tsx` did not yield results due to an unrecognized file type. Please either re-run the search with the appropriate file type flag (e.g., `--type typescriptreact`) or manually inspect the `useEditableText` hook implementation to ensure that the `normalizeName` prop is properly processed.

- Verify that the normalization logic in `useEditableText` correctly applies the `normalizeName` function.
- Confirm that any related tests cover scenarios involving this parameter.

---

`87-109`: <details>
<summary>❓ Verification inconclusive</summary>

**Tooltip logic needs a review.**

There's a potential logic issue with the tooltip visibility configuration.

For validation errors:
- `visible: true` (always visible)
- `isDisabled: false` (tooltip enabled)

For name tooltips:
- `visible: !showTooltip` (hidden when showTooltip is true)
- `isDisabled: !showTooltip` (disabled when showTooltip is true)

This appears contradictory since `showTooltip` state is meant to control when tooltips should appear.

---

🏁 Script executed:

```shell
#!/bin/bash
# Check if there are any similar tooltip implementations in the codebase
echo "Searching for similar tooltip implementations..."
rg -A 3 -B 3 "content: .+, placement: .+, visible: .+" --type tsx --glob "!**/node_modules/**"
```

Length of output: 231

---

I've noticed that the original search command didn't work as expected due to an unrecognized file type ("tsx"). To gather a more reliable result, please run a revised shell script that explicitly filters for TSX files:



This should help us verify whether similar tooltip configurations exist elsewhere in the codebase. Based on the review of the snippet, there is a potential inversion in the logic controlling the tooltip for non-error cases (i.e., using `!showTooltip` for both `visible` and `isDisabled`). Once you verify the output from the above script, please re-check if the tooltip state (`showTooltip`) is handled consistently throughout the project.

**Action Required:**  
- Run the revised shell script to confirm how tooltip properties are configured in other TSX files.
- Double-check if the tooltip's logic (for instance, when `showTooltip` is true/false) is consistent with the intended behavior.



---

🏁 Script executed:

```shell

#!/bin/bash
echo "Searching for similar tooltip implementations in TSX files..."
rg -A 3 -B 3 "content: .+, placement: .+, visible:" -g "*.tsx"
```

Length of output: 319

---



</details>

**Tooltip Logic Requires Careful Verification**

The current implementation uses `!showTooltip` for both `visible` and `isDisabled` in the non-error branch, which is potentially counterintuitive if `showTooltip` is meant to directly control the tooltip’s display state. No similar implementations were identified elsewhere in the codebase, so it’s unclear whether this was intended or an oversight.

- Verify that `showTooltip` is defined and used consistently in this context.
- Consider whether the tooltip for validation errors and the regular name tooltip should have distinct state controls.
- If the intent is to display the tooltip when `showTooltip` is true, then using `!showTooltip` may need refactoring or a clearer separation of concerns.

</details>

</blockquote></details>

</details>

<!-- This is an auto-generated comment by CodeRabbit for review status -->
state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-03-05T05:16:16Z
user: login: ankitakinger
state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-03-05T06:03:17Z
user: login: ankitakinger
state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-03-05T06:05:55Z
user: login: ankitakinger
state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-03-05T06:08:52Z
user: login: ankitakinger
state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-03-05T06:09:45Z
user: login: ankitakinger
state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-03-05T06:11:59Z
user: login: ankitakinger
state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-03-05T06:13:57Z
user: login: ankitakinger
state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-03-05T06:19:26Z
user: login: ankitakinger
state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-03-05T06:20:31Z
user: login: ankitakinger
body: You have missed the following file changes:
```
app/client/src/pages/Editor/Explorer/Entity/Name.tsx
app/client/src/pages/AppIDE/components/PageList/PageElement.tsx
app/client/src/pages/AppIDE/components/PageList/PagesSection.tsx
app/client/src/pages/AppIDE/components/QueryEntityItem/QueryEntityItem.tsx
```

state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-03-05T06:23:00Z
user: login: hetunandu
state: COMMENTED
author_association: MEMBER
submitted_at: 2025-03-05T06:59:06Z
user: login: hetunandu
state: COMMENTED
author_association: MEMBER
submitted_at: 2025-03-05T06:59:17Z
user: login: hetunandu
state: COMMENTED
author_association: MEMBER
submitted_at: 2025-03-05T06:59:25Z
user: login: hetunandu
state: COMMENTED
author_association: MEMBER
submitted_at: 2025-03-05T06:59:32Z
user: login: hetunandu
state: COMMENTED
author_association: MEMBER
submitted_at: 2025-03-05T07:00:13Z
user: login: hetunandu
state: COMMENTED
author_association: MEMBER
submitted_at: 2025-03-05T07:00:21Z
user: login: hetunandu
state: COMMENTED
author_association: MEMBER
submitted_at: 2025-03-05T07:00:28Z
user: login: coderabbitai[bot]
body: **Actionable comments posted: 0**

<details>
<summary>🧹 Nitpick comments (1)</summary><blockquote>

<details>
<summary>app/client/packages/design-system/ads/src/Templates/EditableEntityName/EditableEntityName.tsx (1)</summary><blockquote>

`78-85`: **Optimize effect dependencies.**

The effect only tracks changes to `editableName` and `showEllipsis`, but the DOM element's dimensions could change for other reasons (like window resize).


```diff
  useEffect(
    function handleShowTooltipOnEllipsis() {
      if (showEllipsis) {
        setShowTooltip(!!isEllipsisActive(longNameRef.current));
      }
    },
-   [editableName, showEllipsis],
+   [editableName, showEllipsis, name],
  );
```

Consider also adding a window resize listener if the component needs to respond to layout changes.

</blockquote></details>

</blockquote></details>

<details>
<summary>📜 Review details</summary>

**Configuration used: .coderabbit.yaml**
**Review profile: CHILL**
**Plan: Pro**

<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between 87cb9d6c3e9806cf61ad4776847ecf44b0b07f45 and 06b3cb549d5c2a1ef5887f4073b7d46fc09e3cf7.

</details>

<details>
<summary>📒 Files selected for processing (6)</summary>

* `app/client/packages/design-system/ads/src/Templates/EditableEntityName/EditableEntityName.tsx` (4 hunks)
* `app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityGroupsList/EntityGroupsList.tsx` (1 hunks)
* `app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityItem/EntityItem.tsx` (4 hunks)
* `app/client/src/IDE/Components/EntityContextMenu.tsx` (2 hunks)
* `app/client/src/pages/AppIDE/components/UIEntityListTree/WidgetContextMenu.tsx` (3 hunks)
* `app/client/src/pages/AppIDE/components/UIEntityListTree/WidgetTreeItem.tsx` (5 hunks)

</details>

<details>
<summary>🚧 Files skipped from review as they are similar to previous changes (5)</summary>

* app/client/src/pages/AppIDE/components/UIEntityListTree/WidgetContextMenu.tsx
* app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityItem/EntityItem.tsx
* app/client/src/IDE/Components/EntityContextMenu.tsx
* app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityGroupsList/EntityGroupsList.tsx
* app/client/src/pages/AppIDE/components/UIEntityListTree/WidgetTreeItem.tsx

</details>

<details>
<summary>⏰ Context from checks skipped due to timeout of 90000ms (11)</summary>

* GitHub Check: perform-test / server-build / server-unit-tests
* GitHub Check: perform-test / rts-build / build
* GitHub Check: perform-test / client-build / client-build
* GitHub Check: client-check-cyclic-deps / check-cyclic-dependencies
* GitHub Check: client-unit-tests / client-unit-tests
* GitHub Check: client-prettier / prettier-check
* GitHub Check: client-build / client-build
* GitHub Check: client-lint / client-lint
* GitHub Check: chromatic-deployment
* GitHub Check: storybook-tests
* GitHub Check: chromatic-deployment

</details>

<details>
<summary>🔇 Additional comments (8)</summary><blockquote>

<details>
<summary>app/client/packages/design-system/ads/src/Templates/EditableEntityName/EditableEntityName.tsx (8)</summary>

`12-14`: **Good utility function for checking text overflow.**

This is a clean implementation to detect if text is overflowing its container.

---

`25-28`: **New props improve component flexibility.**

The props `normalizeName` and `showEllipsis` with sensible default values allow for better customization of the component behavior.

---

`34-35`: **Proper state tracking for tooltip visibility.**

Good implementation using local state and ref to control when to show tooltips.

---

`49-49`: **Correct propagation of normalizeName param.**

Passing the normalizeName prop to the useEditableText hook ensures consistent behavior.

---

`72-72`: **Added placeholder improves UX.**

Adding a placeholder text for the input field enhances user experience.

---

`117-117`: **Using clsx for conditional classnames is good practice.**

The use of `clsx` to conditionally apply the editing class is clean and follows best practices.

---

`124-124`: **Conditional ref assignment is appropriate.**

Only setting the ref when `showEllipsis` is true prevents unnecessary DOM operations.

---

`87-109`: <details>
<summary>❓ Verification inconclusive</summary>

**Verify tooltip behavior for dual purposes.**

The tooltip now serves two different purposes (showing validation errors and full names) which might confuse users.




In response to previous comment from @ankitakinger: "how would you add 2 different tooltips when it has to be on the same element?"
This implementation technically handles both cases, but consider if two separate tooltip components would be clearer.

---

🏁 Script executed:

```shell
#!/bin/bash
# Search for other components that may use this pattern to ensure consistency
rg -t tsx "isDisabled: !showTooltip" --glob "!**/EditableEntityName.tsx" 
```

Length of output: 102

---

**Action Required: Verify Dual-Purpose Tooltip Consistency**

The current implementation uses a single tooltip to display either validation errors or the full entity name, which might lead to user confusion. Before deciding if a refactor (such as splitting into two distinct tooltip components) is needed, we should verify that this dual-purpose pattern isn’t used elsewhere unexpectedly in the codebase.

A previous search for the pattern produced an error due to an unrecognized file type ("tsx"). Please re-run the modified search to check for consistent usage:
  


Once you review the output:
- **If similar patterns exist**, consider evaluating whether a dedicated tooltip for each case could improve clarity.
- **If not**, the dual-purpose tooltip may be acceptable, but bear in mind the potential for user confusion.



---

🏁 Script executed:

```shell

#!/bin/bash
# Re-run the search for 'isDisabled: !showTooltip' in TSX files (excluding EditableEntityName.tsx),
# ensuring TSX files are recognized.
rg --type-add='tsx:*.tsx' -t tsx "isDisabled: !showTooltip" --glob "!**/EditableEntityName.tsx"
```

Length of output: 219

---



</details>

**Action: Reassess Dual-Purpose Tooltip Usage**

Although a search for the pattern outside of EditableEntityName did not yield additional matches, the dual-use of the tooltip—handling both validation errors and full entity names—could still confuse users. There’s no evidence of this pattern being consistently implemented across the codebase, so please verify that this design is intentional. Consider if using two distinct tooltip components might provide clearer UX, especially when a validation error occurs.

- Confirm that the combined tooltip behavior meets UX expectations.
- Evaluate whether splitting the tooltip for error messages and for displaying lengthy names improves clarity.
- Perform manual testing to ensure that users understand the tooltip’s dual role.

</details>

</blockquote></details>

</details>

<!-- This is an auto-generated comment by CodeRabbit for review status -->
state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-03-05T07:02:28Z
user: login: ankitakinger
state: DISMISSED
author_association: CONTRIBUTOR
submitted_at: 2025-03-05T07:14:52Z
user: login: coderabbitai[bot]
body: **Actionable comments posted: 0**

<details>
<summary>🧹 Nitpick comments (1)</summary><blockquote>

<details>
<summary>app/client/src/pages/Editor/Explorer/Entity/Name.tsx (1)</summary><blockquote>

`48-48`: **Element type change improves component rendering consistency**

Changing from `div` to `span` aligns with expected inline rendering for this wrapper. Since this component wraps editable text within a form context, using an inline element is semantically more appropriate.


This change addresses potential layout inconsistencies, but consider adding a display style property to ensure consistent rendering across browsers:

```diff
const EditableWrapper = styled.span`
+  display: inline-block;
  overflow: hidden;
  margin: 0 ${(props) => props.theme.spaces[1]}px;
  padding: ${(props) => props.theme.spaces[3] + 1}px 0;
  line-height: 13px;
`;
```

</blockquote></details>

</blockquote></details>

<details>
<summary>📜 Review details</summary>

**Configuration used: .coderabbit.yaml**
**Review profile: CHILL**
**Plan: Pro**

<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between 06b3cb549d5c2a1ef5887f4073b7d46fc09e3cf7 and ddeaa29275474ee79bdfe2f6602134748b918e6d.

</details>

<details>
<summary>📒 Files selected for processing (2)</summary>

* `app/client/src/pages/AppIDE/components/QueryEntityItem/QueryEntityItem.tsx` (3 hunks)
* `app/client/src/pages/Editor/Explorer/Entity/Name.tsx` (1 hunks)

</details>

<details>
<summary>⏰ Context from checks skipped due to timeout of 90000ms (11)</summary>

* GitHub Check: perform-test / client-build / client-build
* GitHub Check: perform-test / rts-build / build
* GitHub Check: perform-test / server-build / server-unit-tests
* GitHub Check: client-unit-tests / client-unit-tests
* GitHub Check: client-lint / client-lint
* GitHub Check: client-check-cyclic-deps / check-cyclic-dependencies
* GitHub Check: client-prettier / prettier-check
* GitHub Check: client-build / client-build
* GitHub Check: storybook-tests
* GitHub Check: chromatic-deployment
* GitHub Check: chromatic-deployment

</details>

<details>
<summary>🔇 Additional comments (6)</summary><blockquote>

<details>
<summary>app/client/src/pages/AppIDE/components/QueryEntityItem/QueryEntityItem.tsx (6)</summary>

`53-55`: **Added dataTestId for improved test selection.**

Adding a test identifier enhances component testability. Good practice for automated testing.

---

`60-60`: **Improved null safety with optional chaining.**

Using `action?.userPermissions || []` prevents runtime errors when action is undefined or null.

---

`77-78`: **Properly retrieving icon from action configuration.**

Using the config's getIcon method ensures correct icon rendering based on the action and plugin type, which is more reliable than using the direct item.icon reference.

---

`111-115`: **Fixed useMemo dependencies for correct recalculation.**

Added missing dependencies to the useMemo array ensures the memoized nameEditorConfig is properly updated when these dependencies change.

---

`121-121`: **Updated selection logic to use consistent identifiers.**

Changed comparison from action.id to item.key for selection state, which aligns with how the component receives and manages its data structure.

---

`128-128`: **Using derived icon variable for consistent rendering.**

Correctly leveraging the derived icon variable from the action config instead of directly using item.icon.

</details>

</blockquote></details>

</details>

<!-- This is an auto-generated comment by CodeRabbit for review status -->
state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-03-05T07:45:23Z
user: login: ankitakinger
state: DISMISSED
author_association: CONTRIBUTOR
submitted_at: 2025-03-05T07:46:50Z
user: login: coderabbitai[bot]
body: **Actionable comments posted: 1**

<details>
<summary>📜 Review details</summary>

**Configuration used: .coderabbit.yaml**
**Review profile: CHILL**
**Plan: Pro**

<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between ddeaa29275474ee79bdfe2f6602134748b918e6d and e89539b2285211ebac36a89e0bc5562c754bf93a.

</details>

<details>
<summary>📒 Files selected for processing (1)</summary>

* `app/client/packages/design-system/ads/src/Templates/EditableEntityName/EditableEntityName.tsx` (4 hunks)

</details>

<details>
<summary>⏰ Context from checks skipped due to timeout of 90000ms (11)</summary>

* GitHub Check: perform-test / server-build / server-unit-tests
* GitHub Check: perform-test / rts-build / build
* GitHub Check: perform-test / client-build / client-build
* GitHub Check: client-unit-tests / client-unit-tests
* GitHub Check: client-lint / client-lint
* GitHub Check: client-check-cyclic-deps / check-cyclic-dependencies
* GitHub Check: client-build / client-build
* GitHub Check: client-prettier / prettier-check
* GitHub Check: chromatic-deployment
* GitHub Check: storybook-tests
* GitHub Check: chromatic-deployment

</details>

<details>
<summary>🔇 Additional comments (8)</summary><blockquote>

<details>
<summary>app/client/packages/design-system/ads/src/Templates/EditableEntityName/EditableEntityName.tsx (8)</summary>

`1-4`: **Import additions are appropriate for new functionality.**

The added imports for React hooks and TooltipProps properly support the new tooltip and element reference functionality.

---

`12-14`: **Utility function implementation is sound.**

This utility function provides a clean way to detect text overflow, which is essential for the tooltip visibility logic.

---

`25-28`: **Props with default values maintain backward compatibility.**

Good practice adding default values for the new props, ensuring existing implementations won't break.

---

`34-35`: **State and ref for tooltip functionality is well structured.**

The state and ref declarations are appropriately scoped for managing tooltip visibility based on text overflow.

---

`49-49`: **Hook updated to support name normalization.**

The normalizeName prop is correctly passed to the useEditableText hook.

---

`78-85`: **Effective tooltip visibility management with proper dependencies.**

The useEffect correctly manages tooltip visibility based on text overflow and includes appropriate dependencies.

---

`88-107`: **Well-structured tooltip props with proper memoization.**

The tooltip props are conditionally structured based on validation state and visually managed through the showTooltip state. The useMemo optimization is appropriate for performance.

---

`112-123`: **Enhanced rendering with conditional ref and improved class management.**

The conditional ref assignment and clsx usage for class names improve the component's flexibility and readability.


I see this addresses the previous comment about handling multiple tooltips on the same element.

</details>

</blockquote></details>

</details>

<!-- This is an auto-generated comment by CodeRabbit for review status -->
state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-03-05T09:43:17Z
user: login: ankitakinger
state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-03-05T10:23:08Z
user: login: coderabbitai[bot]
body: **Actionable comments posted: 0**

<details>
<summary>♻️ Duplicate comments (1)</summary><blockquote>

<details>
<summary>app/client/packages/design-system/ads/src/Templates/EditableEntityName/EditableEntityName.tsx (1)</summary><blockquote>

`72-72`: _⚠️ Potential issue_

**Move 'placeholder' from style object to input attributes.**

The 'placeholder' property isn't a valid CSS style property and should be moved to the inputProps object.



```diff
- placeholder: "Name",
```

This should be added to the inputProps object instead:

```diff
 inputProps = useMemo(
   () => ({
     ["data-testid"]: inputTestId,
     onKeyUp: handleKeyUp,
     onChange: handleTitleChange,
     autoFocus: true,
+    placeholder: "Name",
     style: {
       backgroundColor: "var(--ads-v2-color-bg)",
       paddingTop: "4px",
       paddingBottom: "4px",
       top: "-5px",
     },
   }),
   [handleKeyUp, handleTitleChange, inputTestId],
 );
```

</blockquote></details>

</blockquote></details>

<details>
<summary>🧹 Nitpick comments (1)</summary><blockquote>

<details>
<summary>app/client/packages/design-system/ads/src/Templates/EditableEntityName/EditableEntityName.tsx (1)</summary><blockquote>

`78-85`: **Add window resize listener for tooltip visibility.**

The current implementation only checks for text overflow when `editableName` or `showEllipsis` changes, but not when window or container size changes.


```diff
useEffect(
  function handleShowTooltipOnEllipsis() {
    if (showEllipsis) {
      setShowTooltip(!!isEllipsisActive(longNameRef.current));
    }
  },
  [editableName, showEllipsis],
);

+useEffect(() => {
+  if (!showEllipsis) return;
+  
+  const handleResize = () => {
+    setShowTooltip(!!isEllipsisActive(longNameRef.current));
+  };
+  
+  window.addEventListener("resize", handleResize);
+  return () => window.removeEventListener("resize", handleResize);
+}, [showEllipsis]);
```

</blockquote></details>

</blockquote></details>

<details>
<summary>📜 Review details</summary>

**Configuration used: .coderabbit.yaml**
**Review profile: CHILL**
**Plan: Pro**

<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between e89539b2285211ebac36a89e0bc5562c754bf93a and 94867c9225193453361af0411fd2b9f2950d922a.

</details>

<details>
<summary>📒 Files selected for processing (1)</summary>

* `app/client/packages/design-system/ads/src/Templates/EditableEntityName/EditableEntityName.tsx` (4 hunks)

</details>

<details>
<summary>⏰ Context from checks skipped due to timeout of 90000ms (10)</summary>

* GitHub Check: perform-test / rts-build / build
* GitHub Check: perform-test / server-build / server-unit-tests
* GitHub Check: client-lint / client-lint
* GitHub Check: client-check-cyclic-deps / check-cyclic-dependencies
* GitHub Check: client-build / client-build
* GitHub Check: client-unit-tests / client-unit-tests
* GitHub Check: client-prettier / prettier-check
* GitHub Check: chromatic-deployment
* GitHub Check: chromatic-deployment
* GitHub Check: storybook-tests

</details>

<details>
<summary>🔇 Additional comments (7)</summary><blockquote>

<details>
<summary>app/client/packages/design-system/ads/src/Templates/EditableEntityName/EditableEntityName.tsx (7)</summary>

`12-14`: **Helper function to detect text overflow looks good.**

The `isEllipsisActive` utility function provides a clean way to detect text overflow and will be useful for dynamic tooltip display.

---

`25-28`: **Props added with sensible defaults.**

The new props `normalizeName` and `showEllipsis` have appropriate default values set to false, maintaining backward compatibility with existing usage.

---

`34-35`: **State and ref for tooltip management.**

Good addition of state and ref to handle tooltip visibility based on text overflow.

---

`49-49`: **Normalization flag passed to hook.**

The `normalizeName` flag is correctly passed to the `useEditableText` hook to ensure consistent behavior.

---

`90-97`: **Tooltip configuration looks good.**

The primary tooltip shows the full name when text is truncated, with appropriate delay and positioning.

---

`98-105`: **Nested tooltip pattern for validation errors.**

The nested tooltip pattern allows for showing both the full name and validation errors without conflict. This is a valid approach based on the previous review comments about needing different tooltips on the same element.

---

`106-118`: **Enhanced text component with accessibility improvements.**

The use of `aria-invalid` and class handling with `clsx` improves both accessibility and styling flexibility. The conditional ref assignment is also a good optimization.

</details>

</blockquote></details>

</details>

<!-- This is an auto-generated comment by CodeRabbit for review status -->
state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-03-05T10:23:26Z
user: login: hetunandu
state: COMMENTED
author_association: MEMBER
submitted_at: 2025-03-05T10:24:00Z
user: login: ankitakinger
state: APPROVED
author_association: CONTRIBUTOR
submitted_at: 2025-03-05T10:46:40Z

Review comments:
diff_hunk: @@ -58,27 +69,59 @@ export const EditableEntityName = (props: EditableEntityNameProps) => {
         paddingTop: "4px",
         paddingBottom: "4px",
         top: "-5px",
+        placeholder: "Name",
       },
     }),
     [handleKeyUp, handleTitleChange, inputTestId],
   );
 
+  useEffect(
+    function handleShowTooltipOnEllipsis() {
+      if (showEllipsis) {
+        setShowTooltip(!!isEllipsisActive(longNameRef.current));
+      }
+    },
+    [editableName, showEllipsis],
+  );
+
+  // Tooltip can either show the validation error or the name incase of long names
+  // Maybe we should use two different tooltips for this @Ankita
path: app/client/packages/design-system/ads/src/Templates/EditableEntityName/EditableEntityName.tsx
user: login: hetunandu
body: @ankitakinger please check this
created_at: 2025-03-05T05:13:14Z
author_association: MEMBER
diff_hunk: @@ -86,6 +88,7 @@ export const WidgetContextMenu = (props: {
     editWidgetName,
     showBinding,
     widget?.isDeletable,
+    widgetId,
path: app/client/src/pages/AppIDE/components/UIEntityListTree/WidgetContextMenu.tsx
user: login: coderabbitai[bot]
body: _🛠️ Refactor suggestion_

**Fixed dependency array issue**

Including widgetId in the dependency array is critical for proper memoization. This fixes a potential reactivity issue.

<!-- This is an auto-generated comment by CodeRabbit -->
created_at: 2025-03-05T05:16:15Z
author_association: CONTRIBUTOR
diff_hunk: @@ -58,27 +69,59 @@ export const EditableEntityName = (props: EditableEntityNameProps) => {
         paddingTop: "4px",
         paddingBottom: "4px",
         top: "-5px",
+        placeholder: "Name",
       },
     }),
     [handleKeyUp, handleTitleChange, inputTestId],
   );
 
+  useEffect(
+    function handleShowTooltipOnEllipsis() {
+      if (showEllipsis) {
+        setShowTooltip(!!isEllipsisActive(longNameRef.current));
+      }
+    },
+    [editableName, showEllipsis],
+  );
+
+  // Tooltip can either show the validation error or the name incase of long names
+  // Maybe we should use two different tooltips for this @Ankita
path: app/client/packages/design-system/ads/src/Templates/EditableEntityName/EditableEntityName.tsx
user: login: ankitakinger
body: how would you add 2 different tooltips when it has to be on the same element?
created_at: 2025-03-05T06:03:17Z
author_association: CONTRIBUTOR
diff_hunk: @@ -58,27 +69,59 @@ export const EditableEntityName = (props: EditableEntityNameProps) => {
         paddingTop: "4px",
         paddingBottom: "4px",
         top: "-5px",
+        placeholder: "Name",
       },
     }),
     [handleKeyUp, handleTitleChange, inputTestId],
   );
 
+  useEffect(
+    function handleShowTooltipOnEllipsis() {
+      if (showEllipsis) {
+        setShowTooltip(!!isEllipsisActive(longNameRef.current));
+      }
+    },
+    [editableName, showEllipsis],
+  );
+
+  // Tooltip can either show the validation error or the name incase of long names
+  // Maybe we should use two different tooltips for this @Ankita
+  const tooltipProps: TooltipProps = useMemo(
+    () =>
+      validationError
+        ? {
+            content: validationError,
+            placement: "bottom",
+            visible: true,
+            isDisabled: false,
+            mouseEnterDelay: 0,
+            showArrow: true,
+          }
+        : {
+            content: name,
+            placement: "topLeft",
+            visible: !showTooltip,
path: app/client/packages/design-system/ads/src/Templates/EditableEntityName/EditableEntityName.tsx
user: login: ankitakinger
body: I don't think this is right. Have you tested this out?
created_at: 2025-03-05T06:05:55Z
author_association: CONTRIBUTOR
diff_hunk: @@ -69,6 +69,7 @@ const EntityGroup = <T,>({
             group.renderList(item)
           ) : (
             <ListItem
+              data-testid={`entity-group-item-${(item as ListItemProps)?.title}`}
path: app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityGroupsList/EntityGroupsList.tsx
user: login: ankitakinger
body: this is supposed to be `dataTestId`
created_at: 2025-03-05T06:08:52Z
author_association: CONTRIBUTOR
diff_hunk: @@ -65,7 +69,7 @@ export const EntityItem = (props: EntityItemProps) => {
       {...rest}
       className={clx("t--entity-item", props.className)}
       customTitleComponent={customTitle}
-      data-testid={`t--entity-item-${props.title}`}
+      data-testId={`t--entity-item-${props.title}`}
path: app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityItem/EntityItem.tsx
user: login: ankitakinger
body: same here. supposed to be `dataTestId`
created_at: 2025-03-05T06:09:45Z
author_association: CONTRIBUTOR
diff_hunk: @@ -49,8 +49,11 @@ export function EntityListTree(props: EntityListTreeProps) {
           >
             {item.children && item.children.length ? (
               <CollapseWrapper
+                data-icon={
path: app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityListTree/EntityListTree.tsx
user: login: ankitakinger
body: cypress tests will need an update again as they use the `id` for locating this which you are now changing to `data-icon`
created_at: 2025-03-05T06:11:59Z
author_association: CONTRIBUTOR
diff_hunk: @@ -9,6 +9,7 @@ import { EntityClassNames } from "pages/Editor/Explorer/Entity";
 
 interface Props {
   children?: React.ReactNode[] | React.ReactNode;
path: app/client/src/IDE/Components/EntityContextMenu.tsx
user: login: ankitakinger
body: I'd made children a mandatory prop here as it makes no sense to show the trigger without the children.
created_at: 2025-03-05T06:13:57Z
author_association: CONTRIBUTOR
diff_hunk: @@ -98,7 +101,16 @@ export const WidgetContextMenu = (props: {
           startIcon="more-2-fill"
         />
       </MenuTrigger>
-      <MenuContent align="start" key={widgetId} side="right" width="300px">
+      <MenuContent
+        align="start"
+        className={clsx(
+          "t--widget-context-menu",
path: app/client/src/pages/AppIDE/components/UIEntityListTree/WidgetContextMenu.tsx
user: login: ankitakinger
body: class name should be `t--entity-context-menu`
created_at: 2025-03-05T06:19:26Z
author_association: CONTRIBUTOR
diff_hunk: @@ -77,18 +78,15 @@ export const WidgetTreeItem = ({ item }: { item: EntityListTreeItem }) => {
   );
 
   const onDoubleClick = useCallback(
-    () => enterEditMode(widget.widgetId),
-    [enterEditMode, widget.widgetId],
+    () => enterEditMode(item.id),
+    [enterEditMode, item.id],
   );
 
   const rightControl = useMemo(
     () => (
-      <WidgetContextMenu
-        canManagePages={canManagePages}
-        widgetId={widget.widgetId}
-      />
+      <WidgetContextMenu canManagePages={canManagePages} widgetId={item.id} />
     ),
-    [canManagePages, widget.widgetId],
+    [canManagePages, item.id],
   );
 
path: app/client/src/pages/AppIDE/components/UIEntityListTree/WidgetTreeItem.tsx
user: login: ankitakinger
body: no need of this statement anymore?
`if (!widget) return null;`
created_at: 2025-03-05T06:20:31Z
author_association: CONTRIBUTOR
diff_hunk: @@ -58,27 +69,59 @@ export const EditableEntityName = (props: EditableEntityNameProps) => {
         paddingTop: "4px",
         paddingBottom: "4px",
         top: "-5px",
+        placeholder: "Name",
       },
     }),
     [handleKeyUp, handleTitleChange, inputTestId],
   );
 
+  useEffect(
+    function handleShowTooltipOnEllipsis() {
+      if (showEllipsis) {
+        setShowTooltip(!!isEllipsisActive(longNameRef.current));
+      }
+    },
+    [editableName, showEllipsis],
+  );
+
+  // Tooltip can either show the validation error or the name incase of long names
+  // Maybe we should use two different tooltips for this @Ankita
path: app/client/packages/design-system/ads/src/Templates/EditableEntityName/EditableEntityName.tsx
user: login: hetunandu
body: fixed. 
created_at: 2025-03-05T06:59:06Z
author_association: MEMBER
diff_hunk: @@ -58,27 +69,59 @@ export const EditableEntityName = (props: EditableEntityNameProps) => {
         paddingTop: "4px",
         paddingBottom: "4px",
         top: "-5px",
+        placeholder: "Name",
       },
     }),
     [handleKeyUp, handleTitleChange, inputTestId],
   );
 
+  useEffect(
+    function handleShowTooltipOnEllipsis() {
+      if (showEllipsis) {
+        setShowTooltip(!!isEllipsisActive(longNameRef.current));
+      }
+    },
+    [editableName, showEllipsis],
+  );
+
+  // Tooltip can either show the validation error or the name incase of long names
+  // Maybe we should use two different tooltips for this @Ankita
+  const tooltipProps: TooltipProps = useMemo(
+    () =>
+      validationError
+        ? {
+            content: validationError,
+            placement: "bottom",
+            visible: true,
+            isDisabled: false,
+            mouseEnterDelay: 0,
+            showArrow: true,
+          }
+        : {
+            content: name,
+            placement: "topLeft",
+            visible: !showTooltip,
path: app/client/packages/design-system/ads/src/Templates/EditableEntityName/EditableEntityName.tsx
user: login: hetunandu
body: Fixed
created_at: 2025-03-05T06:59:17Z
author_association: MEMBER
diff_hunk: @@ -69,6 +69,7 @@ const EntityGroup = <T,>({
             group.renderList(item)
           ) : (
             <ListItem
+              data-testid={`entity-group-item-${(item as ListItemProps)?.title}`}
path: app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityGroupsList/EntityGroupsList.tsx
user: login: hetunandu
body: Done
created_at: 2025-03-05T06:59:25Z
author_association: MEMBER
diff_hunk: @@ -65,7 +69,7 @@ export const EntityItem = (props: EntityItemProps) => {
       {...rest}
       className={clx("t--entity-item", props.className)}
       customTitleComponent={customTitle}
-      data-testid={`t--entity-item-${props.title}`}
+      data-testId={`t--entity-item-${props.title}`}
path: app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityItem/EntityItem.tsx
user: login: hetunandu
body: Done
created_at: 2025-03-05T06:59:32Z
author_association: MEMBER
diff_hunk: @@ -49,8 +49,11 @@ export function EntityListTree(props: EntityListTreeProps) {
           >
             {item.children && item.children.length ? (
               <CollapseWrapper
+                data-icon={
path: app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityListTree/EntityListTree.tsx
user: login: hetunandu
body: Will do in the other PR. IDs are unique on a page and hence that was not a valid attribute
created_at: 2025-03-05T07:00:13Z
author_association: MEMBER
diff_hunk: @@ -98,7 +101,16 @@ export const WidgetContextMenu = (props: {
           startIcon="more-2-fill"
         />
       </MenuTrigger>
-      <MenuContent align="start" key={widgetId} side="right" width="300px">
+      <MenuContent
+        align="start"
+        className={clsx(
+          "t--widget-context-menu",
path: app/client/src/pages/AppIDE/components/UIEntityListTree/WidgetContextMenu.tsx
user: login: hetunandu
body: Done
created_at: 2025-03-05T07:00:21Z
author_association: MEMBER
diff_hunk: @@ -77,18 +78,15 @@ export const WidgetTreeItem = ({ item }: { item: EntityListTreeItem }) => {
   );
 
   const onDoubleClick = useCallback(
-    () => enterEditMode(widget.widgetId),
-    [enterEditMode, widget.widgetId],
+    () => enterEditMode(item.id),
+    [enterEditMode, item.id],
   );
 
   const rightControl = useMemo(
     () => (
-      <WidgetContextMenu
-        canManagePages={canManagePages}
-        widgetId={widget.widgetId}
-      />
+      <WidgetContextMenu canManagePages={canManagePages} widgetId={item.id} />
     ),
-    [canManagePages, widget.widgetId],
+    [canManagePages, item.id],
   );
 
path: app/client/src/pages/AppIDE/components/UIEntityListTree/WidgetTreeItem.tsx
user: login: hetunandu
body: Added
created_at: 2025-03-05T07:00:28Z
author_association: MEMBER
diff_hunk: @@ -58,27 +69,57 @@ export const EditableEntityName = (props: EditableEntityNameProps) => {
         paddingTop: "4px",
         paddingBottom: "4px",
         top: "-5px",
+        placeholder: "Name",
path: app/client/packages/design-system/ads/src/Templates/EditableEntityName/EditableEntityName.tsx
user: login: coderabbitai[bot]
body: _⚠️ Potential issue_

**Incorrect use of 'placeholder' in style object.**

The 'placeholder' property isn't a valid CSS style property and should be moved to the input attributes.


```diff
- placeholder: "Name",
```

This should be added to the inputProps object instead:

```diff
 inputProps = useMemo(
   () => ({
     ["data-testid"]: inputTestId,
     onKeyUp: handleKeyUp,
     onChange: handleTitleChange,
     autoFocus: true,
+    placeholder: "Name",
     style: {
       backgroundColor: "var(--ads-v2-color-bg)",
       paddingTop: "4px",
       paddingBottom: "4px",
       top: "-5px",
     },
   }),
   [handleKeyUp, handleTitleChange, inputTestId],
 );
```


<!-- suggestion_start -->

<details>
<summary>📝 Committable suggestion</summary>

> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

`````suggestion
-        placeholder: "Name",
+        // Removed placeholder from the style object.
 
-        // ... rest of the code in the style object ...
+        inputProps = useMemo(
+          () => ({
+            ["data-testid"]: inputTestId,
+            onKeyUp: handleKeyUp,
+            onChange: handleTitleChange,
+            autoFocus: true,
+            placeholder: "Name",
+            style: {
+              backgroundColor: "var(--ads-v2-color-bg)",
+              paddingTop: "4px",
+              paddingBottom: "4px",
+              top: "-5px",
+            },
+          }),
+          [handleKeyUp, handleTitleChange, inputTestId],
+        );
`````

</details>

<!-- suggestion_end -->

<!-- This is an auto-generated comment by CodeRabbit -->
created_at: 2025-03-05T09:43:17Z
author_association: CONTRIBUTOR
diff_hunk: @@ -58,30 +69,54 @@ export const EditableEntityName = (props: EditableEntityNameProps) => {
         paddingTop: "4px",
         paddingBottom: "4px",
         top: "-5px",
+        placeholder: "Name",
       },
     }),
     [handleKeyUp, handleTitleChange, inputTestId],
   );
 
+  useEffect(
+    function handleShowTooltipOnEllipsis() {
+      if (showEllipsis) {
+        setShowTooltip(!!isEllipsisActive(longNameRef.current));
+      }
+    },
+    [editableName, showEllipsis],
+  );
+
   return (
     <Styled.Root data-size={size}>
       {startIcon}
       <Tooltip
-        content={validationError}
-        placement="bottom"
-        visible={Boolean(validationError)}
+        content={name}
+        isDisabled={!showTooltip}
+        key="entity-name"
path: app/client/packages/design-system/ads/src/Templates/EditableEntityName/EditableEntityName.tsx
user: login: ankitakinger
body: do we still need the key?
created_at: 2025-03-05T10:23:08Z
author_association: CONTRIBUTOR
diff_hunk: @@ -58,30 +69,54 @@ export const EditableEntityName = (props: EditableEntityNameProps) => {
         paddingTop: "4px",
         paddingBottom: "4px",
         top: "-5px",
+        placeholder: "Name",
       },
     }),
     [handleKeyUp, handleTitleChange, inputTestId],
   );
 
+  useEffect(
+    function handleShowTooltipOnEllipsis() {
+      if (showEllipsis) {
+        setShowTooltip(!!isEllipsisActive(longNameRef.current));
+      }
+    },
+    [editableName, showEllipsis],
+  );
+
   return (
     <Styled.Root data-size={size}>
       {startIcon}
       <Tooltip
-        content={validationError}
-        placement="bottom"
-        visible={Boolean(validationError)}
+        content={name}
+        isDisabled={!showTooltip}
+        key="entity-name"
path: app/client/packages/design-system/ads/src/Templates/EditableEntityName/EditableEntityName.tsx
user: login: hetunandu
body: Good to have it. Helps in identification
created_at: 2025-03-05T10:24:00Z
author_association: MEMBER

PR comments:
user: login: coderabbitai[bot]
created_at: 2025-03-05T05:12:22Z
body: <!-- This is an auto-generated comment: summarize by coderabbit.ai -->
<!-- walkthrough_start -->

## Walkthrough
This pull request implements several targeted updates across various components in the design system and IDE. Changes include enhancing class names for list items, introducing new optional props (such as `normalizeName` and `showEllipsis`) to improve tooltip and name normalization behavior, and refining test identifiers across components. Additional modifications update collapse toggle icons and adjust disabled states for menu triggers. Several components now utilize a more streamlined naming approach by removing intermediary mapping objects. Conditional rendering improvements are also introduced to prevent unintended UI behavior in specific contexts.

## Changes

| File(s) | Change Summary |
|---------|----------------|
| `app/client/packages/design-system/ads/src/List/List.tsx` | Added `"t--ide-list-item"` to the `className` concatenation in `StyledListItem`. |
| `app/client/packages/design-system/ads/src/Templates/EditableEntityName/EditableEntityName.tsx`, <br>`.../EditableEntityName/EditableEntityName.types.ts`, <br>`app/client/packages/design-system/ads/src/__hooks__/useEditableText/useEditableText.ts` | Introduced new props (`normalizeName`, `showEllipsis`), added a utility function (`isEllipsisActive`), and implemented tooltip overflow logic via `useEffect` and conditional normalization in the hook. |
| `app/client/packages/design-system/ads/src/Templates/EntityContextMenu/EntityContextMenu.tsx`, <br>`app/client/src/IDE/Components/EntityContextMenu.tsx` | Renamed prop from `dataTestid` to `dataTestId` and added an optional `dataTestId` prop for dynamic test ID assignment. |
| `app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityGroupsList/EntityGroupsList.tsx`, <br>`.../EntityExplorer/EntityItem/EntityItem.tsx`, <br>`.../EntityExplorer/EntityItem/EntityItem.types.ts`, <br>`.../EntityExplorer/EntityListTree/EntityListTree.tsx`, <br>`.../EntityExplorer/EntityListTree/EntityListTree.stories.tsx`, <br>`.../EntityExplorer/EntityListTree/EntityListTree.test.tsx`, <br>`.../EntityExplorer/EntityListTree/EntityListTree.types.ts` | Added dynamic `data-testid` attributes, removed the intermediary `names` object in favor of direct `name` assignments, updated collapse toggle properties (including test ID and `data-icon`), and introduced a `name` property in the tree item interface. |
| `app/client/src/pages/AppIDE/components/AppPluginActionEditor/components/ContextMenuItems/Copy.tsx`, <br>`app/client/src/pages/AppIDE/components/AppPluginActionEditor/components/ContextMenuItems/Move.tsx` | Passed the `disabled` prop to `MenuSubTrigger` enabling it to conditionally render as disabled. |
| `app/client/src/pages/AppIDE/components/JSEntityItem/JSEntityItem.tsx` | Refactored context menu rendering logic with a new `canEdit` variable and updated selection logic, ensuring the menu is not displayed for main JavaScript collections. |
| `app/client/src/pages/AppIDE/components/UIEntityListTree/UIEntityListTree.tsx`, <br>`.../UIEntityListTree/WidgetContextMenu.tsx`, <br>`.../UIEntityListTree/WidgetTreeItem.tsx` | Enhanced widget tree processing by adding a `name` property; refactored widget retrieval to use direct item properties and updated styling via `clsx`. |
| `app/client/src/pages/Editor/JSEditor/AppJSEditorContextMenu.tsx`, <br>`app/client/src/pages/Editor/JSEditor/ContextMenuItems/Copy.tsx`, <br>`app/client/src/pages/Editor/JSEditor/ContextMenuItems/Move.tsx` | Added a conditional early return in the context menu for main JS collections, incorporated a `dataTestId` attribute, and enabled the `disabled` prop on sub-trigger components. |

## Sequence Diagram(s)

```mermaid
sequenceDiagram
    participant User
    participant EditableEntityName
    participant DOM
    participant Tooltip
    User->>EditableEntityName: Enters text
    EditableEntityName->>DOM: Check overflow (isEllipsisActive)
    DOM-->>EditableEntityName: Returns overflow status
    EditableEntityName->>EditableEntityName: useEffect updates showTooltip
    EditableEntityName->>Tooltip: Conditionally render tooltip
```

```mermaid
sequenceDiagram
    participant Editor
    participant AppJSEditorContextMenu
    participant EntityContextMenu
    Editor->>AppJSEditorContextMenu: Request context menu
    AppJSEditorContextMenu->>AppJSEditorContextMenu: Check jsCollection.isMainJSCollection
    alt Is Main Collection
      AppJSEditorContextMenu-->>Editor: Return null (skip rendering)
    else
      AppJSEditorContextMenu->>EntityContextMenu: Render context menu with dataTestId
      EntityContextMenu-->>Editor: Display context menu
    end
```

## Possibly related PRs

- **appsmithorg/appsmith#38524**: The changes in the main PR, which modify the `className` property of the `StyledListItem` component, are related to the changes in the retrieved PR that also involve modifications to the `List.tsx` file, specifically affecting the `ListItem` component's functionality and structure.
- **appsmithorg/appsmith#38987**: The changes in the main PR are related to the changes in the retrieved PR that introduces a new `data-testid` attribute to the same `StyledListItem` component, indicating a direct modification to the same component.
- **appsmithorg/appsmith#38615**: The changes in the main PR are related to the changes in the retrieved PR that also involve the `StyledListItem` in the context of styling modifications, specifically regarding hover interactions and selected states.

## Suggested labels
`Enhancement`

## Suggested reviewers
- ankitakinger
- alex-golovanov

## Poem
> Code refines with thoughtful art,  
> New props shine and set apart.  
> Tooltips bloom when text overflows,  
> Test IDs clear where logic flows.  
> Menus and trees now sing in sync,  
> A code melody more clear than you think!  
> 🚀 Happy refactoring!

<!-- walkthrough_end -->
<!-- internal state start -->


<!-- DwQgtGAEAqAWCWBnSTIEMB26CuAXA9mAOYCmGJATmriQCaQDG+Ats2bgFyQAOFk+AIwBWJBrngA3EsgEBPRvlqU0AgfFwA6NPEgQAfACgjoCEYDEZyAAUASpADK2VmgqyjcEj2wAbb5AokAI7Y0riQ4rjedJAARAyw+AFcAILc3ACSACIAopDkAO6Q2RgR8tkAHtzeiZSMsJikiDGQ+WjIiNgCzOo09HLhsJ7YiLWDuNgYmLTY6Bj0qPBKJfAAZvDR/biDeU4CtQDMAJwArMcA7Bow27zwzC7yK/gMw/wrA6i2KMgEKMxVJGwSpBhrV4CVKCs0AxPPEGtIBtRIIgaMxICsKCx0DwAhJ4PgXtwfH4AsFQgAaJHcUSreAMNC+eRmI4ABkO+0u7m2sIwjRQJQx02h8ywWw+dhcnjBNDm0R+aFotACiGQUzR8HKXw6niZJ2OADZLh4cAQ7uJ8FgRmI8VgwQxvNglCq8vgaHzaL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bLOKT1UHsFEh4g+AmL8MlH0gCZAGkCUfLPqZPObt4QUj+zZVHi5QM5zEz0VW1mvgwonUCXrBGOCEmBHXUYAPzlrPpMSbkW/xCRxQazePCmMVbEYBdvEAjx3VGAfBgGTNVLQ7zMpUoUjq2hggs0ihE1MQLjuOr1PTJVmwShrQBQ/AHX43HFsBG1H5r6cij1nMwMkxy9ktX6XOB2uypnrSJaz8FEOue4X8ZPNT8spnWTH1G5j4if8dKCCfNiu2qpat6s8qiNv8hRT2Ty097eaDL9w77x+O8CehPdCXZeil+QMZrBQKQB9chKBcBTZQDldLxYRQfJkU3yNFAYF+8JJcA61RYItK8S9g6A61Yy2ED2Rw+DkkAAABxnAGAAgQ4LQD1AMB9gJAQ4Hj+ZBk+VgeoXAfKAAAsZwM4HqDx/M/RAKwRn4z4EDMhefZwLn8cFRSGBfvNPgQPsCJ/HBGfJP44AwAABMaAXAeAWOB4+CfXP5kGcH2ACAzgtARn3qBWAMBWQJACXysDODC+cfEACCEoDQBoA5fhwOX2cCl9nBGfCYM4IcAEC0At4cvun3qGZBy/cB+wZn4z7x/E/cBePkgHqHoA/JcfJAPHycCOACA5fcvvH8cH99K/GZ+wPUGgDj8kA+fDAU4HqDl8MBHfPPlYGyAXDR/LfhwYP3qEJ/2+5fxwXAWyEZ/HB9gmfhnysGZCM/cBuAlYLQDl/E+Vgdv44MyFoD1+K/sPi31AAR9I+aU61VHxNloDrUjkwvoAA== -->

<!-- internal state end -->
<!-- finishing_touch_checkbox_start -->

<details>
<summary>✨ Finishing Touches</summary>

- [ ] <!-- {"checkboxId": "7962f53c-55bc-4827-bfbf-6a18da830691"} --> 📝 Generate Docstrings

</details>

<!-- finishing_touch_checkbox_end -->
<!-- tips_start -->

---

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

<details>
<summary>❤️ Share</summary>

- [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai)
- [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai)
- [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai)
- [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)

</details>

<details>
<summary>🪧 Tips</summary>

### Chat

There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=appsmithorg/appsmith&utm_content=39557):

- Review comments: Directly reply to a review comment made by CodeRabbit. Example:
  - `I pushed a fix in commit <commit_id>, please review it.`
  - `Generate unit testing code for this file.`
  - `Open a follow-up GitHub issue for this discussion.`
- Files and specific lines of code (under the "Files changed" tab): Tag `@coderabbitai` in a new review comment at the desired location with your query. Examples:
  - `@coderabbitai generate unit testing code for this file.`
  -	`@coderabbitai modularize this function.`
- PR comments: Tag `@coderabbitai` in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
  - `@coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.`
  - `@coderabbitai read src/utils.ts and generate unit testing code.`
  - `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.`
  - `@coderabbitai help me debug CodeRabbit configuration file.`

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

### CodeRabbit Commands (Invoked using PR comments)

- `@coderabbitai pause` to pause the reviews on a PR.
- `@coderabbitai resume` to resume the paused reviews.
- `@coderabbitai review` to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
- `@coderabbitai full review` to do a full review from scratch and review all the files again.
- `@coderabbitai summary` to regenerate the summary of the PR.
- `@coderabbitai generate docstrings` to [generate docstrings](https://docs.coderabbit.ai/finishing-touches/docstrings) for this PR.
- `@coderabbitai resolve` resolve all the CodeRabbit review comments.
- `@coderabbitai configuration` to show the current CodeRabbit configuration for the repository.
- `@coderabbitai help` to get help.

### Other keywords and placeholders

- Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed.
- Add `@coderabbitai summary` to generate the high-level summary at a specific location in the PR description.
- Add `@coderabbitai` anywhere in the PR title to generate the title automatically.

### Documentation and Community

- Visit our [Documentation](https://docs.coderabbit.ai) for detailed information on how to use CodeRabbit.
- Join our [Discord Community](http://discord.gg/coderabbit) to get help, request features, and share feedback.
- Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.

</details>

<!-- tips_end -->
author_association: CONTRIBUTOR
user: login: ankitakinger
created_at: 2025-03-05T07:08:55Z
body: /build-deploy-preview skip-tests=true
author_association: CONTRIBUTOR
user: login: github-actions[bot]
created_at: 2025-03-05T07:09:16Z
body: Deploying Your Preview: <https://github.com/appsmithorg/appsmith/actions/runs/13670430773>.
Workflow: `On demand build Docker image and deploy preview`.
skip-tests: `true`.
env: ``.
PR: 39557.
recreate: .
author_association: NONE
user: login: github-actions[bot]
created_at: 2025-03-05T07:19:52Z
body: Deploy-Preview-URL: https://ce-39557.dp.appsmith.com
author_association: NONE
user: login: hetunandu
created_at: 2025-03-05T07:44:21Z
body: @ankitakinger Ill look into 
```
app/client/src/pages/AppIDE/components/PageList/PageElement.tsx
app/client/src/pages/AppIDE/components/PageList/PagesSection.tsx
```
and the page list conversion in a different PR
author_association: MEMBER
user: login: ankitakinger
created_at: 2025-03-05T10:26:19Z
body: /build-deploy-preview skip-tests=true
author_association: CONTRIBUTOR
user: login: github-actions[bot]
created_at: 2025-03-05T10:26:48Z
body: Deploying Your Preview: <https://github.com/appsmithorg/appsmith/actions/runs/13673826456>.
Workflow: `On demand build Docker image and deploy preview`.
skip-tests: `true`.
env: ``.
PR: 39557.
recreate: .
author_association: NONE
user: login: github-actions[bot]
created_at: 2025-03-05T10:38:28Z
body: Deploy-Preview-URL: https://ce-39557.dp.appsmith.com
author_association: NONE