Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…oarding into bump/onboarding
  • Loading branch information
arunshenoy99 committed May 3, 2024
2 parents 904ea1e + 60f917c commit ca37d53
Show file tree
Hide file tree
Showing 27 changed files with 679 additions and 119 deletions.
24 changes: 16 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
116 changes: 109 additions & 7 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

54 changes: 37 additions & 17 deletions src/OnboardingSPA/components/ErrorState/Step/SiteGen/contents.js
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;
Loading

0 comments on commit ca37d53

Please sign in to comment.