diff --git a/app/client/packages/design-system/ads/src/Icon/Icon.provider.tsx b/app/client/packages/design-system/ads/src/Icon/Icon.provider.tsx
index c5a96deafc..e9c1d2c389 100644
--- a/app/client/packages/design-system/ads/src/Icon/Icon.provider.tsx
+++ b/app/client/packages/design-system/ads/src/Icon/Icon.provider.tsx
@@ -1209,6 +1209,10 @@ const SparklingFilledIcon = importSvg(
async () => import("../__assets__/icons/ads/sparkling-filled.svg"),
);
+const AIChatIcon = importSvg(
+ async () => import("../__assets__/icons/ads/ai-chat.svg"),
+);
+
import PlayIconPNG from "../__assets__/icons/control/play-icon.png";
function PlayIconPNGWrapper() {
@@ -1229,6 +1233,7 @@ const ICON_LOOKUP = {
"add-line": AddLineIcon,
"add-more": AddMoreIcon,
"add-more-fill": AddMoreFillIcon,
+ "ai-chat": AIChatIcon,
"arrow-go-forward": ArrowGoForwardLineIcon,
"alert-fill": AlertFillIcon,
"alert-line": AlertLineIcon,
diff --git a/app/client/packages/design-system/ads/src/__assets__/icons/ads/ai-chat.svg b/app/client/packages/design-system/ads/src/__assets__/icons/ads/ai-chat.svg
new file mode 100644
index 0000000000..229dd24610
--- /dev/null
+++ b/app/client/packages/design-system/ads/src/__assets__/icons/ads/ai-chat.svg
@@ -0,0 +1,3 @@
+
diff --git a/app/client/src/ce/components/BottomBar/AIAgentSupportTrigger.tsx b/app/client/src/ce/components/BottomBar/AIAgentSupportTrigger.tsx
new file mode 100644
index 0000000000..3bfa971790
--- /dev/null
+++ b/app/client/src/ce/components/BottomBar/AIAgentSupportTrigger.tsx
@@ -0,0 +1,3 @@
+export function AIAgentSupportTrigger() {
+ return null;
+}
diff --git a/app/client/src/components/BottomBar/index.tsx b/app/client/src/components/BottomBar/index.tsx
index 1b7ad839d8..c689223324 100644
--- a/app/client/src/components/BottomBar/index.tsx
+++ b/app/client/src/components/BottomBar/index.tsx
@@ -18,6 +18,7 @@ import PackageUpgradeStatus from "ee/components/BottomBar/PackageUpgradeStatus";
import OldGitQuickActions from "pages/Editor/gitSync/QuickGitActions";
import { GitQuickActions } from "git";
import { useGitModEnabled } from "pages/Editor/gitSync/hooks/modHooks";
+import { AIAgentSupportTrigger } from "ee/components/BottomBar/AIAgentSupportTrigger";
function GitActions() {
const isGitModEnabled = useGitModEnabled();
@@ -65,6 +66,7 @@ export default function BottomBar() {
startIcon="upgrade"
/>
+
diff --git a/app/client/src/ee/components/BottomBar/AIAgentSupportTrigger.tsx b/app/client/src/ee/components/BottomBar/AIAgentSupportTrigger.tsx
new file mode 100644
index 0000000000..981af3faa4
--- /dev/null
+++ b/app/client/src/ee/components/BottomBar/AIAgentSupportTrigger.tsx
@@ -0,0 +1 @@
+export * from "ce/components/BottomBar/AIAgentSupportTrigger";
diff --git a/app/client/src/pages/Editor/EditorName/useNavigationMenuData.ts b/app/client/src/pages/Editor/EditorName/useNavigationMenuData.ts
index 829ae0d238..f1dd26545e 100644
--- a/app/client/src/pages/Editor/EditorName/useNavigationMenuData.ts
+++ b/app/client/src/pages/Editor/EditorName/useNavigationMenuData.ts
@@ -24,7 +24,6 @@ import { toast } from "@appsmith/ads";
import { DOCS_BASE_URL } from "constants/ThirdPartyConstants";
import { getAppsmithConfigs } from "ee/configs";
import { getCurrentUser } from "selectors/usersSelectors";
-import { toggleAISupportModal } from "ee/actions/aiAgentActions";
import { getIsAiAgentFlowEnabled } from "ee/selectors/aiAgentSelectors";
const { cloudHosting, intercomAppID } = getAppsmithConfigs();
@@ -164,7 +163,7 @@ export const useNavigationMenuData = ({
"https://github.com/appsmithorg/appsmith/issues/new/choose",
),
type: MenuTypes.MENU,
- isVisible: true,
+ isVisible: !isAiAgentFlowEnabled,
startIcon: "bug-line",
},
{
@@ -178,15 +177,6 @@ export const useNavigationMenuData = ({
type: MenuTypes.MENU,
isVisible: intercomAppID && window.Intercom,
},
- {
- startIcon: "chat-help",
- text: "Chat with us",
- onClick: () => {
- dispatch(toggleAISupportModal());
- },
- type: MenuTypes.MENU,
- isVisible: isAiAgentFlowEnabled,
- },
],
},
].filter(Boolean) as MenuItemData[],
diff --git a/app/client/src/pages/Editor/HelpButton.tsx b/app/client/src/pages/Editor/HelpButton.tsx
index 2af10c1aff..0aa475db70 100644
--- a/app/client/src/pages/Editor/HelpButton.tsx
+++ b/app/client/src/pages/Editor/HelpButton.tsx
@@ -39,7 +39,6 @@ import { getInstanceId } from "ee/selectors/organizationSelectors";
import { updateIntercomConsent, updateUserDetails } from "actions/userActions";
import { getIsAiAgentFlowEnabled } from "ee/selectors/aiAgentSelectors";
import { DOCS_AI_BASE_URL } from "constants/ThirdPartyConstants";
-import { toggleAISupportModal } from "ee/actions/aiAgentActions";
const { appVersion, cloudHosting, intercomAppID } = getAppsmithConfigs();
@@ -202,17 +201,10 @@ function HelpButton() {
docItem.link = DOCS_AI_BASE_URL;
}
- const chatItem = HELP_MENU_ITEMS.find(
- (item) => item.id === "ai-support-trigger",
+ HELP_MENU_ITEMS.splice(
+ HELP_MENU_ITEMS.findIndex((item) => item.label === "Report a bug"),
+ 1,
);
-
- if (!chatItem) {
- HELP_MENU_ITEMS.push({
- icon: "chat-help",
- label: "Chat with us",
- id: "ai-support-trigger",
- });
- }
}
useEffect(() => {
@@ -301,10 +293,6 @@ function HelpButton() {
}
}
}
-
- if (item.id === "ai-support-trigger") {
- dispatch(toggleAISupportModal());
- }
}}
startIcon={item.icon}
>