Skip to content

Commit a3d2d42

Browse files
committed
Keep blueprints for fallbacks only
1 parent c121dba commit a3d2d42

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

src/app/steps/Fork/ForkStep.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import bluehostLogoUrl from '@/assets/bluehost-logo.svg';
55
import { OnboardingEvent, sendOnboardingEvent } from '@/utils/analytics/hiive';
66
import { ACTION_ONBOARDING_STARTED } from '@/utils/analytics/hiive/constants';
77
import { disableComingSoon } from '@/utils/api';
8+
import { fetchBlueprints } from '@/utils/blueprints';
89
import SiteCreatorCard from './SiteCreatorCard';
910
import MigrationCard from './MigrationCard';
1011

@@ -18,6 +19,9 @@ const ForkStep = () => {
1819
}
1920
);
2021

22+
// Proactively fetch the blueprints.
23+
fetchBlueprints();
24+
2125
useEffect( () => {
2226
// Analytics: Onboarding started event
2327
sendOnboardingEvent(
@@ -73,7 +77,7 @@ const ForkStep = () => {
7377

7478
{ ( canMigrateSite || migrationFallbackUrl ) && (
7579
<>
76-
<span className="!nfd-text-lg nfd-text-content-primarynfd-font-medium">
80+
<span className="!nfd-text-lg nfd-text-content-primary nfd-font-medium">
7781
{ __( 'Or', 'wp-module-onboarding' ) }
7882
</span>
7983
<MigrationCard

src/app/steps/index.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import { LogoStep } from './Logo';
44
import { GeneratingStep } from './Generating';
55
import { PreviewsStep } from './Previews';
66
import { CanvasStep } from './Canvas';
7+
import { BlueprintsStep } from './Blueprints';
8+
import { BlueprintCanvasStep } from './BlueprintCanvas';
79
import { MigrationStep } from './Migration';
810

911
const STEPS = {
@@ -43,6 +45,18 @@ const STEPS = {
4345
isRequired: true,
4446
Component: CanvasStep,
4547
},
48+
blueprints: {
49+
path: '/blueprints',
50+
order: 70,
51+
isRequired: false,
52+
Component: BlueprintsStep,
53+
},
54+
blueprintCanvas: {
55+
path: '/blueprints-canvas',
56+
order: 80,
57+
isRequired: false,
58+
Component: BlueprintCanvasStep,
59+
},
4660
migration: {
4761
path: '/migration',
4862
order: 90,
@@ -59,5 +73,7 @@ export {
5973
GeneratingStep,
6074
PreviewsStep,
6175
CanvasStep,
76+
BlueprintsStep,
77+
BlueprintCanvasStep,
6278
MigrationStep,
6379
};

0 commit comments

Comments
 (0)