Repository navigation
Conversation
Jetpack Cloud Live (direct link)
Automattic for Agencies Live (direct link)
Dashboard Live (dotcom) (direct link)
|
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
marked this pull request as ready for review
March 24, 2026 14:21
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>
CGastrell
force-pushed
the
test/admin-ui-ci-check
branch
from
March 24, 2026 14:46
b229258 to
50c2dd2
Compare
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>
CGastrell
force-pushed
the
test/admin-ui-ci-check
branch
from
March 24, 2026 16:00
c05b733 to
a681c52
Compare
1 of 9 tasks
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.
Summary
Adds
@wordpress/admin-uias a dependency to wp-calypso, enabling use of thePage/Headercomponents for Jetpack page header unification (JETPACK-1361).Problem
Adding
@wordpress/admin-uipulls in@wordpress/routeas a transitive hard dependency, which in turn requires@tanstack/react-router@^1.120.5. This conflicts with the Dashboard's existing@tanstack/react-router@^1.114.34in two ways:yarn dedupeupgrades TanStack Router to the latest version satisfying both ranges (currently1.168.3), which:React.use()— a React 19-only API, causing Webpack build failures on React 18Without dedupe, Yarn creates a nested copy under
@wordpress/route/node_modules/, and CI'syarn dedupe --checkrejects the PR for having duplicated packages.Solution
Pin
@tanstack/react-routerto1.114.34(Dashboard's current version) viaresolutionsin rootpackage.json:This forces all consumers — Dashboard and
@wordpress/route— to use the same version. Single copy, no upgrade, no breaking changes. The resolution pins below@wordpress/route's declared^1.120.5range, but this is safe because:Page/Headercomponents, which don't touch@wordpress/routeat all@wordpress/routeonly re-exports TanStack Router APIs — the subset used is compatible with1.114.34Test results
Long-term considerations
This resolution is a workaround. Proper fixes include:
@wordpress/admin-uishould make@wordpress/routea peer/optional dependency (onlyBreadcrumbsneeds it;Page/Headerdon't)@wordpress/route's range