diff --git a/web/ce/helpers/pi-chat.helper.ts b/web/ce/helpers/pi-chat.helper.ts new file mode 100644 index 00000000000..5676e9c00e6 --- /dev/null +++ b/web/ce/helpers/pi-chat.helper.ts @@ -0,0 +1,3 @@ +export const hideFloatingBot = () => {}; + +export const showFloatingBot = () => {}; diff --git a/web/core/components/analytics/custom-analytics/custom-analytics.tsx b/web/core/components/analytics/custom-analytics/custom-analytics.tsx index 413126c482b..bb801616fcb 100644 --- a/web/core/components/analytics/custom-analytics/custom-analytics.tsx +++ b/web/core/components/analytics/custom-analytics/custom-analytics.tsx @@ -1,3 +1,4 @@ +import { useEffect } from "react"; import { observer } from "mobx-react"; import { useParams } from "next/navigation"; import { useForm } from "react-hook-form"; @@ -11,6 +12,7 @@ import { CustomAnalyticsSelectBar, CustomAnalyticsMainContent, CustomAnalyticsSi import { ANALYTICS } from "@/constants/fetch-keys"; import { cn } from "@/helpers/common.helper"; import { useAppTheme } from "@/hooks/store"; +import { hideFloatingBot, showFloatingBot } from "@/plane-web/helpers/pi-chat.helper"; import { AnalyticsService } from "@/services/analytics.service"; type Props = { @@ -51,6 +53,13 @@ export const CustomAnalytics: React.FC = observer((props) => { const isProjectLevel = projectId ? true : false; + useEffect(() => { + hideFloatingBot(); + return () => { + showFloatingBot(); + }; + }, []); + return (