Skip to content
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: Open wp-admin links on new tabs (Jetpack sites only) #50444

Merged
merged 2 commits into from
Feb 25, 2021

Conversation

mmtr
Copy link
Member

@mmtr mmtr commented Feb 24, 2021

Changes proposed in this Pull Request

Ensures that all menu items linking to /wp-admin URLs are marked as external and opened in new tabs for Jetpack sites.

This improves the nav unification experience for Jetpack sites, since WP Admin is considered a separate area on those sites.

Screen Shot 2021-02-25 at 10 47 39

Testing instructions

  • Spin up a Jetpack site running the update/admin-menu-jetpack-sites branch (Admin Menu: Mimic existing Calypso menu on Jetpack sites jetpack#18921).
  • Use the Calypso live link below, and switch to that Jetpack site.
  • Make sure all menus linking to /wp-admin URLs (Feedback, Customize, Import, Export, WP Admin) are marked as external and they open pages in a new tab.
  • Make sure there are no regression on Simple/Atomic sites (all menus should open in the same tab except when Happychat is active).

Fixes (partially) #50438

@mmtr mmtr added [Status] In Progress [Feature] Calypso & wp-admin Navigation All navigation in Calypso and wp-admin, and the unified transitions between the two. labels Feb 24, 2021
@mmtr mmtr self-assigned this Feb 24, 2021
@matticbot
Copy link
Contributor

@matticbot
Copy link
Contributor

matticbot commented Feb 24, 2021

Here is how your PR affects size of JS and CSS bundles shipped to the user's browser:

Async-loaded Components (~87 bytes added 📈 [gzipped])

name                                         parsed_size           gzip_size
async-load-calypso-my-sites-sidebar-unified       +364 B  (+0.2%)      +87 B  (+0.2%)

React components that are loaded lazily, when a certain part of UI is displayed for the first time.

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.
Gzip Size: Compressed size of the JS and CSS files. This much data needs to be downloaded over network.

Generated by performance advisor bot at iscalypsofastyet.com.

@mmtr mmtr added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. and removed [Status] In Progress labels Feb 25, 2021
@cpapazoglou cpapazoglou self-requested a review February 25, 2021 12:37
Copy link
Contributor

@cpapazoglou cpapazoglou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works well from user perspective. I left some comments, let me know your thoughts!

Copy link
Contributor

@cpapazoglou cpapazoglou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for refactoring this! It looks and works great now and code is simplified! LGTM, 🚢 !

@mmtr mmtr merged commit cc976b3 into trunk Feb 25, 2021
@mmtr mmtr deleted the update/sidebar-unified-jetpack branch February 25, 2021 16:28
@matticbot matticbot removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Feb 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Calypso & wp-admin Navigation All navigation in Calypso and wp-admin, and the unified transitions between the two.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants