Skip to content

Editor: Remove and deprecate the old inspector components - #87902

Open
ntsekouras wants to merge 2 commits into
trunkfrom
remove/old-inspector-components
Open

ntsekouras wants to merge 2 commits into
trunkfrom
remove/old-inspector-components

Conversation

@ntsekouras

@ntsekouras ntsekouras commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

What?

Part of: #76076
Follow up of: #85081

#85081 was a soft stabilization and kept the old inspector components, so we could revert easily during beta. This PR cleans them up.

The internal components of the old post summary are removed together with their styles (the summary itself, the status panel, blog title, posts per page, site discussion, last edited, format and sticky panels and the private excerpt and revisions variants).

The public ones that nothing renders anymore are deprecated, since they are part of wp.editor: PageAttributesOrder, PageAttributesPanel, PageAttributesParent, PageTemplate, PostAuthor, PostAuthorPanel, PostComments, PostDiscussionPanel, PostExcerpt, PostExcerptPanel, PostFeaturedImage, PostFeaturedImagePanel, PostFormat, PostLastRevision, PostLastRevisionPanel, PostPendingStatus, PostPingbacks, PostSchedulePanel, PostSticky, PostSyncStatus, PostTemplatePanel, PostURL, PostURLLabel, PostURLPanel and usePostURLLabel. They still work and log a deprecation warning with a link to the dev note. The tests of PageAttributesOrder and PageAttributesPanel are removed.

Also removes the internal summary example from the SlotFills docs, which still showed the old summary.

Notes

  1. PageAttributesOrder, PostLastRevisionPanel, PostPendingStatus, PostURLLabel and usePostURLLabel are also deprecated here, even though they were not rendered even before the DataForm inspector.
  2. I didn't deprecate the *Check components (PostAuthorCheck, PostScheduleCheck, etc..), since they are generic checks that plugins could still use. We could consider that in a follow up though.

Testing Instructions

  1. Open a post, a page and a template in the post and site editor and smoke test the inspector.
  2. Everything should work as before.

Use of AI Tools

Generated with Opus 5.5 and adjusted/reviewed manually.

@ntsekouras ntsekouras added the [Type] Code Quality Issues or PRs that relate to code quality label Dec 3, 2026
@ntsekouras ntsekouras self-assigned this Dec 3, 2026
@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

🤖 PR meta 🤖

Preview in WordPress Playground Preview in Storybook

🎉 Props

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: ntsekouras <ntsekouras@git.wordpress.org>

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


Props Bot commands

You can trigger Props Bot actions by commenting on this PR:

  • @propsbot add <username> to give props to a GitHub user. Requires write access.
  • @propsbot remove <username> to leave a user out of the props. Requires write access.
  • @propsbot refresh to refresh this list. Adding the props-bot label works too.

Updated as activity occurs, without notifying anyone named here. Add the props-bot label to refresh.

📦 Bundle size

Size Change: -451 B (-0.01%)

Total Size: 8.85 MB

📦 View Changed
Filename Size Change
build/scripts/editor/index.min.js 575 kB +329 B (+0.06%)
build/styles/editor/style-rtl.css 32.7 kB -187 B (-0.57%)
build/styles/editor/style-rtl.min.css 28.3 kB -210 B (-0.74%)
build/styles/editor/style.css 32.8 kB -178 B (-0.54%)
build/styles/editor/style.min.css 28.3 kB -205 B (-0.72%)

0d43712 Run

⚡ Performance

Show the results

Client side metrics exclude the server response time.

front-end-block-theme

Metric 77a2078 trunk % Change
timeToFirstByte 35.6 ms +16.01% -2.95% 41.65 ms +5.28% -8.16% -14.53%
largestContentfulPaint 60 ms +6.67% -6.67% 64 ms +15.63% -0% -6.25%
lcpMinusTtfb 22.8 ms +12.5% -7.68% 25 ms +16.4% -10.6% -8.8%
wpBeforeTemplate 18.95 ms +12.66% -2.74% 20.86 ms +11.07% -5.85% -9.16%
wpTemplate 13.92 ms +2.8% -4.89% 15.54 ms +13.13% -0.39% -10.42%
wpTotal 32.64 ms +15.96% -3.19% 37.58 ms +7.26% -6.23% -13.15%
wpMemoryUsage 7.76 MB +0% -0% 7.72 MB +0% -0% 0.45%
wpDbQueries 16 +0% -0% 16 +0% -0% 0%

front-end-classic-theme

Metric 77a2078 trunk % Change
timeToFirstByte 29.35 ms +11.75% -2.9% 32.65 ms +5.82% -4.29% -10.11%
largestContentfulPaint 56 ms +7.14% -7.14% 60 ms +0% -6.67% -6.67%
lcpMinusTtfb 25.05 ms +7.58% -5.19% 25.65 ms +4.29% -3.51% -2.34%
wpBeforeTemplate 16.88 ms +8.59% -3.79% 17.83 ms +10.77% -3.53% -5.33%
wpTemplate 10.13 ms +7.31% -3.36% 11.13 ms +3.05% -4.04% -8.98%
wpTotal 26.83 ms +12.93% -2.87% 29.55 ms +6.87% -4.64% -9.2%
wpMemoryUsage 6.44 MB +0% -0% 6.41 MB +0% -0% 0.56%
wpDbQueries 13 +0% -0% 13 +0% -0% 0%

media-processing

Metric 77a2078 trunk % Change
mediaProcessingJpeg 220.34 ms +4.23% -0.75% 231.61 ms +0.4% -2.28% -4.87%
mediaProcessingAvif 3606.01 ms +1.48% -0.86% 3708.66 ms +1.43% -0.52% -2.77%
mediaProcessingJpegToAvif 2566.88 ms +0.51% -1.99% 2595.75 ms +1.28% -0.08% -1.11%

media-upload

Metric 77a2078 trunk % Change
jpegUploadProcessing 1450.54 ms +1.1% -0.74% 1435.51 ms +0.9% -1.22% 1.05%
pngUploadProcessing 214.38 ms +5.18% -3.81% 195.46 ms +15.57% -2.33% 9.68%
largeJpegUploadProcessing 1444.38 ms +0.44% -0.34% 1438.58 ms +1.98% -0.32% 0.4%
multipleImageUploadProcessing 1530.99 ms +0.76% -0.4% 1530.77 ms +2.28% -2.79% 0.01%

post-editor

Metric 77a2078 trunk % Change
serverResponse 479.15 ms +1.58% -8.43% 459.91 ms +5.38% -4.73% 4.18%
firstPaint 447.34 ms +6.79% -15.63% 393.92 ms +11.53% -4.82% 13.56%
domContentLoaded 821.63 ms +2.17% -2.31% 815.69 ms +0.62% -1.21% 0.73%
loaded 823.27 ms +2.15% -2.3% 817.52 ms +0.6% -1.25% 0.7%
firstContentfulPaint 472.08 ms +5.15% -5.07% 454.58 ms +2.73% -1.89% 3.85%
firstBlock 2218.65 ms +7.8% -1.81% 2202.04 ms +0.51% -0.2% 0.75%
type 16.51 ms +2.54% -5.27% 17.09 ms +4.56% -5.97% -3.39%
typeWithoutInspector 16.39 ms +1.53% -4.76% 17.37 ms +5.47% -6.56% -5.64%
typeWithTopToolbar 22.15 ms +9.35% -4.06% 21.33 ms +5.44% -3.38% 3.84%
typeContainer 8.61 ms +12.2% -3.83% 8.49 ms +7.77% -8.83% 1.41%
focus 112.28 ms +4.49% -1.57% 101.01 ms +11.26% -1.87% 11.16%
firstFocus 260.05 ms +0% -0% 253.67 ms +0% -0% 2.52%
selectAll 434.29 ms +3.59% -3.15% 382.67 ms +1.66% -1.87% 13.49%
undo 30.6 ms +3.37% -3.4% 29.89 ms +3.61% -7.56% 2.38%
listViewOpen 40.68 ms +10.77% -3.39% 36.51 ms +7.09% -4.96% 11.42%
inserterOpen 38.52 ms +7.37% -5.01% 41.3 ms +7.34% -7.87% -6.73%
inserterHover 11.13 ms +7.19% -7.37% 10.6 ms +7.45% -11.79% 5%
inserterSearch 8.29 ms +3.38% -6.39% 8.03 ms +5.35% -8.97% 3.24%
loadPatterns 642.72 ms +4.25% -6.14% 640.7 ms +1.41% -4.08% 0.32%
wpTotal 469.26 ms +1.69% -8.56% 450.43 ms +5.43% -4.87% 4.18%
wpMemoryUsage 14.80 MB +0% -0% 14.76 MB +0% -0% 0.25%
wpDbQueries 55 +0% -0% 55 +0% -0% 0%

site-editor

Metric 77a2078 trunk % Change
serverResponse 319.96 ms +0.3% -9.27% 318.65 ms +2.51% -8.6% 0.41%
firstPaint 368.76 ms +2.08% -6.9% 378.51 ms +2.46% -1.03% -2.58%
domContentLoaded 658.97 ms +4.61% -1.01% 672.23 ms +2.81% -0.67% -1.97%
loaded 660.24 ms +4.61% -1.01% 673.58 ms +2.8% -0.68% -1.98%
firstContentfulPaint 373.78 ms +7.23% -3.78% 378.57 ms +5.64% -0.46% -1.27%
firstBlock 2106.85 ms +1.08% -2.53% 2129.31 ms +1.27% -1.14% -1.05%
type 15.56 ms +5.53% -7.2% 16.18 ms +7.29% -6.55% -3.83%
navigate 92.52 ms +4.77% -6.18% 100.19 ms +4.76% -5.57% -7.66%
loadPatterns 1240.91 ms +4.19% -4.83% 1350.22 ms +4.59% -13.12% -8.1%
loadPages 1010.79 ms +2.7% -4.22% 979.28 ms +6.11% -2.47% 3.22%
wpTotal 311.65 ms +0.27% -9.52% 310.26 ms +2.58% -8.88% 0.45%
wpMemoryUsage 12.84 MB +0% -0% 12.80 MB +0% -0% 0.28%
wpDbQueries 45 +0% -0% 45 +0% -0% 0%

0d43712 Run

🏁 Flaky tests

Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

Navigates the items list via UP/DOWN arrow keys in /test/e2e/specs/site-editor/dataviews-list-layout-keyboard.spec.js, passed after 1 failed attempt.
Error: expect(locator).toBeFocused() failed

Locator:  getByLabel('Page Two')
Expected: focused
Received: inactive
Timeout:  5000ms

Call log:
  - Expect "toBeFocused" getByLabel('Page Two') with timeout 5000ms
  - waiting for getByLabel('Page Two')
    14 × locator resolved to <button type="button" tabindex="-1" aria-pressed="false" id="view-list-0-208-item-wrapper" class="dataviews-view-list__item" aria-labelledby="view-list-0-208-label" aria-describedby="view-list-0-208-description"></button>
       - unexpected value "inactive"

    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/dataviews-list-layout-keyboard.spec.js:146:49

0d43712 Run

@github-actions github-actions Bot added the [Package] Editor /packages/editor label Dec 3, 2026
@ntsekouras
ntsekouras force-pushed the remove/old-inspector-components branch from 1b2a9da to b848f41 Compare December 3, 2026 12:32
See [core code](https://github.com/WordPress/gutenberg/tree/HEAD/packages/editor/src/components/sidebar/post-summary.jsx#L39).

```js
export default function PostSummary( { onActionPerformed } ) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I don't see any value in preserving an example like that with internal implementation, so I didn't port this.

@ntsekouras
ntsekouras force-pushed the remove/old-inspector-components branch from b848f41 to 0d43712 Compare December 3, 2026 12:46
@ntsekouras
ntsekouras marked this pull request as ready for review December 3, 2026 13:08
@ntsekouras
ntsekouras marked this pull request as draft December 3, 2026 13:09
@ntsekouras
ntsekouras marked this pull request as ready for review December 3, 2026 13:22

This branch has not been deployed

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

Labels

[Package] Editor /packages/editor [Type] Code Quality Issues or PRs that relate to code quality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant