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
extendify / src / Agent / workflows / misc / start-onboarding.js

start-onboarding.js in Extendify 3.2.1, at src/Agent/workflows/misc/start-onboarding.js

27 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 // Onboarding extends this file. Giving it a whenFinished component of its own
2 // is what a step beyond change-site-design's design picker would hang off.
3 import changeSiteDesignWorkflow from '@agent/workflows/theme/change-site-design';
4 import { __ } from '@wordpress/i18n';
5
6 export default {
7 ...changeSiteDesignWorkflow,
8 id: 'start-onboarding',
9 // Launch clears the chat, so an empty one means nobody has been greeted yet.
10 available: () =>
11 !window.extAgentData?.chatHistory?.length &&
12 changeSiteDesignWorkflow.available(),
13 example: {
14 ...changeSiteDesignWorkflow.example,
15 // Sent hidden, so it never renders and never needs translating.
16 text: 'Start onboarding',
17 agentResponse: {
18 ...changeSiteDesignWorkflow.example.agentResponse,
19 // translators: this is the initial message in the agent chat, welcoming the user. Keep it short and friendly and follow the same markdown format and emoji.
20 reply: __(
21 '#### Your site is ready 🎉\nWant to explore other website designs?',
22 'extendify-local',
23 ),
24 },
25 },
26 };
27