Skip to content

Commit

Permalink
AI Assistant: Release Breve to production (#38697)
Browse files Browse the repository at this point in the history
* release Breve for all sites

* changelog
  • Loading branch information
dhasilva authored Aug 2, 2024
1 parent cf8f04f commit a105a21
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: enhancement

AI Assistant: Release Breve to production
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ function () {
add_action(
'jetpack_register_gutenberg_extensions',
function () {
if ( apply_filters( 'jetpack_ai_enabled', true ) && apply_filters( 'breve_enabled', false ) ) {
if ( apply_filters( 'jetpack_ai_enabled', true ) && apply_filters( 'breve_enabled', true ) ) {
\Jetpack_Gutenberg::set_extension_available( 'ai-proofread-breve' );
}
}
Expand Down
4 changes: 2 additions & 2 deletions projects/plugins/jetpack/extensions/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
"ai-title-optimization",
"ai-assistant-experimental-image-generation-support",
"ai-general-purpose-image-generator",
"ai-proofread-breve",
"ai-assistant-site-logo-support"
],
"beta": [
Expand All @@ -78,8 +79,7 @@
"v6-video-frame-poster",
"videopress/video-chapters",
"ai-assistant-backend-prompts",
"ai-assistant-extensions-support",
"ai-proofread-breve"
"ai-assistant-extensions-support"
],
"experimental": [ "ai-image", "ai-paragraph" ],
"no-post-editor": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import { getFeatureAvailability } from '../../../../../blocks/ai-assistant/lib/utils/get-feature-availability';

const blogId = parseInt( window?.Jetpack_Editor_Initial_State?.wpcomBlogId );

// Enable backend prompts for beta sites + 50% of production sites.
const isBreveAvailable =
getFeatureAvailability( 'ai-proofread-breve' ) || [ 0, 2, 6, 7, 9 ].includes( blogId % 10 );
const isBreveAvailable = getFeatureAvailability( 'ai-proofread-breve' );

export default isBreveAvailable;

0 comments on commit a105a21

Please sign in to comment.