From 7d6551f2142f848b11a18f9bffc08126c7bae911 Mon Sep 17 00:00:00 2001 From: Hetu Nandu Date: Mon, 7 Apr 2025 18:14:36 +0530 Subject: [PATCH] chore: Remove JS Visualisation (#40134) ## Description Remove Visualisation tab fro JS Editor ## Summary by CodeRabbit - **Refactor** - Simplified the response view interface by removing the legacy visualizer tab, streamlining the overall user experience. --- .../editorComponents/JSResponseView.tsx | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/app/client/src/components/editorComponents/JSResponseView.tsx b/app/client/src/components/editorComponents/JSResponseView.tsx index 0cc075c35e..80ad5b399d 100644 --- a/app/client/src/components/editorComponents/JSResponseView.tsx +++ b/app/client/src/components/editorComponents/JSResponseView.tsx @@ -42,8 +42,6 @@ import { StateInspector } from "./Debugger/StateInspector"; import { getErrorCount } from "selectors/debuggerSelectors"; import { getIDETypeByUrl } from "ee/entities/IDE/utils"; import { useLocation } from "react-router"; -import { getIsAnvilEnabledInCurrentApplication } from "layoutSystems/anvil/integrations/selectors"; -import { Visualization } from "PluginActionEditor/components/PluginActionResponse/components/Visualization"; const ResponseTabWrapper = styled.div` display: flex; @@ -214,7 +212,6 @@ function JSResponseView(props: Props) { const ideViewMode = useSelector(getIDEViewMode); const location = useLocation(); - const isAnvilEnabled = useSelector(getIsAnvilEnabledInCurrentApplication); const ideType = getIDETypeByUrl(location.pathname); @@ -227,20 +224,6 @@ function JSResponseView(props: Props) { }, ]; - if (isAnvilEnabled) { - responseTabs.push({ - key: DEBUGGER_TAB_KEYS.VISUALIZATION_TAB, - title: "AI Response Visualizer", - panelComponent: currentFunction && ( - - ), - }); - } - const jsTabs: BottomTab[] = [ ...responseTabs, {