Repository navigation
Subscribers: Migrate header to @wordpress/admin-ui Page component - #109520
Merged
Merged
Conversation
Contributor
Jetpack Cloud Live (direct link)
Automattic for Agencies Live (direct link)
Dashboard Live (dotcom) (direct link)
|
CGastrell
marked this pull request as ready for review
March 24, 2026 17:20
Contributor
|
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 |
CGastrell
force-pushed
the
update/subscribers-page-migration
branch
from
March 24, 2026 17:23
bf5652f to
92641f4
Compare
CGastrell
force-pushed
the
update/subscribers-page-migration
branch
from
March 24, 2026 17:39
92641f4 to
5caadc7
Compare
simison
reviewed
Mar 24, 2026
Comment on lines
+222
to
+226
| .subscriber-data-views__title { | ||
| display: flex; | ||
| align-items: center; | ||
| gap: 8px; | ||
| } |
Member
There was a problem hiding this comment.
This bit can be removed; it was used for the manually composed heading+logo.
simison
reviewed
Mar 24, 2026
| @@ -196,6 +196,7 @@ | |||
| "@vgs/collect-js": "^0.7.2", | |||
| "@vgs/collect-js-react": "^2.0.0", | |||
| "@visx/glyph": "^3.12.0", | |||
| "@wordpress/admin-ui": "^1.8.0", | |||
Member
There was a problem hiding this comment.
This is old; new one is ^1.10.0
CGastrell
force-pushed
the
update/subscribers-page-migration
branch
from
March 24, 2026 18:24
e90c40f to
7898f79
Compare
simison
approved these changes
Mar 24, 2026
Adding @wordpress/admin-ui as a dependency to verify whether CI tests pass when the package is properly installed with yarn dedupe. This is a test PR — do not merge. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Adding @wordpress/admin-ui as a dependency. Pin @tanstack/react-router to 1.114.34 via resolutions to prevent yarn dedupe from upgrading it to 1.162.8+ which has breaking changes for Dashboard tests. The resolution forces @wordpress/route (admin-ui's transitive dep) to use the same TanStack Router version Dashboard already uses, avoiding both the version incompatibility and the React.use() issue in 1.168.3+. This is a test PR — do not merge. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace manual JetpackLogo + span with JetpackTitle component for consistency with other Jetpack pages. Also remove unused useDispatch import. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Bump @wordpress/admin-ui from ^1.8.0 to ^1.10.0 - Remove .subscriber-data-views__title CSS — was used for the manual logo+title span, no longer needed with JetpackTitle component Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Pin all @TanStack packages to the versions Dashboard currently uses, preventing yarn dedupe from upgrading them when @wordpress/admin-ui brings in newer requirements via @wordpress/route: - @tanstack/history: 1.114.29 - @tanstack/react-router: 1.114.34 - @tanstack/react-store: 0.7.7 - @tanstack/router-core: 1.114.33 - @tanstack/store: 0.7.7 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
CGastrell
force-pushed
the
update/subscribers-page-migration
branch
from
March 24, 2026 19:07
7898f79 to
c54e0c5
Compare
jeherve
approved these changes
Mar 25, 2026
9 tasks
This was referenced Mar 25, 2026
This was referenced Mar 25, 2026
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.
Resolves JETPACK-1361
Proposed Changes
@wordpress/admin-ui@^1.10.0as a dependency, matching the version used in JetpackNavigationHeaderto@wordpress/admin-ui'sPagecomponentJetpackTitlecomponent for the page title (consistent with other Jetpack pages)SubscribersHeadercomponent — header logic is now inline inSubscriberDataViewsfixMe()translation wrappersBased on @simison's work from PR #108876.
Why are these changes being made?
Aligning Jetpack pages in Calypso with the
@wordpress/admin-uiPage component, consistent with the Jetpack monorepo header unification and the direction WordPress admin is heading.Dependency resolution
@wordpress/admin-uitransitively depends on@tanstack/react-routervia@wordpress/route. Without pinning,yarn dedupeupgrades TanStack Router to versions that are incompatible with:React.use()(React 19 only), breaking the Webpack buildThe fix is to pin the full TanStack family to the versions Dashboard already uses:
This ensures a single copy of each package at Dashboard-compatible versions. See PR #109505 for the initial dependency analysis.
Long-term, these pins can be removed when:
@wordpress/admin-uimakes@wordpress/routeoptional (upstream Gutenberg fix), orTesting Instructions
/subscribers/<site-slug>on WP.comPre-merge Checklist