-
Notifications
You must be signed in to change notification settings - Fork 800
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
Untangle: Add banner to import.php for Classic style that points to Calypso importer #35351
Conversation
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Once your PR is ready for review, check one last time that all required checks appearing at the bottom of this PR are passing or skipped. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is correct. There is a seperate PR #35258 that will point the Masterbar Import menu from Calypso to |
This comment was marked as resolved.
This comment was marked as resolved.
@okmttdhr I've updated the testing instructions to the PR, you'll also need to have
in your wp-config.php file. |
This was mentioned in this comment as well 🙈: #35351 (comment) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
...s/packages/jetpack-mu-wpcom/src/features/import-customizations/css/import-customizations.css
Outdated
Show resolved
Hide resolved
$screen = get_current_screen(); | ||
|
||
if ( $screen && $screen->id === 'import' ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be better if we move this condition to load_import_customizations
? 👀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm unsure that would work because load_import_customizations
is added during the plugins_loaded
action. But our get_current_screen
conditional happens on the current_screen
action. So, if we moved it over to load_import_customizations
, we'd still need to add a callback on the current_screen
hook.
🤔 Maybe we could move the wpcom_admin_interface
option conditional over to load_import_customizations,
but I imagined maybe "import_customizations" could be expanded in the future outside of the scope of the admin interface style. Probably not, but that's where my thoughts were. 😆
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works great, my only concern is the "Back to goals" button on the importer, we can create a follow up for this.
JOzUQo.mp4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Hello, following up on a Slack ping for copy review! I have a question. The proposed copy currently reads:
What is the benefit for the user if they choose the [Get started] button vs. clicking the link underneath any of the given platforms? |
@kristastevens, this P2 explains it in a bit more detail pfsHM7-R-p2. But in summary, the "Get started" button links to the Calypso importer, which offers the ability to import from Medium, Squarespace, and Wix, which is not possible anywhere else. (Importer plugins do not exist for those platforms.) Calypso can also import from other platforms like Substack, WordPress, and possibly others. Additionally, it offers a guided "wizard" like experience (Seen here: https://wordpress.com/setup/import-focused/import) We want to serve the user the core |
Thanks @DustyReagan, that's helpful! How about this for a proposed wording:
|
Sounds great, @kristastevens. Thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copy looks great!
…alypso importer (#35351) * Add initial files to customize import.php * changelog * Use version in wp_enqueue_style * Linting * Add import_page_customizations_init * Fix Calypso import URL * Try admin_init * Fix Calypso Import URL * Check wpcom_admin_interface option * Add translations * Use get_current_screen and scope CSS to import-php * Update CTA copy * Use CSS class and add ref to link * Update copy
Fixes https://github.com/Automattic/dotcom-forge/issues/5262
Proposed changes:
admin_notices
to create a banner on top of wp-admin/import.php with a CTA to direct the user to the Calypso import tool (found at https://wordpress.com/setup/import-focused/import?siteSlug=[site_slug])wpcom_admin_interface
option is setwp-admin
AKA the "Classic style".Other information:
Jetpack product discussion
Does this pull request change what data or activity we track or use?
No.
Testing instructions:
define( 'JETPACK_MU_WPCOM_LOAD_VIA_BETA_PLUGIN', true );
in your wp-config.php/wp-admin/admin.php?page=jetpack-beta
add/import-admin-customizations
/wp-admin/import.php