| 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 |
|