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

Add Admin Interface Style options to Settings > General #37273

Merged
merged 8 commits into from
May 8, 2024

Conversation

lupus2k
Copy link
Contributor

@lupus2k lupus2k commented May 7, 2024

Related https://github.com/Automattic/dotcom-forge/issues/6942

Proposed changes:

Add Admin Interface Style options to wp-admin/options-general.php

Show it to all Atomic sites and Simple sites with wpcom_classic_early_release enabled.
It should not show on Atomic sites without wpcom_classic_early_release or disabled.

image

To-do

  • Make it save the option

Jetpack product discussion

https://github.com/Automattic/dotcom-forge/issues/6942

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

no

Testing instructions:

  • Go to /wp-admin/options-general.php
  • You should see Admin Interface Style on all Atomic Sites or Simple sites with wpcom_classic_early_release enabled
  • You should not see it in a Simple Sites without wpcom_classic_early_release

@lupus2k lupus2k self-assigned this May 7, 2024
Copy link
Contributor

github-actions bot commented May 7, 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 add/admin-interface-style-to-settings 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-mu-wpcom-plugin add/admin-interface-style-to-settings
    

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

Copy link
Contributor

github-actions bot commented May 7, 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.


Mu Wpcom plugin:

  • Next scheduled release: June 4, 2024.
  • Scheduled code freeze: May 27, 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 May 7, 2024
@lupus2k lupus2k changed the title Add/admin interface style to settings Add Admin Interface Style options to Settings > General May 7, 2024
@arthur791004 arthur791004 force-pushed the add/admin-interface-style-to-settings branch from 0c735ae to dffd587 Compare May 8, 2024 09:46
@arthur791004
Copy link
Contributor

Make it save the option

Handled by dffd587

@github-actions github-actions bot added the [Plugin] mu wpcom jetpack-mu-wpcom plugin label May 8, 2024
@miksansegundo miksansegundo requested a review from a team May 8, 2024 10:31
miksansegundo
miksansegundo previously approved these changes May 8, 2024
Copy link
Contributor

@miksansegundo miksansegundo left a comment

Choose a reason for hiding this comment

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

@arthur791004 is this still in progress? It seems completed because the option is now saved.

Screen.Recording.2567-05-08.at.17.31.00.mov

@arthur791004 arthur791004 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 May 8, 2024
@arthur791004 arthur791004 requested review from a team May 8, 2024 11:09
@arthur791004
Copy link
Contributor

is this still in progress?

It's ready for review!

@miksansegundo
Copy link
Contributor

Tests / Static analysis is failing twice:

Screenshot 2567-05-08 at 19 10 59

It seems that we have to add stubs for Dotcom, following the instructions in

* Do not edit this directly! Update the definition file in the wpcom repo at

@lupus2k lupus2k force-pushed the add/admin-interface-style-to-settings branch from 99b3ed0 to a1ebc69 Compare May 8, 2024 16:04
…terface/wpcom-admin-interface.php

Co-authored-by: Dusty Reagan <[email protected]>
…terface/wpcom-admin-interface.php

Co-authored-by: Dusty Reagan <[email protected]>
@lupus2k lupus2k requested a review from DustyReagan May 8, 2024 17:33
Copy link
Member

@DustyReagan DustyReagan left a comment

Choose a reason for hiding this comment

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

Works great! 🎉

@lupus2k lupus2k merged commit 19b851f into trunk May 8, 2024
55 checks passed
@lupus2k lupus2k deleted the add/admin-interface-style-to-settings branch May 8, 2024 22:21
pkuliga pushed a commit that referenced this pull request May 9, 2024
* Add Admin interface style to settings page
* Enable on Simple Sites with Early flag

---------

Co-authored-by: arthur <[email protected]>
Co-authored-by: Dusty Reagan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants