Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🐛 fix: remove desktop tracker legacy imports (#13993)

Tsukibacf42289011
diff --git a/src/routes/(main)/agent/index.desktop.test.tsx b/src/routes/(main)/agent/index.desktop.test.tsx
index e00e14f0b1e..5d3bd32060c 100644
--- a/src/routes/(main)/agent/index.desktop.test.tsx
+++ b/src/routes/(main)/agent/index.desktop.test.tsx
@@ -42,10 +42,6 @@ vi.mock('@lobehub/ui', () => ({
ShikiLobeTheme: {},
}));
-vi.mock('@/components/Analytics/MainInterfaceTracker', () => ({
- default: () => <div data-testid="main-interface-tracker" />,
-}));
-
vi.mock('@/features/TopicPopupGuard', () => ({
default: () => <div data-testid="topic-popup-guard" />,
}));
diff --git a/src/routes/(main)/agent/index.desktop.tsx b/src/routes/(main)/agent/index.desktop.tsx
index 9e16e97e775..26d5143c5a3 100644
--- a/src/routes/(main)/agent/index.desktop.tsx
+++ b/src/routes/(main)/agent/index.desktop.tsx
@@ -3,7 +3,6 @@
import { Flexbox } from '@lobehub/ui';
import { memo } from 'react';
-import MainInterfaceTracker from '@/components/Analytics/MainInterfaceTracker';
import TopicInPopupGuard from '@/features/TopicPopupGuard';
import { useTopicInPopup } from '@/features/TopicPopupGuard/useTopicPopupsRegistry';
import { useChatStore } from '@/store/chat';
@@ -49,7 +48,6 @@ const ChatPage = memo(() => {
<Portal />
<AgentWorkingSidebar />
</Flexbox>
- <MainInterfaceTracker />
<TelemetryNotification mobile={false} />
</>
);
diff --git a/src/routes/(main)/group/index.desktop.tsx b/src/routes/(main)/group/index.desktop.tsx
index 6e59a438d85..8ac28a9b5b9 100644
--- a/src/routes/(main)/group/index.desktop.tsx
+++ b/src/routes/(main)/group/index.desktop.tsx
@@ -3,7 +3,6 @@
import { Flexbox } from '@lobehub/ui';
import { memo } from 'react';
-import MainInterfaceTracker from '@/components/Analytics/MainInterfaceTracker';
import TopicInPopupGuard from '@/features/TopicPopupGuard';
import { useTopicInPopup } from '@/features/TopicPopupGuard/useTopicPopupsRegistry';
import { useChatStore } from '@/store/chat';
@@ -44,7 +43,6 @@ const ChatPage = memo(() => {
<Conversation />
<Portal />
</Flexbox>
- <MainInterfaceTracker />
<TelemetryNotification mobile={false} />
</>
);