Repository navigation
Conversation
Jetpack Cloud Live (direct link)
Automattic for Agencies Live (direct link)
Dashboard Live (dotcom) (direct link)
|
|
This PR modifies the release build for the following Calypso Apps: For info about this notification, see here: PCYsg-OT6-p2
To test WordPress.com changes, run |
Replace NavigationHeader with Page component from @wordpress/admin-ui on both Scan upsell pages (wpcom-upsell.tsx and wpcom-scan-upsell.tsx). Add admin-ui CSS import and layout overrides for the scan section. Part of the Jetpack header unification effort (JETPACK-1361). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace NavigationHeader with Page component from @wordpress/admin-ui on all three Backup upsell pages (wpcom-upsell.tsx, wpcom-backup-upsell.tsx, wpcom-backup-upsell-placeholder.tsx). Add admin-ui CSS import and layout overrides for the backup section. Part of the Jetpack header unification effort (JETPACK-1361). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ght reset Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Create reusable admin-ui-page-layout mixin at client/components/jetpack-page-layout/_admin-ui-page.scss for pages migrating to @wordpress/admin-ui Page component. Replaces duplicated CSS in scan and backup stylesheets. Usage: @include admin-ui-page-layout inside a body.is-section-* selector. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace duplicated admin-ui layout CSS with the shared mixin from client/components/jetpack-page-layout/_admin-ui-page.scss. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
d6a407c to
29b1408
Compare
Use margin-left/margin-right instead of margin shorthand to avoid resetting vertical margins (e.g. what-is-jetpack section spacing). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Fix was simple enough to get it back. Done at 48ef0d8 |
| // Must be called inside a `body.is-section-<name>` selector. | ||
| @mixin admin-ui-page-layout { |
There was a problem hiding this comment.
Wondering if something like this would be valid?
@mixin admin-ui-page-layout( $section ) {
body.is-section-#{ $section } {
// ...
}
}* Scan & Backup main pages: Migrate headers to admin-ui Page Replace NavigationHeader with Page component from @wordpress/admin-ui on Scan main, Scan history, and Backup main pages. Environment-conditional rendering preserved: Page component only renders on WP.com; Jetpack Cloud and A8C for Agencies paths are unchanged. Backup's BackupActionsToolbar moves from NavigationHeader children to the Page actions prop. Part of the Jetpack header unification effort (JETPACK-1361). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Atomic transfer & scan placeholder: Migrate headers to admin-ui Page Replace FormattedHeader with Page component from @wordpress/admin-ui in WPCOMBusinessAT (shared by Scan and Backup activation flows) and the Scan upsell placeholder. Shorten product names in headers: 'Jetpack VaultPress Backup' -> 'Backup', 'Jetpack Scan' -> 'Scan' (JetpackTitle component provides the Jetpack logo). Add subTitle prop to AtomicContentSwitch interface for consistent subtitles. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Monetize: Migrate header to @wordpress/admin-ui Page Replace NavigationHeader with Page component from @wordpress/admin-ui on the Monetize page. Header conditionally hidden on single paid subscription sub-pages (same behavior as before). Override the shared mixin's 660px max-width for the earn section, as Monetize content (cards, tables, payment plans) needs full width. Part of the Jetpack header unification effort (JETPACK-1361). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Move tabs closer to header * Fix mobile --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: Mikael Korpela <mikael@ihminen.org>
Both sections have full-width content (backup cards, scan results) that should not be constrained to 660px. The constrained content mixin is only appropriate for settings-style pages (Podcasting). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
505b5d6 to
abd6460
Compare
The admin-ui-page-layout-constrained-content mixin now accepts an optional $scope selector to limit the 660px constraint to specific page variants (e.g. upsell pages only). Scan and Backup use scoped constraint for upsell pages while keeping full width for the active dashboard. Podcasting uses unscoped (always constrained) which still works via the null default. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Change backup__main-wrap margins from 'initial' to 'auto' on WP.com so the content centers within the admin-ui Page container. The wrapper has its own width management via negative margins for JPC, but on WP.com it should use auto margins for proper centering. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The fixed desktop height caused content overflow within the admin-ui Page container. Let content determine its own height. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Traffic: Migrate header to @wordpress/admin-ui Page Replace NavigationHeader with Page component from @wordpress/admin-ui on the Traffic settings page. Add admin-ui-page-layout mixin for the marketing section. Part of the Jetpack header unification effort (JETPACK-1361). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Traffic: Add constrained content width Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add padding-top override for mobile focus-content layout to prevent content sitting under the masterbar on small screens. Remove unnecessary calc() wrappers around single CSS custom properties. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Header button should be compact (not a blocker for merging): The notice banner is still in the wrong spot above header; it should be in the content instead. I pushed a change (41822bc) to move it for backup, and I see it's also in Scan and Activity Log. However, now it's still too wide compared to the rest of the content:
|
|
This PR was split into multiple, lighter changes |












Part of JETPACK-1361
Proposed Changes
wpcom-upsell.tsxandwpcom-scan-upsell.tsx) fromNavigationHeaderto@wordpress/admin-uiPagecomponentwpcom-upsell.tsx,wpcom-backup-upsell.tsx, andwpcom-backup-upsell-placeholder.tsx) fromNavigationHeadertoPageJetpackTitlecomponent for the page title on all pagesscanandbackupsectionsMainfromwideLayouttofullWidthLayoutto let admin-ui handle content widthFollows the pattern established in the Subscribers migration (PR #109520).
Scan
Before:

After:
Backup
Before:

After:
Why are these changes being made?
@wordpress/admin-uiPage component, consistent with the Jetpack monorepo header unification.Testing Instructions
Scan
/scan/<site-slug>on a WP.com site without Scan (should show the upsell page)Backup
/backup/<site-slug>on a WP.com site without Backup (should show the upsell page)Pre-merge Checklist