feat(editor): Release the Focus Panel (#17734)

This commit is contained in:
Charlie Kolb
2025-07-28 12:10:29 +02:00
committed by GitHub
parent 08c38a76f3
commit a415dbfd96
5 changed files with 4 additions and 33 deletions

View File

@@ -54,7 +54,6 @@ import {
CHAT_TRIGGER_NODE_TYPE,
DRAG_EVENT_DATA_KEY,
EnterpriseEditionFeature,
FOCUS_PANEL_EXPERIMENT,
FROM_AI_PARAMETERS_MODAL_KEY,
MAIN_HEADER_TABS,
MANUAL_CHAT_TRIGGER_NODE_TYPE,
@@ -253,10 +252,6 @@ const { extractWorkflow } = useWorkflowExtraction();
const { applyExecutionData } = useExecutionDebugging();
useClipboard({ onPaste: onClipboardPaste });
const isFocusPanelFeatureEnabled = computed(() => {
return usePostHog().getVariant(FOCUS_PANEL_EXPERIMENT.name) === FOCUS_PANEL_EXPERIMENT.variant;
});
const isLoading = ref(true);
const isBlankRedirect = ref(false);
const readOnlyNotification = ref<null | { visible: boolean }>(null);
@@ -1228,10 +1223,6 @@ function onOpenNodeCreatorForTriggerNodes(source: NodeCreatorOpenSource) {
}
function onToggleFocusPanel() {
if (!isFocusPanelFeatureEnabled.value) {
return;
}
focusPanelStore.toggleFocusPanel();
telemetry.track(`User ${focusPanelStore.focusPanelActive ? 'opened' : 'closed'} focus panel`, {
source: 'canvasKeyboardShortcut',
@@ -2172,7 +2163,7 @@ onBeforeUnmount(() => {
</Suspense>
</WorkflowCanvas>
<FocusPanel
v-if="isFocusPanelFeatureEnabled && !isLoading"
v-if="!isLoading"
:is-canvas-read-only="isCanvasReadOnly"
@save-keyboard-shortcut="onSaveWorkflow"
/>