diff --git a/assets/src/Components/ImportModal.js b/assets/src/Components/ImportModal.js index adcb97a7..2ccb0aef 100644 --- a/assets/src/Components/ImportModal.js +++ b/assets/src/Components/ImportModal.js @@ -53,7 +53,6 @@ const ImportModal = ( { widgets: true, cleanup: false, performanceAddon: true, - hyveLite: true, theme_install: themeData !== false, } ); const site = tiobDash.onboarding.homeUrl || ''; @@ -62,7 +61,6 @@ const ImportModal = ( { const [ performanceAddonProgress, setPerformanceAddonProgress ] = useState( false ); - const [ hyveLiteProgress, setHyveLiteProgress ] = useState( false ); const [ cleanupProgress, setCleanupProgress ] = useState( false ); const [ pluginsProgress, setPluginsProgress ] = useState( false ); const [ contentProgress, setContentProgress ] = useState( false ); @@ -261,44 +259,6 @@ const ImportModal = ( { } ), }, - hyveLite: { - title: __( 'AI Chatbot', 'templates-patterns-collection' ), - icon: 'admin-comments', - tooltip: createInterpolateElement( - sprintf( - // translators: %s is Hyve plugin name. - __( - 'Hyve is an AI-powered chatbot that transforms your WordPress content into engaging conversations. %sHyve%s', - 'templates-patterns-collection' - ), - '', - '' - ), - { - a: ( - // eslint-disable-next-line jsx-a11y/anchor-has-content - - ), - icon: ( - - ), - span:
, - } - ), - }, }; if ( isCleanupAllowed === 'yes' ) { @@ -546,8 +506,7 @@ const ImportModal = ( { // console.clear(); if ( ! pluginOptions && - ! general.performanceAddon && - ! general.hyveLite + ! general.performanceAddon ) { console.log( '[S] Plugins.' ); runImportContent(); @@ -656,7 +615,7 @@ const ImportModal = ( { function runPerformanceAddonInstall() { if ( ! general.performanceAddon ) { console.log( '[S] Performance Addon.' ); - runHyveLiteInstall(); + importDone(); return false; } setCurrentStep( 'performanceAddon' ); @@ -670,34 +629,10 @@ const ImportModal = ( { } console.log( '[D] Performance Addon.' ); setPerformanceAddonProgress( 'done' ); - runHyveLiteInstall(); - } ) - .catch( ( incomingError ) => - handleError( incomingError, 'performanceAddon' ) - ); - } - - function runHyveLiteInstall() { - if ( ! general.hyveLite ) { - console.log( '[S] Hyve Lite.' ); - importDone(); - return false; - } - setCurrentStep( 'hyveLite' ); - console.log( '[P] Hyve Lite.' ); - - installPlugins( { 'hyve-lite': true } ) - .then( ( response ) => { - if ( ! response.success ) { - handleError( response, 'hyveLite' ); - return false; - } - console.log( '[D] Hyve Lite.' ); - setHyveLiteProgress( 'done' ); importDone(); } ) .catch( ( incomingError ) => - handleError( incomingError, 'hyveLite' ) + handleError( incomingError, 'performanceAddon' ) ); } @@ -749,10 +684,6 @@ const ImportModal = ( { 'Something went wrong while installing the performance addon.', 'templates-patterns-collection' ), - hyveLite: __( - 'Something went wrong while installing the Hyve Lite plugin.', - 'templates-patterns-collection' - ), }; switch ( step ) { @@ -774,9 +705,6 @@ const ImportModal = ( { case 'performanceAddon': setPerformanceAddonProgress( 'error' ); break; - case 'hyveLite': - setHyveLiteProgress( 'error' ); - break; } setError( incomingError.data @@ -959,7 +887,6 @@ const ImportModal = ( { customizer: customizerProgress, widgets: widgetsProgress, performanceAddon: performanceAddonProgress, - hyveLite: hyveLiteProgress, } } currentStep={ currentStep } willDo={ general } diff --git a/assets/src/Components/ImportStepper.js b/assets/src/Components/ImportStepper.js index c4dba2e2..9f9c4cc9 100644 --- a/assets/src/Components/ImportStepper.js +++ b/assets/src/Components/ImportStepper.js @@ -52,14 +52,6 @@ const ImportStepper = ( { currentStep, progress, willDo } ) => { status: progress.performanceAddon, willDo: willDo.performanceAddon, }, - hyveLite: { - label: __( - 'Installing Hyve Lite Plugin', - 'templates-patterns-collection' - ), - status: progress.hyveLite, - willDo: willDo.hyveLite, - }, }; return ( diff --git a/onboarding/src/Components/CustomizeControls/ImportOptionsControl.js b/onboarding/src/Components/CustomizeControls/ImportOptionsControl.js index e96ac8d4..9a5865ea 100644 --- a/onboarding/src/Components/CustomizeControls/ImportOptionsControl.js +++ b/onboarding/src/Components/CustomizeControls/ImportOptionsControl.js @@ -113,44 +113,6 @@ const ImportOptionsControl = ( { } ), }, - hyveLite: { - title: __( 'AI Chatbot', 'templates-patterns-collection' ), - icon: 'admin-comments', - tooltip: createInterpolateElement( - sprintf( - // translators: %1$s is the opening tag for the link %2$s is the closing tag for the link. - __( - 'Hyve is an AI-powered chatbot that transforms your WordPress content into engaging conversations. %1$sHyve%2$s', - 'templates-patterns-collection' - ), - '', - '' - ), - { - a: ( - // eslint-disable-next-line jsx-a11y/anchor-has-content - - ), - icon: ( - - ), - span:
, - } - ), - }, }; if ( cleanupAllowed === 'yes' ) { diff --git a/onboarding/src/Components/ImportProgress.js b/onboarding/src/Components/ImportProgress.js index 6ed8f5fa..780cde9c 100644 --- a/onboarding/src/Components/ImportProgress.js +++ b/onboarding/src/Components/ImportProgress.js @@ -22,7 +22,6 @@ const ImportProgress = ( { currentStep, actionsNb, actionsDone } ) => { 'Installing Performance Features', 'templates-patterns-collection' ), - hyveLite: __( 'Installing Chatbot', 'templates-patterns-collection' ), }; const increaseAmount = 100 / ( actionsNb + 1 ); diff --git a/onboarding/src/Components/Onboarding.js b/onboarding/src/Components/Onboarding.js index 4ed6fcd7..975b29ba 100644 --- a/onboarding/src/Components/Onboarding.js +++ b/onboarding/src/Components/Onboarding.js @@ -14,7 +14,6 @@ const Onboarding = ( { step, themeData } ) => { widgets: true, cleanup: false, performanceAddon: true, - hyveLite: true, theme_install: themeData !== false, } ); const [ importing, setImporting ] = useState( false ); diff --git a/onboarding/src/Components/Steps/Import.js b/onboarding/src/Components/Steps/Import.js index f7f4b597..868fad06 100644 --- a/onboarding/src/Components/Steps/Import.js +++ b/onboarding/src/Components/Steps/Import.js @@ -123,8 +123,7 @@ const Import = ( { function runImportPlugins() { if ( ! pluginOptions && - ! general.performanceAddon && - ! general.hyveLite + ! general.performanceAddon ) { console.log( '[S] Plugins.' ); runImportContent(); @@ -231,7 +230,7 @@ const Import = ( { function runPerformanceAddonInstall() { if ( ! general.performanceAddon ) { console.log( '[S] Performance Addon.' ); - runHyveLiteInstall(); + importDone(); return false; } setCurrentStep( 'performanceAddon' ); @@ -245,37 +244,13 @@ const Import = ( { } console.log( '[D] Performance Addon.' ); setActionsDone( ( prevActionsDone ) => prevActionsDone + 1 ); - runHyveLiteInstall(); + importDone(); } ) .catch( ( incomingError ) => handleError( incomingError, 'performanceAddon' ) ); } - function runHyveLiteInstall() { - if ( ! general.hyveLite ) { - console.log( '[S] Hyve Lite.' ); - importDone(); - return false; - } - setCurrentStep( 'hyveLite' ); - console.log( '[P] Hyve Lite.' ); - - installPlugins( { 'hyve-lite': true } ) - .then( ( response ) => { - if ( ! response.success ) { - handleError( response, 'hyveLite' ); - return false; - } - console.log( '[D] Hyve Lite.' ); - setActionsDone( ( prevActionsDone ) => prevActionsDone + 1 ); - setTimeout( importDone, 2000 ); - } ) - .catch( ( incomingError ) => - handleError( incomingError, 'hyveLite' ) - ); - } - function importDone() { setCurrentStep( 'done' ); tiobDash.cleanupAllowed = 'yes'; @@ -311,10 +286,6 @@ const Import = ( { 'Something went wrong while installing the performance addon.', 'templates-patterns-collection' ), - hyveLite: __( - 'Something went wrong while installing the Hyve Lite theme.', - 'templates-patterns-collection' - ), }; setError(