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

Remove old Fly Panel for showing in some scenarios #37764

Merged
merged 7 commits into from
Jun 19, 2024

Conversation

lupus2k
Copy link
Contributor

@lupus2k lupus2k commented Jun 8, 2024

Fixes https://github.com/Automattic/dotcom-forge/issues/6809

Proposed changes:

Old fly panel was showing when clicking on WP & Profile in the masterbar when Jetpack is enabled but SSO is disabled.

Important

This PR should be merged after this diff (D151708-code) is merged since it remove the function of the Fly panel and this PR removes content.

Before:

Screencast.from.2024-06-07.21-25-48.mp4

After:

Screencast.from.2024-06-10.21-50-31.mp4

Does this pull request change what data or activity we track or use?

No

Testing instructions:

  • Apply this diff: D151708-code
  • Sandbox s0.wp.com
  • Disable SSO in Jetpack Settings
  • Click on W logo
  • It should link to My Home at WPcom
  • Click on the profile picture
  • It should show a fly panel with the Profile & Logout link
  • Check if anything is broken on self-hosted sites
  • Check if everything works in mobile (Menu open, logout, profile link)
  • Check if anything is broken with SSO enabled
  • Check if anything is broken with Classic interface is enabled (wp-admin)

@lupus2k lupus2k requested a review from a team June 8, 2024 00:30
@lupus2k lupus2k self-assigned this Jun 8, 2024
Copy link
Contributor

github-actions bot commented Jun 8, 2024

Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.

  • To test on WoA, go to the Plugins menu on a WordPress.com Simple site. Click on the "Upload" button and follow the upgrade flow to be able to upload, install, and activate the Jetpack Beta plugin. Once the plugin is active, go to Jetpack > Jetpack Beta, select your plugin, and enable the fix/remove-old-flyout-panel branch.

    • For jetpack-mu-wpcom changes, also add define( 'JETPACK_MU_WPCOM_LOAD_VIA_BETA_PLUGIN', true ); to your wp-config.php file.
  • To test on Simple, run the following command on your sandbox:

    bin/jetpack-downloader test jetpack fix/remove-old-flyout-panel
    
    bin/jetpack-downloader test jetpack-mu-wpcom-plugin fix/remove-old-flyout-panel
    

Interested in more tips and information?

  • In your local development environment, use the jetpack rsync command to sync your changes to a WoA dev blog.
  • Read more about our development workflow here: PCYsg-eg0-p2
  • Figure out when your changes will be shipped to customers here: PCYsg-eg5-p2

@github-actions github-actions bot added [Feature] Masterbar WordPress.com Toolbar and Dashboard customizations [Package] Masterbar labels Jun 8, 2024
Copy link
Contributor

github-actions bot commented Jun 8, 2024

Thank you for your PR!

When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:

  • ✅ Include a description of your PR changes.
  • ✅ Add a "[Status]" label (In Progress, Needs Team Review, ...).
  • ✅ Add testing instructions.
  • ✅ Specify whether this PR includes any changes to data or privacy.
  • ✅ Add changelog entries to affected projects

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 appearing at the bottom of this PR are passing or skipped.
Then, add the "[Status] Needs Team Review" label and ask someone from your team review the code. Once reviewed, it can then be merged.
If you need an extra review from someone familiar with the codebase, you can update the labels from "[Status] Needs Team Review" to "[Status] Needs Review", and in that case Jetpack Approvers will do a final review of your PR.


Jetpack plugin:

The Jetpack plugin has different release cadences depending on the platform:

  • WordPress.com Simple releases happen daily.
  • WoA releases happen weekly.
  • Releases to self-hosted sites happen monthly. The next release is scheduled for July 2, 2024 (scheduled code freeze on July 1, 2024).

If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack.

@github-actions github-actions bot added the [Status] Needs Author Reply We would need you to make some changes or provide some more details about your PR. Thank you! label Jun 8, 2024
@lupus2k lupus2k added [Status] Needs Team Review and removed [Status] Needs Author Reply We would need you to make some changes or provide some more details about your PR. Thank you! labels Jun 10, 2024
@lupus2k lupus2k force-pushed the fix/remove-old-flyout-panel branch from 88bb3ff to 31a2697 Compare June 10, 2024 14:32
@github-actions github-actions bot added [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Tests] Includes Tests labels Jun 10, 2024
@jeherve
Copy link
Member

jeherve commented Jun 10, 2024

I should note that we last attempted to remove those panels, we had to revert as it was breaking navigation in some scenarios:

#12454
p9Jlb4-R8-p2

Our work on nav-unification may have solved that potential problem on WoA sites, but it may be important to test this change on other self-hosted WordPress sites as well, to ensure we're not removing important options for site owners.

@lupus2k
Copy link
Contributor Author

lupus2k commented Jun 10, 2024

Thanks for the info @jeherve

@lupus2k lupus2k force-pushed the fix/remove-old-flyout-panel branch from dee5797 to a5e5629 Compare June 11, 2024 00:46
@lupus2k
Copy link
Contributor Author

lupus2k commented Jun 11, 2024

I updated the PR, fixing some broken scenarios (like mobile or missing log-out). I also created this diff (D151708-code) with some extra details.

Btw, one test is failing on Github but I can't make it fail locally 🤔

cc @jeherve

@jeherve
Copy link
Member

jeherve commented Jun 11, 2024

one test is failing on Github but I can't make it fail locally

You'll need to update your PR to latest trunk, that problem should disappear. For more info: #37785

@lupus2k lupus2k force-pushed the fix/remove-old-flyout-panel branch from a5e5629 to 145523f Compare June 11, 2024 13:30
@lupus2k lupus2k requested review from a team and jeherve June 11, 2024 14:08
@okmttdhr
Copy link
Member

okmttdhr commented Jun 12, 2024

Old fly panel was showing when clicking on WP & Profile in the masterbar when Jetpack is enabled but SSO is disabled.

First, I reproduced the issue described in https://github.com/Automattic/dotcom-forge/issues/6809 on the Atomic Default site but not on Atomic Classic.

After applying the patch, I observed that the issue was resolved ✅.

FWIW, I noticed different behavior on Atomic Classic, which seems appropriate given the differences between Calypso and wp-admin:

  • The menu is displayed when hovering over the W icon.
  • Clicking the W icon will redirect you to /wp-admin/about.php.
Screenshot 2024-06-12 at 13 09 00

I think this PR need more eyes for;

Check if anything is broken on self-hosted sites
Check if everything works in mobile (Menu open, logout, profile link)
Check if anything is broken with SSO enabled
Check if anything is broken with Classic interface is enabled (wp-admin)

@lupus2k
Copy link
Contributor Author

lupus2k commented Jun 12, 2024

FWIW, I noticed different behavior on Atomic Classic, which seems appropriate given the differences between Calypso and wp-admin:

As I understand, we maintain the behavior of non-classic sites.
cc @jeherve @davemart-in

@davemart-in
Copy link
Contributor

I'm not sure I have a strong opinion one way or the other on this one. I could go either way.

@lupus2k lupus2k force-pushed the fix/remove-old-flyout-panel branch 2 times, most recently from c32c440 to 251b159 Compare June 17, 2024 16:41
DustyReagan
DustyReagan previously approved these changes Jun 17, 2024
candy02058912
candy02058912 previously approved these changes Jun 18, 2024
Copy link
Contributor

@candy02058912 candy02058912 left a comment

Choose a reason for hiding this comment

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

I'm seeing the old Fly Planel from Default sites only. After applying the patch it is fixed.

Also tested with self-hosted sites to make sure nothing is outright broken.

allilevine
allilevine previously approved these changes Jun 18, 2024
Copy link
Member

@allilevine allilevine left a comment

Choose a reason for hiding this comment

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

I tested with the diff and PR and SSO enabled and disabled, Default and Classic View, self-hosted. I also tested logging out with SSO disabled on Atomic. ✅

@lupus2k lupus2k force-pushed the fix/remove-old-flyout-panel branch from f9e8536 to 2b7e774 Compare June 18, 2024 19:20
jeherve
jeherve previously approved these changes Jun 19, 2024
Copy link
Member

@jeherve jeherve left a comment

Choose a reason for hiding this comment

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

This looks good to me on self-hosted. The current UX in Jetpack latest stable isn't great, and this doesn't really make it worse, so I'd say let's go with it (after a rebase)

@davemart-in
Copy link
Contributor

So excited to finally have this gone! :-)

@lupus2k lupus2k force-pushed the fix/remove-old-flyout-panel branch from 2b7e774 to 1fdda78 Compare June 19, 2024 18:34
@lupus2k lupus2k enabled auto-merge (squash) June 19, 2024 20:16
@lupus2k lupus2k merged commit 831e679 into trunk Jun 19, 2024
56 checks passed
@lupus2k lupus2k deleted the fix/remove-old-flyout-panel branch June 19, 2024 20:35
@github-actions github-actions bot added this to the jetpack/13.6 milestone Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Masterbar WordPress.com Toolbar and Dashboard customizations [Package] Masterbar [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Tests] Includes Tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants