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 -->
This commit is contained in:
parent
65e6ab9dc7
commit
7d6551f214
|
|
@ -42,8 +42,6 @@ import { StateInspector } from "./Debugger/StateInspector";
|
||||||
import { getErrorCount } from "selectors/debuggerSelectors";
|
import { getErrorCount } from "selectors/debuggerSelectors";
|
||||||
import { getIDETypeByUrl } from "ee/entities/IDE/utils";
|
import { getIDETypeByUrl } from "ee/entities/IDE/utils";
|
||||||
import { useLocation } from "react-router";
|
import { useLocation } from "react-router";
|
||||||
import { getIsAnvilEnabledInCurrentApplication } from "layoutSystems/anvil/integrations/selectors";
|
|
||||||
import { Visualization } from "PluginActionEditor/components/PluginActionResponse/components/Visualization";
|
|
||||||
|
|
||||||
const ResponseTabWrapper = styled.div`
|
const ResponseTabWrapper = styled.div`
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
@ -214,7 +212,6 @@ function JSResponseView(props: Props) {
|
||||||
|
|
||||||
const ideViewMode = useSelector(getIDEViewMode);
|
const ideViewMode = useSelector(getIDEViewMode);
|
||||||
const location = useLocation();
|
const location = useLocation();
|
||||||
const isAnvilEnabled = useSelector(getIsAnvilEnabledInCurrentApplication);
|
|
||||||
|
|
||||||
const ideType = getIDETypeByUrl(location.pathname);
|
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 && (
|
|
||||||
<Visualization
|
|
||||||
entityId={currentFunction.id}
|
|
||||||
response={response.value}
|
|
||||||
visualizationElements={currentFunction.visualization?.result}
|
|
||||||
/>
|
|
||||||
),
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
const jsTabs: BottomTab[] = [
|
const jsTabs: BottomTab[] = [
|
||||||
...responseTabs,
|
...responseTabs,
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user