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

Delete editor site launch #75037

Merged
merged 3 commits into from
Apr 4, 2023
Merged

Delete editor site launch #75037

merged 3 commits into from
Apr 4, 2023

Conversation

noahtallen
Copy link
Contributor

@noahtallen noahtallen commented Mar 28, 2023

Related to #

Proposed Changes

I couldn't find anywhere this directory was imported, so I'm deleting it (and also removing some unused deps in ETK). Related partially to #74551.

For this feature to load, its PHP would have to be enqueued by something.... and I don't think it is 😁

I accidentally discovered this today, but when looking back, I found we've discussed this previously: #53118

Testing Instructions

  1. Sync ETK to your sandbox and verify nothing crashes (including checking PHP err logs)
  2. See if you can find anywhere this directory is imported.

@matticbot
Copy link
Contributor

matticbot commented Mar 28, 2023

@noahtallen noahtallen self-assigned this Mar 28, 2023
@noahtallen noahtallen requested a review from a team March 28, 2023 15:26
@matticbot matticbot added the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Mar 28, 2023
@noahtallen noahtallen changed the title Delete unused ETK feature. Delete editor site launch Mar 28, 2023
@noahtallen noahtallen mentioned this pull request Mar 28, 2023
6 tasks
@matticbot
Copy link
Contributor

This PR modifies the release build for editing-toolkit

To test your changes on WordPress.com, run install-plugin.sh editing-toolkit delete-editor-site-launch on your sandbox.

To deploy your changes after merging, see the documentation: PCYsg-mMA-p2

@matticbot
Copy link
Contributor

This PR does not affect the size of JS and CSS bundles shipped to the user's browser.

Generated by performance advisor bot at iscalypsofastyet.com.

Copy link
Member

@tyxla tyxla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work @noahtallen!

I've suggested removing a few more dependencies that we no longer seem to use.

Could be done in a separate PR if that works better for you.

🚀

import { GUTENBOARDING_LAUNCH_FLOW } from '../constants';

import 'a8c-fse-common-data-stores';
import '@wordpress/editor';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this removing the last use of @wordpress/editor? Can we remove that dependency from editing toolkit altogether?

}
}

.editor-gutenberg-launch__launch-button {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can also likely delete this then:

body.is-focused-launch-complete .editor-gutenberg-launch__launch-button {
display: none;
}

@@ -1,20 +0,0 @@
@import "@automattic/onboarding/styles/mixins";
@import "@automattic/plans-grid/src/variables";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like we can remove the @automattic/plans-grid dependency from ETK now.

@@ -1,86 +0,0 @@
import { useSite } from '@automattic/launch';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like we can remove the @automattic/launch dependency from ETK now.

CheckoutStepAreaWrapper,
SubmitButtonWrapper,
FormStatus,
} from '@automattic/composite-checkout';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like we can remove the @automattic/composite-checkout dependency from ETK now.

import { useLocale, useLocalizeUrl } from '@automattic/i18n-utils';
import { useSiteDomains, useDomainSuggestion, useDomainSearch, useTitle } from '@automattic/launch';
import { Title, SubTitle, ActionButtons, BackButton } from '@automattic/onboarding';
import { ThemeProvider } from '@emotion/react';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still need @emotion/react as a dependency of ETK after the removal of this? I think we don't.

import { createInterpolateElement } from '@wordpress/element';
import { sprintf } from '@wordpress/i18n';
import { Icon, check } from '@wordpress/icons';
import { useI18n } from '@wordpress/react-i18n';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like we no longer use @wordpress/react-i18n after this PR. Should we remove that dependency and its special handling here:

if ( request === '@wordpress/react-i18n' ) {

@noahtallen
Copy link
Contributor Author

Good finds! I'll look into removing those in this PR.

@tyxla
Copy link
Member

tyxla commented Apr 4, 2023

I'm going to proceed and merge this to unblock some further cleanup work.

Going to open a new PR with my suggestions so we don't lose track of them.

Thanks, @noahtallen! 🚀

@tyxla tyxla merged commit 479d458 into trunk Apr 4, 2023
@tyxla tyxla deleted the delete-editor-site-launch branch April 4, 2023 10:08
@github-actions github-actions bot removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Apr 4, 2023
@tyxla
Copy link
Member

tyxla commented Apr 4, 2023

Follow-up cleanup: #75267

@noahtallen
Copy link
Contributor Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants