-
Notifications
You must be signed in to change notification settings - Fork 817
Update Edit homepage
banner design and copy
#43643
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
base: trunk
Are you sure you want to change the base?
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 🤖 Follow this PR Review Process:
If you have questions about anything, reach out in #jetpack-developers for guidance! |
Code Coverage SummaryCoverage changed in 1 file.
If appropriate, add one of these labels to override the failing coverage check:
Covered by non-unit tests
|
Looks good at a glance, but is there any way you can use the component, rather than reimplementing it? Also, is it possible to show in the Site editor pages list too? |
@@ -8,6 +8,21 @@ | |||
|
|||
/* global jQuery */ | |||
( function ( $ ) { | |||
const trackEvent = ( eventName, eventProperties = {} ) => { |
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.
We have a function for this here: https://github.com/Automattic/jetpack/blob/45f8c2f30d6464e5bee9a2930ee97481fcc40616/projects/packages/jetpack-mu-wpcom/src/common/tracks.js
Do you think it's possible to re-use it in this context?
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 managed to get it working with modules, see f6b39d7
I don't know if it's possible to share a calypso component with jetpack?
I crafted a hacky solution on c99f84b. I don't know if there's a more proper solution for reacting to gutenberg's navigation. cc @jasmussen |
I think we should avoid the hacks, for the same reason as avoiding custom CSS. We want to reduce maintenance overhead and use the off the shelf componentry. I should've been clearer, though, what I meant about using a "vanilla notice" as I mentioned in another comment, was use the default WordPress notice, this one: https://developer.wordpress.org/block-editor/reference-guides/components/notice/ (or this) |
Sure, I understand. In any case, I think it's better to put this on hold until the notice design question is solved in the linear issue. |
What is the notice design question? I don't agree on putting this on hold, and think you can use the existing notice in WordPress. |
Fixes DSGCOM-91
Proposed changes:
Pages
so users know how to edit their homepage.Other information:
Jetpack product discussion
Does this pull request change what data or activity we track or use?
Testing instructions:
widgets.wp.com s0.wp.com s1.wp.com s2.wp.com s3.wp.com
Pages
Edit homepage
button takes you to the Site Editor