| 1 |
import { designWorkflows } from '@agent/follow-ups/design-workflows'; |
| 2 |
import { __ } from '@wordpress/i18n'; |
| 3 |
|
| 4 |
export default { |
| 5 |
id: 'change-site-icon', |
| 6 |
follows: designWorkflows, |
| 7 |
order: 6, |
| 8 |
// translators: Title of a card in the AI Agent chat, suggesting the user set the small icon browsers show for their website. |
| 9 |
title: __('Set a browser icon', 'extendify-local'), |
| 10 |
// translators: Body of a card in the AI Agent chat about the website's browser icon (favicon). |
| 11 |
body: __( |
| 12 |
'The small icon in browser tabs and bookmarks helps people spot your site.', |
| 13 |
'extendify-local', |
| 14 |
), |
| 15 |
action: { |
| 16 |
// translators: Button on a card in the AI Agent chat that opens a tool to upload the website's browser icon. |
| 17 |
label: __('Change icon', 'extendify-local'), |
| 18 |
workflowId: 'update-site-icon', |
| 19 |
}, |
| 20 |
score: ({ abilities }) => |
| 21 |
abilities?.canEditSettings && abilities?.canUploadMedia ? 2 : 0, |
| 22 |
}; |
| 23 |
|