PluginProbe
Extendify / 3.2.1
Extendify v3.2.1
3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 All 127 releases
← All changes | src/Agent/state/workflows.js +0 -22 3.2.03.2.1 View file →
@@ -1,9 +1,6 @@
1 1 import { isAbilityWorkflow } from '@agent/lib/abilities';
2 -import { isChangeSiteDesignWorkflowAvailable } from '@agent/lib/util';
3 2 import { AbilityRun } from '@agent/workflows/abilities/components/run';
4 -import changeSiteDesignWorkflow from '@agent/workflows/theme/change-site-design';
5 -import variationsWorkflow from '@agent/workflows/theme/change-theme-variation';
6 3 import { abilityWorkflows, workflows } from '@agent/workflows/workflows';
7 4 import { useQuickEditStore } from '@quick-edit/state/store';
8 5 import { deepMerge } from '@shared/lib/utils';
9 6 import { create } from 'zustand';
@@ -8,16 +5,8 @@
8 5 import { deepMerge } from '@shared/lib/utils';
9 6 import { create } from 'zustand';
10 7 import { devtools, persist } from 'zustand/middleware';
11 8
12 -const agentResponse = isChangeSiteDesignWorkflowAvailable()
13 - ? changeSiteDesignWorkflow.example?.agentResponse
14 - : variationsWorkflow.example?.agentResponse;
15 -const onboardingToolProps = {
16 - ...agentResponse.whenFinishedTool,
17 - agentResponse,
18 -};
19 -
20 9 // Used to check case-insensitive matches for workflow examples
21 10 const collator = new Intl.Collator(undefined, {
22 11 sensitivity: 'base',
23 12 usage: 'search',
@@ -123,19 +112,8 @@
123 112 export const useWorkflowStore = create()(
124 113 persist(devtools(state, { name: 'Extendify Agent Workflows' }), {
125 114 name: `extendify-agent-workflows-${window.extSharedData.siteId}`,
126 115 merge: (persistedState, currentState) => {
127 - // if we are in onboarding mode, add the starting workflow
128 - if (window.extAgentData?.startOnboarding) {
129 - return {
130 - ...currentState,
131 - ...persistedState,
132 - workflow: isChangeSiteDesignWorkflowAvailable()
133 - ? changeSiteDesignWorkflow
134 - : variationsWorkflow,
135 - whenFinishedToolProps: onboardingToolProps,
136 - };
137 - }
138 116 const merged = { ...currentState, ...persistedState };
139 117 // A reload can't carry the staged block a block-patching workflow
140 118 // depends on, so a rehydrated-open one is always stale. A canvas
141 119 // session is stale too: its field values never persist.