-
Notifications
You must be signed in to change notification settings - Fork 834
Blaze: add new dashboard menu #30103
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
Conversation
The menu itself will be loaded remotely from Calypso.
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 (other than "Required review") appearing at the bottom of this PR are passing or skipped. Jetpack plugin:
|
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
…laze-dashboard-menu
p1683206576893239-slack-C053FAERCDP
See peeHDf-Zg-p2#comment-827
It is needed since we rely on the Modules class.
This should improve compatibility on WordPress.com Simple.
…nk are configured
Ok @jeherve, @sergeymitr. I filtered the wrong parameters that we were sending to WordPress.com API. I used the same approach as the commit mentioned by Jeremy; the only problem was that it only worked when the route didn't expect any query parameters. Let me know what you think and if there is a better way to consider the query params in the |
…laze-dashboard-menu
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.
Yes. Blaze supports posts, pages, and products.
I think posting in #blaze-dashboard-redesign about it is fine, but since you mentioned it here @sbarbosa will know what to do with it :) |
Co-authored-by: Samiff <samiff@users.noreply.github.com>
Thanks for the test @samiff. You can have an updated version of the dashboard in this Calypso PR: You can follow the testing steps in that PR to see that page version. I adjusted some styles and changed the header. I will update the Phabricator diff when I merge that PR. |
These may be sync issues since the endpoint does a direct Since those issues are not directly related to this PR, but to the endpoint it is using, and since this PR doesn't surface the UI just yet (it's still hidden behind a filter), do you think we could move forward with merging the PR? |
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.
since this PR doesn't surface the UI just yet (it's still hidden behind a filter), do you think we could move forward with merging the PR?
I think that's a good plan of action since we've also got some other dependent PRs.
My concerns are discussed and dismissed.
Proposed changes:
This registers a new "Tools > Advertising" menu, appearing when your site is eligible for Blaze.
The contents of the menu will be loaded remotely from Calypso.
This borrows from the Stats Admin package, where we've implemented something similar (the Stats page is loaded from Calypso).
To do
Other information:
Jetpack product discussion
Does this pull request change what data or activity we track or use?
Testing instructions:
add_filter( 'jetpack_blaze_dashboard_enable', '__return_true' );
to a functionality plugin on your site.To populate the contents of the dashboard, you have 2 options:
jetpack build packages/blaze && jetpack build plugins/jetpack
yarn
apps/blaze-dashboard
BLAZE_DASHBOARD_PACKAGE_PATH=/.../jetpack/projects/packages/blaze yarn dev
, while entering the correct path to your package on your machine.