-
Notifications
You must be signed in to change notification settings - Fork 801
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Jetpack AI: introduce seo extension availability (#40744)
* introduce new ai-seo-assistant feature availability on beta * show SEO Assistant CTA button on sidebar. Position and copy edits are temprary as they still don't do anything. Use conditional class is-beta-extension for visibility * make is-beta-extension CSS class look better * changelog
- Loading branch information
Showing
6 changed files
with
60 additions
and
4 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
projects/plugins/jetpack/changelog/add-jetpack-ai-introduce-seo-extension-availability
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: minor | ||
Type: other | ||
|
||
Jetpack AI: introduce new beta feature ai-seo-assistant |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...plugins/jetpack/extensions/plugins/ai-assistant-plugin/components/seo-assistant/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { Button } from '@wordpress/components'; | ||
import { __ } from '@wordpress/i18n'; | ||
import debugFactory from 'debug'; | ||
|
||
const debug = debugFactory( 'jetpack-ai:seo-assistant' ); | ||
|
||
export default function SeoAssistant( { busy, disabled } ) { | ||
return ( | ||
<div> | ||
<p>{ __( 'Improve post engagement.', 'jetpack' ) }</p> | ||
<Button | ||
onClick={ () => debug( 'click' ) } | ||
variant="secondary" | ||
disabled={ disabled } | ||
isBusy={ busy } | ||
> | ||
{ __( 'SEO Assistant', 'jetpack' ) } | ||
</Button> | ||
</div> | ||
); | ||
} |