-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'trunk' of https://github.com/newfold-labs/wp-module-onb…
…oarding into bump/onboarding
- Loading branch information
Showing
27 changed files
with
679 additions
and
119 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -23,20 +23,28 @@ | |
} | ||
}, | ||
"repositories": [ | ||
{ | ||
"type": "composer", | ||
"url": "https://newfold-labs.github.io/satis/", | ||
"only": [ | ||
"newfold-labs/*" | ||
] | ||
} | ||
], | ||
{ | ||
"type": "composer", | ||
"url": "https://newfold-labs.github.io/satis/", | ||
"only": [ | ||
"newfold-labs/*" | ||
] | ||
}, | ||
{ | ||
"type": "vcs", | ||
"url": "[email protected]:InstaWP/connect-helpers.git", | ||
"only": [ | ||
"instawp/*" | ||
] | ||
} | ||
], | ||
"require": { | ||
"mustache/mustache": "^2.14", | ||
"wp-cli/wp-config-transformer": "^1.3", | ||
"newfold-labs/wp-module-onboarding-data": "^1.1", | ||
"newfold-labs/wp-module-patterns": "^1.0", | ||
"newfold-labs/wp-module-facebook": "^1.0", | ||
"newfold-labs/wp-module-migration": "^1.0", | ||
"wp-forge/helpers": "^2.0" | ||
}, | ||
"require-dev": { | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
54 changes: 37 additions & 17 deletions
54
src/OnboardingSPA/components/ErrorState/Step/SiteGen/contents.js
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 |
---|---|---|
@@ -1,24 +1,44 @@ | ||
// WordPress | ||
import { __ } from '@wordpress/i18n'; | ||
|
||
const getContents = () => { | ||
return { | ||
heading: __( | ||
"Sorry, we're having trouble communicating with our AI service.", | ||
'wp-module-onboarding' | ||
), | ||
subHeading: __( | ||
'Do you keep getting this error?', | ||
'wp-module-onboarding' | ||
), | ||
message: __( | ||
'If you continue to get this error, you may either continue creating your site without using our AI assistant, or you can ', | ||
'wp-module-onboarding' | ||
), | ||
buttonText: __( 'Try again', 'wp-module-onboarding' ), | ||
buttonSkip: __( 'Continue without AI', 'wp-module-onboarding' ), | ||
buttonExit: __( 'exit to WordPress', 'wp-module-onboarding' ), | ||
const getContents = ( type ) => { | ||
const content = { | ||
siteGenErrorContent: { | ||
heading: __( | ||
"Sorry, we're having trouble communicating with our AI service.", | ||
'wp-module-onboarding' | ||
), | ||
subHeading: __( | ||
'Do you keep getting this error?', | ||
'wp-module-onboarding' | ||
), | ||
message: __( | ||
'If you continue to get this error, you may either continue creating your site without using our AI assistant, or you can ', | ||
'wp-module-onboarding' | ||
), | ||
buttonText: __( 'Try again', 'wp-module-onboarding' ), | ||
buttonSkip: __( 'Continue without AI', 'wp-module-onboarding' ), | ||
buttonExit: __( 'exit to WordPress', 'wp-module-onboarding' ), | ||
}, | ||
siteMigrationErrorContent: { | ||
heading: __( | ||
"Sorry, we're having trouble starting the site transfer process.", | ||
'wp-module-onboarding' | ||
), | ||
subHeading: __( | ||
'Do you keep getting this error?', | ||
'wp-module-onboarding' | ||
), | ||
message: __( | ||
'If you continue to get this error, please contact our support team at 1-888-401-4678.', | ||
'wp-module-onboarding' | ||
), | ||
buttonText: __( 'Try again', 'wp-module-onboarding' ), | ||
buttonExit: __( 'Go back', 'wp-module-onboarding' ), | ||
}, | ||
}; | ||
|
||
return content[ type ] || {}; | ||
}; | ||
|
||
export default getContents; |
Oops, something went wrong.