Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sunset Site Assembler: Delete Pattern Assembler #97325

Draft
wants to merge 4 commits into
base: trunk
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion client/assets/stylesheets/shared/functions/_z-index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ $z-layers: (
".billing-history-page .filter-popover-content": 23,
".reader-mobile-sidebar": 23,
".checkout-modal": 30,
".pattern-assembler__preview-list--fullscreen-preview": 30,
".community-translator": 99,
".author-selector__popover.popover": 100,
".feature-example__gradient": 170,
Expand Down
12 changes: 0 additions & 12 deletions client/landing/stepper/declarative-flow/ai-assembler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,6 @@ const withAIAssemblerFlow: Flow = {
return exitFlow( selectedSiteId, selectedSiteSlug );
}

case 'pattern-assembler': {
return navigate( 'processing' );
}

case 'launchpad': {
return navigate( 'processing' );
}
Expand Down Expand Up @@ -273,19 +269,11 @@ const withAIAssemblerFlow: Flow = {
case 'domain': {
return navigate( 'launchpad' );
}

case 'pattern-assembler': {
return navigate( 'site-prompt' );
}
}
};

const goNext = () => {
switch ( _currentStep ) {
case 'site-prompt': {
return navigate( 'pattern-assembler' );
}

case 'launchpad':
skipLaunchpad( {
checklistSlug: AI_ASSEMBLER_FLOW,
Expand Down
13 changes: 0 additions & 13 deletions client/landing/stepper/declarative-flow/assembler-first-flow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ const assemblerFirstFlow: Flow = {
STEPS.NEW_OR_EXISTING_SITE,
STEPS.SITE_PICKER,
STEPS.SITE_CREATION_STEP,
STEPS.PATTERN_ASSEMBLER,
STEPS.FREE_POST_SETUP,
STEPS.PROCESSING,
STEPS.ERROR,
Expand Down Expand Up @@ -167,10 +166,6 @@ const assemblerFirstFlow: Flow = {
return;
}

case 'pattern-assembler': {
return navigate( 'processing' );
}

case 'launchpad': {
return navigate( 'processing' );
}
Expand Down Expand Up @@ -214,14 +209,6 @@ const assemblerFirstFlow: Flow = {
case 'domains': {
return navigate( 'launchpad' );
}

case 'pattern-assembler': {
const params = new URLSearchParams( window.location.search );
params.delete( 'siteSlug' );
params.delete( 'siteId' );
setSelectedSite( null );
return navigate( `site-picker?${ params }` );
}
}
};

Expand Down
19 changes: 0 additions & 19 deletions client/landing/stepper/declarative-flow/import-flow.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { Design, isAssemblerDesign, isAssemblerSupported } from '@automattic/design-picker';
import { IMPORT_FOCUSED_FLOW } from '@automattic/onboarding';
import { useDispatch, useSelect } from '@wordpress/data';
import { useEffect } from 'react';
Expand Down Expand Up @@ -41,7 +40,6 @@ const importFlow: Flow = {
STEPS.IMPORTER_SQUARESPACE,
STEPS.IMPORTER_WORDPRESS,
STEPS.DESIGN_SETUP,
STEPS.PATTERN_ASSEMBLER,
STEPS.PROCESSING,
STEPS.SITE_CREATION_STEP,
STEPS.MIGRATION_HANDLER,
Expand Down Expand Up @@ -80,10 +78,6 @@ const importFlow: Flow = {
const fromParam = urlQueryParams.get( 'from' );
const { data: migrationStatus } = useSourceMigrationStatusQuery( fromParam );
const siteSlugParam = useSiteSlugParam();
const selectedDesign = useSelect(
( select ) => ( select( ONBOARD_STORE ) as OnboardSelect ).getSelectedDesign(),
[]
);
const isMigrateFromWp = useSelect(
( select ) => ( select( ONBOARD_STORE ) as OnboardSelect ).getIsMigrateFromWp(),
[]
Expand Down Expand Up @@ -176,17 +170,9 @@ const importFlow: Flow = {
}

case 'designSetup': {
const { selectedDesign: _selectedDesign } = providedDependencies;
if ( isAssemblerDesign( _selectedDesign as Design ) && isAssemblerSupported() ) {
return navigate( 'pattern-assembler' );
}

return navigate( 'processing' );
}

case 'pattern-assembler':
return navigate( 'processing' );

case 'createSite':
return navigate( 'processing' );

Expand All @@ -209,11 +195,6 @@ const importFlow: Flow = {
return navigate( `import?siteSlug=${ providedDependencies?.siteSlug }` );
}

// End of Pattern Assembler flow
if ( isAssemblerDesign( selectedDesign ) ) {
return exitFlow( `/site-editor/${ siteSlugParam }` );
}

return exitFlow( `/home/${ siteSlugParam }` );
}

Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,8 @@ const DesignChoicesStep: Step = ( { navigation, flow, stepName } ) => {
destination: kebabCase( destination ),
} );

if ( destination === 'pattern-assembler' || destination === 'launch-big-sky' ) {
setSelectedDesign( getAssemblerDesign() );
}

if ( destination === 'launch-big-sky' ) {
setSelectedDesign( getAssemblerDesign() );
return;
}

Expand Down

This file was deleted.

Loading
Loading