From b04da38c0f4d1075ec94dac023ab9df190ad528c Mon Sep 17 00:00:00 2001 From: Christian Gastrell Date: Fri, 6 Dec 2024 17:46:53 -0300 Subject: [PATCH] Jetpack AI: change image modals placeholders (#40504) * cleanup * change placeholders on image generation modals --- .../changelog/change-jetpack-ai-image=modals-placeholders | 4 ++++ .../components/ai-image/components/ai-image-modal.tsx | 2 -- .../components/ai-image/featured-image.tsx | 2 +- .../components/ai-image/general-purpose-image.tsx | 5 ++++- 4 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 projects/plugins/jetpack/changelog/change-jetpack-ai-image=modals-placeholders diff --git a/projects/plugins/jetpack/changelog/change-jetpack-ai-image=modals-placeholders b/projects/plugins/jetpack/changelog/change-jetpack-ai-image=modals-placeholders new file mode 100644 index 0000000000000..1d3aafc29ef79 --- /dev/null +++ b/projects/plugins/jetpack/changelog/change-jetpack-ai-image=modals-placeholders @@ -0,0 +1,4 @@ +Significance: patch +Type: other + +Jetpack AI: change placeholders on image generation modals to try and improve styles discoverability diff --git a/projects/plugins/jetpack/extensions/plugins/ai-assistant-plugin/components/ai-image/components/ai-image-modal.tsx b/projects/plugins/jetpack/extensions/plugins/ai-assistant-plugin/components/ai-image/components/ai-image-modal.tsx index d21edfb628cf0..ea6256a9a7bc7 100644 --- a/projects/plugins/jetpack/extensions/plugins/ai-assistant-plugin/components/ai-image/components/ai-image-modal.tsx +++ b/projects/plugins/jetpack/extensions/plugins/ai-assistant-plugin/components/ai-image/components/ai-image-modal.tsx @@ -182,8 +182,6 @@ export default function AiImageModal( { value={ style } options={ styles } onChange={ updateStyle } - // TODO: disable when necessary - // disabled={ isBusy || requireUpgrade } /> diff --git a/projects/plugins/jetpack/extensions/plugins/ai-assistant-plugin/components/ai-image/featured-image.tsx b/projects/plugins/jetpack/extensions/plugins/ai-assistant-plugin/components/ai-image/featured-image.tsx index 2bd9bcc8a1c71..c132f83211bc2 100644 --- a/projects/plugins/jetpack/extensions/plugins/ai-assistant-plugin/components/ai-image/featured-image.tsx +++ b/projects/plugins/jetpack/extensions/plugins/ai-assistant-plugin/components/ai-image/featured-image.tsx @@ -409,7 +409,7 @@ export default function FeaturedImage( { acceptButton={ acceptButton } generateButtonLabel={ pointer?.current > 0 ? generateAgainText : generateText } instructionsPlaceholder={ __( - "Describe the image you'd like to create, or have the prompt written for you if you've added content to your post.", + "Describe the featured image you'd like to create and select a style.", 'jetpack' ) } imageStyles={ imageStyles } diff --git a/projects/plugins/jetpack/extensions/plugins/ai-assistant-plugin/components/ai-image/general-purpose-image.tsx b/projects/plugins/jetpack/extensions/plugins/ai-assistant-plugin/components/ai-image/general-purpose-image.tsx index 1326ca96a31a9..9d87cb99064e4 100644 --- a/projects/plugins/jetpack/extensions/plugins/ai-assistant-plugin/components/ai-image/general-purpose-image.tsx +++ b/projects/plugins/jetpack/extensions/plugins/ai-assistant-plugin/components/ai-image/general-purpose-image.tsx @@ -278,7 +278,10 @@ export default function GeneralPurposeImage( { handleNextImage={ handleNextImage } acceptButton={ acceptButton } generateButtonLabel={ pointer?.current > 0 ? generateAgainText : generateText } - instructionsPlaceholder={ __( "Describe the image you'd like to create.", 'jetpack' ) } + instructionsPlaceholder={ __( + "Describe the image you'd like to create and select a style.", + 'jetpack' + ) } imageStyles={ imageStyles } onGuessStyle={ guessStyle } prompt={ prompt }