Add WordPress.com toolbar navigation module#6413
Conversation
|
Tried this out, great start! Noticed a few things:
|
|
Worth noting that we're currently redesigning the Settings UI: You'll probably need to take this into account for the Jetpack Admin part. @eliorivero will be able to tell you a lot more. |
|
Hi @vindl I'm going to close this since PRs to add new settings or enhancement has to be in the new settings UI project and created against ❗️ It's not necessary to delete this branch ❗️ |
|
@jeherve @eliorivero Thanks for letting me know, I'll check it out and see how to adapt this for new settings UI. |
|
@eliorivero when we decide where to place this in the new UI, I can make the changes and rebase and retarget it against |
|
Sure, that's ok 👍 |
|
This is looking pretty good! I definitely think we need to come up with a better way of presenting it in the settings UI than "Masterbar". Following are some notes from just testing this "functionally": I definitely agree it'd be good to refresh the page after enabling/disabling, since otherwise nothing seems to happen, so as a user, I'd guess it's "broken". When a site is in development mode, Notifications are not available, so they don't appear in the toolbar. Maybe we should remove that block entirely in that case, so that things slide over to the right properly? Similarly, if I disable Notifications in Jetpack, it doesn't entirely reclaim that far-right position, so there's an additional gap there. I got a PHP notice:
Had some missing icons in the My Sites menu (maybe tied specifically to the fact this site was in Dev Mode?): Also note that the URL shown in that menu is incorrectly encoded (install WP in a sub-directory, and you'll need to make sure you convert No dynamic items in the Reader menu? I expected to see my Lists + Tags there, as I do on WP.com. Under the "Me" menu, I noticed that your "Sign Out" action is just signing me out of the current site. If this is supposed to be creating a more WordPress.com-like experience, should that log me out of WP.com as well? TBH I'm not 100% sure what a normal user would really expect there (or if they'd fully grok all the different things going on). I noticed 2 things with the Notifications menu: one is that the animation of the unread indicator appears to be triggering every time my window loses/gains focus (so make sure you have an unread, then switch tabs away and back again, and the indicator will animate). The other is that the icon being used is actually different to the one on WP.com: |
|
Thanks for the feedback @beaulebens! I'll add these issues to our milestone (in AT repo) and look into resolving them as soon as possible. |
Either that, or we could also make sure to activate Notifications module after Masterbar is activated - otherwise the admin bar will not match the one on WordPress.com.
Not sure what's causing this. My site is in Dev mode too, and the icons are displayed correctly.
Haven't carried them over yet, will make sure to add them in future updates.
I suppose we should log them out of WordPress.com as well. |
Is your site publicly accessible? The one I saw that on was on localhost, so maybe it was somehow related to not being accessible from external sites?
You might be able to achieve this with something like the |
Yup, it is. |
|
Good idea to just pull the CSS from wp.com. We should add a README and/or some code comments in the wp.com files to warn devs that changes made to those will also impact Jetpack. |
Good point @roundhill, I've added the comments in the diff linked above. @beaulebens I've created issues based on your testing feedback in this milestone for easier tracking - most of them should be resolved by now.
They are not currently present in WP.com toolbar either (only in Calypso), so I've decided to skip them for now. |
|
@MichaelArestad let's chat today about the settings for this—the settings in this PR match the old style, for it to be merged we'll need to update that and find the right place for it (we we briefly discussed yesterday). |
|
I still have some testing to do, but I had a few remarks after playing with the Masterbar for a bit:
|
In some cases, before all the JS code was loaded, clicking on top level masterbar menu items resulted in redirection to WordPress.com, insted of opening the dropdown menu.
We shouldn't rely on user id of current site when obtaining Gravatar data. Instead we should use connected user's data in order to match the picture to the one that used on WordPress.com Toolbar.
It looks like this was occurring in a short interval before all the required masterbar scripts were loaded. I've removed the URLs from top level menu items in 445241f in order to prevent this.
The same is true for current version of WordPress.com masterbar. In this iteration our main goal is just to replicate the current functionality as closely as possible.
I think that for AT sites we should show these three menu items and preserve the original WordPress.com links. On the other hand, for non-AT Jetpack sites it would make sense to hide them, or direct them to corresponding Jetpack URLs.
Fixed in b2c32e8.
Fixed in b2c32e8.
Resolved in 51ddbd5.
Resolved in 51ddbd5.
Fixed in 01ef071. Thanks a lot for testing and feedback @jeherve and @eliorivero! |
|
Note that the settings overhaul is being merged today, so this is going to need an update to match/fit into that style of settings now. |
|
cc @ashleighaxios in case we can provide any design help on updating the Masterbar feature's settings card now that the new settings has merged (with Michael afk early next week). |
|
This is looking good enough to merge. The smaller things will be addressed in following PR's, as will the merge to the new settings branch. |
* Readme: remove old release and add skeleton for 4.8. * Changelog: add #6572 * Changelog: add #6567 * Changelog: add #6542 * Changelog: add #6527 * Changelog: add #6508 * Changelog: add #6478 * Changelog: add #6477 * Changelog: add #6249 * Update stable version and remove old version from readme. * Changelog: add 4.7.1 to changelog. * Readme: add new contributor. * Sync: update docblock @SInCE version. Related: #6053 * Changelog: add release post. * changelog: add #6053 * Changelog: add #6413 * Changelog: add #6482 * Changelog: add #6584 * Changelog add #6603 * Changelog: add #6606 * Changelog: add #6611 * Changelog: add #6635 * Changelog: add #6639 * Changelog: add #6684 * Changelog: add #6710 * Changelog: add #6711 * Changelog: add #5461 * Testing list: update Settings UI feedback prompt. Props @MichaelArestad * Changelog: add #6789 * Changelog: add #6778 * Changelog: add #6777 * Changelog: add #6775 * Changelog: add #6755 * Changelog: add #6731 * Changelog: add #6721 * Changelog: add #6705 * Changelog: add #6702 * Changelog: add #6671 * Changelog: add #6637 * Changelog: add #6582 * Changelog: add #6566 * Changelog: add #6555 * Changelog: add #6529 * Changelog: add #6344 * Changelog: add #5763 * Changelog: add #5503 * Changelog: update #6637 changelog. @see 40e115c#commitcomment-21523982 * Changelog: add #6699 * Changelog: add #6632 * Changelog: add #6769 * Changelog: add #6707 * Changelog: add #6590








Project: https://github.com/Automattic/jetpack/projects/6
Milestone: https://github.com/Automattic/jetpack/milestone/75
P2 post: p3fqKv-4kf-p2
Ref: #6254
Test with: D4478-code(deployed)Improves the experience for Jetpack authors when they've transferred their WordPress site from WordPress.com to a self-hosted plan by providing a similar experience to the front-end navigation on WordPress.com.
Testing instructions:
Generaltab of Jetpack Settings.