mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
feat(editor): Ready to run workflows experiment (no-changelog) (#17946)
This commit is contained in:
@@ -138,6 +138,7 @@ import { canvasEventBus } from '@/event-bus/canvas';
|
||||
import CanvasChatButton from '@/components/canvas/elements/buttons/CanvasChatButton.vue';
|
||||
import { useFocusPanelStore } from '@/stores/focusPanel.store';
|
||||
import { useAITemplatesStarterCollectionStore } from '@/experiments/aiTemplatesStarterCollection/stores/aiTemplatesStarterCollection.store';
|
||||
import { useReadyToRunWorkflowsStore } from '@/experiments/readyToRunWorkflows/stores/readyToRunWorkflows.store';
|
||||
|
||||
defineOptions({
|
||||
name: 'NodeView',
|
||||
@@ -199,6 +200,7 @@ const posthogStore = usePostHog();
|
||||
const agentRequestStore = useAgentRequestStore();
|
||||
const logsStore = useLogsStore();
|
||||
const aiTemplatesStarterCollectionStore = useAITemplatesStarterCollectionStore();
|
||||
const readyToRunWorkflowsStore = useReadyToRunWorkflowsStore();
|
||||
|
||||
const { addBeforeUnloadEventBindings, removeBeforeUnloadEventBindings } = useBeforeUnload({
|
||||
route,
|
||||
@@ -505,6 +507,12 @@ async function initializeWorkspaceForExistingWorkflow(id: string) {
|
||||
);
|
||||
}
|
||||
|
||||
if (workflowData.meta?.templateId?.startsWith('37_onboarding_experiments_batch_aug11')) {
|
||||
readyToRunWorkflowsStore.trackOpenWorkflow(
|
||||
workflowData.meta.templateId.split('-').pop() ?? '',
|
||||
);
|
||||
}
|
||||
|
||||
await projectsStore.setProjectNavActiveIdByWorkflowHomeProject(workflowData.homeProject);
|
||||
} catch (error) {
|
||||
if (error.httpStatusCode === 404) {
|
||||
|
||||
Reference in New Issue
Block a user