-
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
Nav Unification: Display the stats sparkline on WP Admin for Atomic sites #21655
Nav Unification: Display the stats sparkline on WP Admin for Atomic sites #21655
Conversation
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.
Here are some suggested test cases for this PR.
Stats
- Visit home page, make sure that page view is recorded in stats
- Visit home page in AMP view
- Visit post page in non-AMP and AMP view
If you think that suggestions should be improved please edit the configuration file here. You can also modify/add test-suites to be used in the configuration file.
Caution: This PR has changes that must be merged to WordPress.com |
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:
|
projects/plugins/jetpack/modules/masterbar/admin-menu/class-atomic-admin-menu.php
Outdated
Show resolved
Hide resolved
@BogdanUngureanu I cannot replicate that issue. That happens when the |
Scratch that, just found out that the I'll remove the fallback to the 1x image, and just use the 2x image, as done for Simple sites: jetpack/projects/plugins/jetpack/modules/masterbar/admin-menu/class-wpcom-admin-menu.php Line 241 in 90d6743
Update: done in 669afa4. |
Tests great for me now in WP-Admin, great job Miguel! One question: do you happen to know why we don't display the sparkline in Calypso? |
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.
Do we need to take into account sites where the Stats module will be inactive?
projects/plugins/jetpack/modules/masterbar/admin-menu/class-atomic-admin-menu.php
Show resolved
Hide resolved
I'd swear we were displaying it (you can see some screenshots in Automattic/wp-calypso#56542), so I wonder if that's due to a recent change. I'll investigate. |
Yup! I totally missed that. Handle it in 8efff91 |
That was it, should've been fixed in Automattic/wp-calypso#57814. |
I think that's unrelated to this PR, since it's happening on Simple sites as well. I created a separate issue: Automattic/wp-calypso#57820 |
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.
Tested well for me. Also did a quick check on a non-WPcom Atomic site and didn't notice any issues there 👍
…ats_get_image_chart_src` exists
r234861-wpcom |
* master: (22 commits) VideoPress: reload block on rating change (#21653) Assets: Changelog for package version 1.12.0 (#21744) assets: Add `wp_register_script` wrapper (and then use it everywhere) (#21689) eslint-config-target-es: Configure mirror repo (#21731) Use monorepo `validate-es` script to validate Webpack builds (#21729) Backup: Replace daily backup references/upsell links with new real-time products (#21715) Likes: reimplement non-admin portions without jQuery (#21726) Autoloader: Not activated autoload queue is false (#21517) Sync: add a new method, do_only_first_initial_sync (#21676) webpack-config: Configure minifier to preserve translator comments (#21667) webpack-config: Use `@automattic/babel-plugin-preserve-i18n` (#21700) Create eslint-config-target-es JS package (#21660) webpack-config: Fork calypso-build's mini-css-with-rtl plugin (#21595) Allow /sites/${site}/external-media/copy/pexels to insert post meta data (#21659) jetpack: Don't set Webpack's `output.pathinfo` in production builds (#21727) Boost: Implement support for loading stylesheets when JavaScript is disabled in the context Critical CSS being enabled (#21713) RNA: export the Connection store (#21388) Display notice when user has unactivated product license keys (#21474) Gardening: ensure it can use Composer (#21712) Nav Unification: Display the stats sparkline on WP Admin for Atomic sites (#21655) ...
Fixes Automattic/wp-calypso#56542
Changes proposed in this Pull Request:
Displays the stats sparkline in the WP Admin sidebar of Atomic sites, effectively achieving both Calypso/WP Admin and Simple/Atomic parity.
Note that the Stats module has been updated to allow a new
masterbar
param in chart URLs, which produces a slightly different version of the chart suitable for the sidebar (see r124501-wpcom).Jetpack product discussion
N/A.
Does this pull request change what data or activity we track or use?
No.
Testing instructions: