PluginProbe
Extendify / 3.2.2
Extendify v3.2.2
3.2.2 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 All 128 releases
extendify / src / Agent / follow-ups / cards / change-theme-colors.js

change-theme-colors.js in Extendify 3.2.2, at src/Agent/follow-ups/cards/change-theme-colors.js

27 lines 952 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { designWorkflows } from '@agent/follow-ups/design-workflows';
2 import { __ } from '@wordpress/i18n';
3
4 export default {
5 id: 'change-theme-colors',
6 follows: designWorkflows,
7 order: 2,
8 // translators: Title of a card in the AI Agent chat, suggesting the user try a different color palette for their website.
9 title: __('Try a new color palette', 'extendify-local'),
10 // translators: Body of a card in the AI Agent chat that suggests changing the website colors.
11 body: __(
12 'Your design comes with color palettes to choose from. Pick one that fits your brand.',
13 'extendify-local',
14 ),
15 action: {
16 // translators: Button on a card in the AI Agent chat that opens a picker for the website's color palette.
17 label: __('Change colors', 'extendify-local'),
18 workflowId: 'change-theme-variation',
19 },
20 score: ({ context, abilities }) =>
21 abilities?.canEditThemes &&
22 context?.hasThemeVariations &&
23 Number(context?.postId)
24 ? 2
25 : 0,
26 };
27