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

Masterbar: refactor feature and move to mu-wpcom #35469

Closed
9 tasks done
jeherve opened this issue Feb 6, 2024 · 4 comments
Closed
9 tasks done

Masterbar: refactor feature and move to mu-wpcom #35469

jeherve opened this issue Feb 6, 2024 · 4 comments
Assignees
Labels
Epic Formerly "Primary Issue", or "Master Issue" [Feature] Masterbar WordPress.com Toolbar and Dashboard customizations [Focus] Jetstream [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Plugin] mu wpcom jetpack-mu-wpcom plugin [Pri] Normal [Type] Janitorial

Comments

@jeherve
Copy link
Member

jeherve commented Feb 6, 2024

Let's talk about the Masterbar module and its future in the Jetpack plugin and in the mu-wpcom plugin.

Now

History

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.

Current features

The feature currently lives here on WoA and self-hosted sites:
https://github.com/Automattic/jetpack/blob/5b320dc39fc6a437b6482757c9a68930f1f99138/projects/plugins/jetpack/modules/masterbar.php

It is:

  • Not enabled by default on self-hosted sites
  • Force-enabled on WoA sites via wpcomsh

On WordPress.com Simple sites, it is loaded differently:

fbhepr%2Skers%2Sjcpbz%2Sjc%2Qpbagrag%2Szh%2Qcyhtvaf%2Sznfgreone.cuc%3Se%3Q494pr4o9%233-og

It includes the following features:

The basic feature set is a replacement for the core admin bar, defined in projects/plugins/jetpack/modules/masterbar/masterbar/class-masterbar.php. This custom admin bar is extended with side-panels (that we talked about removing in #35199)

We extend that basic feature set with other features that are enabled on WoA and/or simple sites:

In the future

I do not think any of those features belong in the Jetpack plugin. At a time it made sense to ship those features in Jetpack because Jetpack was a good delivery mechanism for both WordPress.com simple and WoA sites. We now have the mu-wpcom plugin for that.

With that in mind, we could aim to do the following:

Tasks

  1. [Feature] Masterbar [Package] Masterbar [Pri] Normal [Type] Janitorial
    fgiannar
  2. [Feature] Masterbar [Package] Masterbar [Pri] Normal [Type] Janitorial
    fgiannar
  3. 1 of 2
    [Feature] Masterbar [Package] Masterbar [Pri] Normal [Type] Janitorial
    fgiannar
  4. [Feature] Masterbar
    fgiannar

Internal references:

  • pe7F0s-1Fw-p2
@jeherve jeherve added [Type] Janitorial Epic Formerly "Primary Issue", or "Master Issue" [Pri] Normal [Feature] Masterbar WordPress.com Toolbar and Dashboard customizations [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Plugin] mu wpcom jetpack-mu-wpcom plugin labels Feb 6, 2024
@jeherve jeherve self-assigned this Feb 6, 2024
@jeherve
Copy link
Member Author

jeherve commented Feb 6, 2024

@kraftbj What do you think about this deprecation plan overall? Would you change / add anything in that process?

@kraftbj
Copy link
Contributor

kraftbj commented Feb 7, 2024

Thinking out loud, the move to the masterbar package is mainly a transitionary step. Do we actually expect to use need the masterbar functionality in other places? Would it make sense to introduce, say, a jetpack-code-transition package that we use for these things that are moving to different places and not being embedded into multiple products?

Just thinking about the overhead of having to spin up Packagist accounts, the extra repos, etc.

The only consideration otherwise is coordination with Loop to ensure they can move forward with what they'd like to land for WC Asia without being impaired.

@jeherve
Copy link
Member Author

jeherve commented Feb 7, 2024

Do we actually expect to use need the masterbar functionality in other places?

I don't think so. It's really more of a need for the transition, not after. I'd be opened to a package that we would then deprecate, or a special package like you mention. Both are fine by me. I don't think the overhead of creating a new package is that big, to be honest.

The only consideration otherwise is coordination with Loop to ensure they can move forward with what they'd like to land for WC Asia without being impaired.

Right. Personally I think it'd be more realistic to wait until WC Asia for the move. The Masterbar is modified daily right now, so we'd be bottlenecks if we decided to start a move now.
We can get started with the basic package though.

@fgiannar
Copy link
Contributor

PT: pfwV0U-3U-p2

All the related tasks have now been completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Epic Formerly "Primary Issue", or "Master Issue" [Feature] Masterbar WordPress.com Toolbar and Dashboard customizations [Focus] Jetstream [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Plugin] mu wpcom jetpack-mu-wpcom plugin [Pri] Normal [Type] Janitorial
Projects
None yet
Development

No branches or pull requests

3 participants