Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Remove JS Visualisation #40134

Merged
merged 1 commit into from
Apr 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions app/client/src/components/editorComponents/JSResponseView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -214,7 +212,6 @@ function JSResponseView(props: Props) {

const ideViewMode = useSelector(getIDEViewMode);
const location = useLocation();
const isAnvilEnabled = useSelector(getIsAnvilEnabledInCurrentApplication);

const ideType = getIDETypeByUrl(location.pathname);

Expand All @@ -227,20 +224,6 @@ function JSResponseView(props: Props) {
},
];

if (isAnvilEnabled) {
responseTabs.push({
key: DEBUGGER_TAB_KEYS.VISUALIZATION_TAB,
title: "AI Response Visualizer",
panelComponent: currentFunction && (
<Visualization
entityId={currentFunction.id}
response={response.value}
visualizationElements={currentFunction.visualization?.result}
/>
),
});
}

const jsTabs: BottomTab[] = [
...responseTabs,
{
Expand Down
Loading