Repository navigation
WOOA7S-2037: Premium Analytics: Share one drawer shell across the page options panels - #52904
Closed
Nikschavan wants to merge 2 commits into
Closed
Nikschavan wants to merge 2 commits into
Nikschavan wants to merge 2 commits into
Conversation
Contributor
|
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
Contributor
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
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 🤖 Follow this PR Review Process:
If you have questions about anything, reach out in #jetpack-developers for guidance! |
Nikschavan
force-pushed
the
wooa7s-2037-page-drawer-refactor
branch
from
September 29, 2026 06:41
bb9bc5b to
36fb0f9
Compare
Nikschavan
force-pushed
the
wooa7s-1769-stats-settings-drawer
branch
from
September 29, 2026 10:07
8b4b0e3 to
ace8e6e
Compare
…ns panels The drawer root, header, admin bar offset, right-to-left edge and busy close guard move from the Settings drawer into PageDrawer, and SettingsGroup into DrawerGroup, so the Usage drawer reuses them instead of copying them.
…and outside it The shared drawer closes from its close button and on a click outside it, and ignores both while a save is running.
Nikschavan
force-pushed
the
wooa7s-2037-page-drawer-refactor
branch
from
September 29, 2026 11:09
36fb0f9 to
10a67c8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of WOOA7S-2037
Proposed changes
SettingsDrawer, the two would drift apart the first time one of them changes.PageDrawernow holds what every drawer of this menu shares: the drawer root that slides in from the end of the page, the large size, the offset below the admin bar, the header with its title and close button, and the rule that the drawer stays open while it is busy (a save in progress).DrawerGroupis the titled card that wasSettingsGroup. The Settings drawer keeps only its form, its footer, and its save logic.Related product discussion/links
Does this pull request change what data or activity we track or use?
No.
Testing instructions
Use a site with this branch and the Stats v2 preview switched on: a Jurassic Ninja site with the branch synced, or the Jetpack Beta Tester plugin pointed at this branch.
/wp-admin/admin.php?page=jetpack-premium-analytics-wp-admin&p=%2F%3Fsettings%3D1. The drawer opens on load, and closing it removessettings=1from the URL.I checked the Settings drawer on my local site against #52870, and it looks and behaves the same.