Skip to content

Commit 7d6551f

Browse files
authored
chore: Remove JS Visualisation (#40134)
## Description Remove Visualisation tab fro JS Editor <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Refactor** - Simplified the response view interface by removing the legacy visualizer tab, streamlining the overall user experience. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 65e6ab9 commit 7d6551f

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

app/client/src/components/editorComponents/JSResponseView.tsx

-17
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ import { StateInspector } from "./Debugger/StateInspector";
4242
import { getErrorCount } from "selectors/debuggerSelectors";
4343
import { getIDETypeByUrl } from "ee/entities/IDE/utils";
4444
import { useLocation } from "react-router";
45-
import { getIsAnvilEnabledInCurrentApplication } from "layoutSystems/anvil/integrations/selectors";
46-
import { Visualization } from "PluginActionEditor/components/PluginActionResponse/components/Visualization";
4745

4846
const ResponseTabWrapper = styled.div`
4947
display: flex;
@@ -214,7 +212,6 @@ function JSResponseView(props: Props) {
214212

215213
const ideViewMode = useSelector(getIDEViewMode);
216214
const location = useLocation();
217-
const isAnvilEnabled = useSelector(getIsAnvilEnabledInCurrentApplication);
218215

219216
const ideType = getIDETypeByUrl(location.pathname);
220217

@@ -227,20 +224,6 @@ function JSResponseView(props: Props) {
227224
},
228225
];
229226

230-
if (isAnvilEnabled) {
231-
responseTabs.push({
232-
key: DEBUGGER_TAB_KEYS.VISUALIZATION_TAB,
233-
title: "AI Response Visualizer",
234-
panelComponent: currentFunction && (
235-
<Visualization
236-
entityId={currentFunction.id}
237-
response={response.value}
238-
visualizationElements={currentFunction.visualization?.result}
239-
/>
240-
),
241-
});
242-
}
243-
244227
const jsTabs: BottomTab[] = [
245228
...responseTabs,
246229
{

0 commit comments

Comments
 (0)