Skip to content

Traffic: Migrate header to admin-ui Page - #109577

Merged
CGastrell merged 2 commits into
update/jetpack-page-migrationsfrom
update/traffic-page-migration
Mar 26, 2026
Merged

CGastrell merged 2 commits into
update/jetpack-page-migrationsfrom
update/traffic-page-migration

Conversation

@CGastrell

@CGastrell CGastrell commented Mar 25, 2026 •

Copy link
Copy Markdown
Contributor

Part of JETPACK-1361
Depends on #109567

Proposed Changes

  • Migrates the Traffic settings page from NavigationHeader to @wordpress/admin-ui Page component
  • Uses JetpackTitle component for the page title (already present from PR Add Jetpack logo to Jetpack page headers #108987)
  • Adds admin-ui-page-layout mixin for the marketing section
  • Switches Main from wideLayout to fullWidthLayout

Follows the pattern established in the Subscribers migration (PR #109520).

Before:
image

After:
image

Why are these changes being made?

  • Aligning Jetpack pages in Calypso with the @wordpress/admin-ui Page component, consistent with the Jetpack monorepo header unification.

Testing Instructions

  • Navigate to /marketing/traffic/<site-slug>
  • Verify the Jetpack logo appears next to "Traffic" in the header
  • Verify the subtitle with "Learn more" link displays correctly
  • Verify page content (Blaze promo, SEO, analytics settings, etc.) renders properly
  • Test at different viewport widths (desktop and mobile)

Pre-merge Checklist

  • Has the general commit checklist been followed? (PCYsg-hS-p2)
  • Have you written new tests for your changes?
  • Have you tested the feature in Simple (P9HQHe-k8-p2), Atomic (P9HQHe-jW-p2), and self-hosted Jetpack sites (PCYsg-g6b-p2)?
  • Have you checked for TypeScript, React or other console errors?
  • Have you tested accessibility for your changes? Ensure the feature remains usable with various user agents (e.g., browsers), interfaces (e.g., keyboard navigation), and assistive technologies (e.g., screen readers) (PCYsg-S3g-p2).
  • Have you used memoizing on expensive computations? More info in Memoizing with create-selector and Using memoizing selectors and Our Approach to Data
  • Have we added the "[Status] String Freeze" label as soon as any new strings were ready for translation (p4TIVU-5Jq-p2)?
    • For UI changes, have we tested the change in various languages (for example, ES, PT, FR, or DE)? The length of text and words vary significantly between languages.
  • For changes affecting Jetpack: Have we added the "[Status] Needs Privacy Updates" label if this pull request changes what data or activity we track or use (p4TIVU-aUh-p2)?

@CGastrell
CGastrell changed the base branch from trunk to update/jetpack-page-migrations March 25, 2026 19:57
@CGastrell CGastrell self-assigned this Mar 25, 2026
@CGastrell
CGastrell marked this pull request as ready for review March 25, 2026 20:00
@matticbot

matticbot commented Mar 25, 2026 •

Copy link
Copy Markdown
Contributor

This PR modifies the release build for the following Calypso Apps:

For info about this notification, see here: PCYsg-OT6-p2

  • help-center
  • notifications
  • wpcom-block-editor

To test WordPress.com changes, run install-plugin.sh $pluginSlug update/traffic-page-migration on your sandbox.

@CGastrell
CGastrell force-pushed the update/traffic-page-migration branch from 3e20ade to 7c33050 Compare March 25, 2026 20:45

@vianasw vianasw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice! Working well both on desktop and mobile

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>
@CGastrell
CGastrell force-pushed the update/traffic-page-migration branch from 7c33050 to 85fc8b5 Compare March 26, 2026 16:14
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@CGastrell
CGastrell merged commit cf12439 into update/jetpack-page-migrations Mar 26, 2026
12 checks passed
@CGastrell
CGastrell deleted the update/traffic-page-migration branch March 26, 2026 18:05
@@ -1,3 +1,10 @@
@import "calypso/components/jetpack-page-layout/admin-ui-page";

body.is-section-marketing {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This looks suspicious and likely affects more pages in Calypso than just Traffic 🤔

In Podcasting there was the same case so I made the selector more specific.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yep, looks to be used elsewhere

.is-section-marketing .layout__content {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants