Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

fix: export btn overlap issue (#6149)

Akshita Goyalf02a2b04a54d
diff --git a/web/ce/helpers/pi-chat.helper.ts b/web/ce/helpers/pi-chat.helper.ts
new file mode 100644
index 0000000000..5676e9c00e
--- /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 413126c482..bb801616fc 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<Props> = observer((props) => {
const isProjectLevel = projectId ? true : false;
+ useEffect(() => {
+ hideFloatingBot();
+ return () => {
+ showFloatingBot();
+ };
+ }, []);
+
return (
<div className={cn("relative flex h-full w-full overflow-hidden", isProjectLevel ? "flex-col-reverse" : "")}>
<div className="flex h-full w-full flex-col overflow-hidden">