Skip to content

Fields: migrate page-title Badge to UI Badge - #82499

Open
shail-mehta wants to merge 3 commits into
trunkfrom
update/fields-page-title-badge-ui
Open

Fields: migrate page-title Badge to UI Badge#82499
shail-mehta wants to merge 3 commits into
trunkfrom
update/fields-page-title-badge-ui

Conversation

@shail-mehta

Copy link
Copy Markdown
Member

Part of #82440

What?

Migrate the page-type badge in PageTitleView from the private @wordpress/components Badge to the public @wordpress/ui Badge.

Why?

We're deprecating wp-components Badge and migrating to UI Badge.

How?

Simple component switch.

Testing Instructions

  • Go to Settings → Reading and set a static Homepage and Posts page.
  • Go to Settings → Privacy and set a Privacy Policy page.
  • Open Appearance → Editor → Pages.
  • Confirm the title column shows:
    • Homepage next to the homepage
    • Posts Page next to the posts page
    • Privacy Policy Page next to the privacy policy page
  • Confirm badges still render as neutral/default labels

Screenshots or screencast

Before After
before-patch after-patch

Use of AI Tools

Yes (for PR Description)

@shail-mehta shail-mehta self-assigned this Sep 6, 2026
@shail-mehta shail-mehta added [Type] Enhancement A suggestion for improvement. [Package] Components /packages/components [Package] Fields /packages/fields [Package] UI /packages/ui labels Sep 6, 2026
@github-actions github-actions Bot removed [Package] Components /packages/components [Package] UI /packages/ui labels Sep 6, 2026
@coderabbitai

coderabbitai Bot commented Sep 6, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. To trigger a review, include @coderabbitai review in the PR description. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Team

Run ID: 2648aeff-6695-4e78-aa87-7aa5c4036cc3

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown

🤖 PR meta 🤖

📦 Bundle size

Size Change: -46 B (0%)

Total Size: 8 MB

📦 View Changed
Filename Size Change
build/scripts/editor/index.min.js 584 kB -46 B (-0.01%)

0c964a0 Run

⚡ Performance

Show the results

Client side metrics exclude the server response time.

front-end-block-theme

Metric 85a67c1 trunk % Change
timeToFirstByte 64.5 ms +4.81% -4.57% 62.15 ms +4.83% -13.6% 3.78%
largestContentfulPaint 98 ms +4.08% -6.12% 92 ms +8.7% -6.52% 6.52%
lcpMinusTtfb 32.3 ms +3.72% -3.41% 31.55 ms +7.13% -3.65% 2.38%
wpBeforeTemplate 34.27 ms +7.12% -12.37% 32.99 ms +2.85% -19.88% 3.88%
wpTemplate 24.68 ms +3.65% -2.07% 24.33 ms +4.52% -4.32% 1.44%
wpTotal 59.11 ms +5.79% -2.71% 57.45 ms +3.99% -12.86% 2.89%
wpMemoryUsage 7.52 MB +0% -0% 7.48 MB +0% -0% 0.46%
wpDbQueries 17 +0% -0% 17 +0% -0% 0%

front-end-classic-theme

Metric 85a67c1 trunk % Change
timeToFirstByte 43.45 ms +12.43% -6.79% 45.7 ms +11.38% -10.94% -4.92%
largestContentfulPaint 90 ms +6.67% -6.67% 92 ms +4.35% -8.7% -2.17%
lcpMinusTtfb 44.5 ms +5.96% -2.47% 44.45 ms +4.16% -2.14% 0.11%
wpBeforeTemplate 24.12 ms +23.26% -3.07% 25.34 ms +24.03% -8.8% -4.81%
wpTemplate 14.52 ms +4.68% -5.17% 14.9 ms +1.61% -4.36% -2.55%
wpTotal 40.2 ms +11.77% -6.92% 42.31 ms +9.57% -11.25% -4.99%
wpMemoryUsage 5.51 MB +0% -0% 5.47 MB +0% -0% 0.65%
wpDbQueries 14 +0% -0% 14 +0% -0% 0%

media-processing

Metric 85a67c1 trunk % Change
mediaProcessingJpeg 407.63 ms +0.21% -0.24% 413.79 ms +1.4% -1.05% -1.49%
mediaProcessingAvif 6365.15 ms +0.64% -0.05% 6390.99 ms +0.36% -0.52% -0.4%
mediaProcessingJpegToAvif 4540.11 ms +0.04% -0.15% 4546.94 ms +0.27% -0.1% -0.15%

media-upload

Metric 85a67c1 trunk % Change
jpegUploadProcessing 1453.4 ms +33.76% -2.15% 1424.82 ms +0.83% -0.94% 2.01%
pngUploadProcessing 205.96 ms +3.62% -3.92% 203.9 ms +2.26% -2.21% 1.01%
largeJpegUploadProcessing 1413.15 ms +0.86% -0.2% 1408.66 ms +0.69% -0.29% 0.32%
multipleImageUploadProcessing 1516.72 ms +1.35% -0.83% 1533.07 ms +0.46% -0.19% -1.07%

post-editor

Metric 85a67c1 trunk % Change
serverResponse 522.97 ms +3.18% -6.97% 504.61 ms +2.81% -5.67% 3.64%
firstPaint 252.15 ms +3.65% -10.36% 236.9 ms +4.25% -2.97% 6.44%
domContentLoaded 1286.2 ms +2.12% -1.53% 1272.35 ms +1.53% -1.75% 1.09%
loaded 1287.64 ms +2.11% -1.56% 1273.59 ms +1.53% -1.75% 1.1%
firstContentfulPaint 425 ms +4.84% -3.28% 418.05 ms +1.89% -7.89% 1.66%
firstBlock 3562.15 ms +0.32% -0.3% 3495.26 ms +0.8% -0.79% 1.91%
type 13.95 ms +6.59% -1.36% 14.96 ms +10.29% -11.56% -6.75%
typeWithoutInspector 13.35 ms +4.57% -2.85% 13.61 ms +5% -6.47% -1.91%
typeWithTopToolbar 18.01 ms +11.33% -7.55% 17.81 ms +10.72% -7.52% 1.12%
typeContainer 9.15 ms +9.84% -11.04% 8.82 ms +6.35% -12.36% 3.74%
focus 75.68 ms +8.84% -8.52% 76.24 ms +20.71% -11.39% -0.73%
firstFocus 169.29 ms +0% -0% 156.78 ms +0% -0% 7.98%
selectAll 602.52 ms +0.02% -3.8% 586.57 ms +1.94% -0.47% 2.72%
listViewOpen 69.03 ms +16.12% -16.01% 69.38 ms +6.56% -9.54% -0.5%
inserterOpen 22.97 ms +12.32% -4.88% 24.08 ms +9.51% -12.87% -4.61%
inserterHover 3.45 ms +12.46% -7.25% 3.24 ms +11.11% -9.26% 6.48%
inserterSearch 8.11 ms +14.92% -2.1% 7.57 ms +6.87% -5.94% 7.13%
loadPatterns 636.04 ms +5.31% -1.41% 633.51 ms +4.82% -2.94% 0.4%
wpTotal 512.36 ms +3.14% -7.17% 495.07 ms +2.54% -5.73% 3.49%
wpMemoryUsage 13.06 MB +0% -0% 13.02 MB +0% -0% 0.28%
wpDbQueries 54 +0% -1.85% 54 +0% -1.85% 0%

site-editor

Metric 85a67c1 trunk % Change
serverResponse 344.21 ms +2.67% -2.98% 339.99 ms +3.73% -4.7% 1.24%
firstPaint 183.62 ms +4.75% -9.87% 245.33 ms +37.99% -30.31% -25.15%
domContentLoaded 1074.53 ms +0.58% -1.22% 1056.55 ms +0.93% -0.5% 1.7%
loaded 1075.38 ms +0.57% -1.22% 1057.32 ms +0.94% -0.5% 1.71%
firstContentfulPaint 337.7 ms +3.74% -1.03% 340.11 ms +3.15% -4.66% -0.71%
firstBlock 3299.69 ms +0.34% -1.07% 3235.6 ms +1.57% -0.69% 1.98%
type 12.86 ms +8.32% -6.45% 11.69 ms +5.65% -6.67% 10.01%
navigate 95.62 ms +13.53% -23.37% 84.59 ms +5.36% -21.44% 13.04%
loadPatterns 1117.64 ms +10.14% -10.74% 1031.14 ms +21.76% -4.83% 8.39%
loadPages 1135.28 ms +0.26% -3.18% 1144.23 ms +4.37% -2.6% -0.78%
wpTotal 335.86 ms +2.75% -3.02% 331.33 ms +3.68% -4.59% 1.37%
wpMemoryUsage 12.07 MB +0% -0% 12.04 MB +0% -0% 0.23%
wpDbQueries 44 +0% -2.27% 44 +0% -2.27% 0%

0c964a0 Run

@shail-mehta
shail-mehta marked this pull request as ready for review September 6, 2026 09:15
@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: shail-mehta <shailu25@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@shail-mehta
shail-mehta requested review from mirka and simison September 6, 2026 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Package] Fields /packages/fields [Type] Enhancement A suggestion for improvement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant