Repository navigation
[Jetpack AI] Easier enabling for testing, forums link #28338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
cf8ae91
0ba93f1
5d5c46d
9978b24
143ccda
b271b73
91b43a5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| Significance: minor | ||
| Type: enhancement | ||
|
|
||
| AI Features now have a link to the Forums thread to gather feedback, different icon and simplified way of enabling for testing |
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -1,4 +1,5 @@ | ||||
| import { useBlockProps } from '@wordpress/block-editor'; | ||||
| import { getRedirectUrl } from '@automattic/jetpack-components'; | ||||
| import { ExternalLink } from '@wordpress/components'; | ||||
| import { Fragment } from '@wordpress/element'; | ||||
| import { __, _x } from '@wordpress/i18n'; | ||||
| import { getIconColor } from '../../shared/block-icons'; | ||||
|
|
@@ -19,21 +20,32 @@ export const settings = { | |||
| <Fragment> | ||||
| <p> | ||||
| { __( | ||||
| 'Automatically generate an illustration for your post, powered by AI magic. We are experimenting with this feature and can tweak or remove it at any point.', | ||||
| 'Automatically generate an illustration for your post, powered by AI magic.', | ||||
| 'jetpack' | ||||
| ) } | ||||
| </p> | ||||
| <p> | ||||
| { __( | ||||
| 'We are experimenting with this feature and can tweak or remove it at any point.', | ||||
| 'jetpack' | ||||
| ) } | ||||
| </p> | ||||
| <ExternalLink href={ getRedirectUrl( 'jetpack_ai_feedback' ) }> | ||||
| { __( 'Share your feedback.', 'jetpack' ) } | ||||
| </ExternalLink> | ||||
| </Fragment> | ||||
| ), | ||||
| icon: { | ||||
| src: 'welcome-write-blog', | ||||
| src: 'superhero', | ||||
| foreground: getIconColor(), | ||||
| }, | ||||
| category: 'media', | ||||
| keywords: [ | ||||
| _x( 'AI', 'block search term', 'jetpack' ), | ||||
| _x( 'AL', 'block search term', 'jetpack' ), | ||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This may be a stupid question, but does "AL" stand for? Should we add more info in the context? I assume I won't be the only one who doesn't know :)
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I will post @jobthomas feedback that led to this:
If you think this is harmful, I can remove this change :) |
||||
| _x( 'DALLe', 'block search term', 'jetpack' ), | ||||
| _x( 'Diffusion', 'block search term', 'jetpack' ), | ||||
| _x( 'Magic', 'block search term', 'jetpack' ), | ||||
| ], | ||||
| supports: { | ||||
| // Support for block's alignment (left, center, right, wide, full). When true, it adds block controls to change block’s alignment. | ||||
|
|
@@ -59,10 +71,7 @@ export const settings = { | |||
| }, | ||||
| edit, | ||||
| /* @TODO Write the block editor output */ | ||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't want to lose @jeherve approval and really want to merge it because testing is pain. Can you remove that line in your PR? |
||||
| save: args => { | ||||
| const blockProps = useBlockProps.save(); | ||||
| return <div { ...blockProps }>{ args.attributes.content }</div>; | ||||
| }, | ||||
| save: () => '', | ||||
| attributes, | ||||
| example: { | ||||
| attributes: { | ||||
|
|
||||
Uh oh!
There was an error while loading. Please reload this page.