-
Notifications
You must be signed in to change notification settings - Fork 2k
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
WordAds Stats: fix broken links in Odyssey #72360
Conversation
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: Sections (~32 bytes removed 📉 [gzipped])
Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to. Legend What is parsed and gzip size?Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory. Generated by performance advisor bot at iscalypsofastyet.com. |
adf1365
to
38b8aa9
Compare
I tried to test this one, but unfortunately, I couldn't make the |
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 was able to make it work now.
I tested both on Odyssey and on WPCOM and it's working as expected. 👍
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.
Hey @jsnmoon Thanks for the review 👍 it works okay for me. Could you please pull the new changes, try to rebuild Odyssey and try again - the totals section should be replaced by the highlights after the merge. Thanks |
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 rebuilt the assets using the latest checkout, and everything appears to work as expected 👍
Proposed Changes
Restores clicking behaviours on the Ads page:
We should avoid use
window.location
object directly for Stats, as in Odyssey the paths are actually hashes. We should usecontext.path
,context.query
andcontext.pathname
instead, which are injected bypage.js
.Testing Instructions
PejTkB-3E-p2
/wp-admin/admin.php?page=jetpack#/traffic?term=wordads
/wp-admin/admin.php?page=stats&flags=stats%2Fads-page
Pre-merge Checklist