Skip to content

Media editor: update comments and remove references to "cluster" - #87873

Merged
ramonjd merged 1 commit into
trunkfrom
update/media-editor-frame-comments
Dec 3, 2026
Merged

ramonjd merged 1 commit into
trunkfrom
update/media-editor-frame-comments

Conversation

@ramonjd

@ramonjd ramonjd commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

What?

Follow-up to #87871.

Rewords the media editor comments that call the frame's controls "clusters". They now name what they mean: MediaEditor.HistoryActions, the undo and redo buttons, or the MediaEditor sub-components a frame places.

It also drops "like the elements it replaces" from the frame context comment, since it describes the change that added the code rather than the code.

Why

"Clusters" reminds me of a breakfast cereal. And not a healthy one.

Comments only, no code changes.

Testing Instructions

Read the diff.

Name the sub-components and buttons the comments mean, and drop the
reference to elements the frame context replaced.
@ramonjd ramonjd added [Feature] Media Anything that impacts the experience of managing media [Type] Code Quality Issues or PRs that relate to code quality labels 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: ramonjd <ramonopoly@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: 0 B

Total Size: 8.73 MB

306943d Run

⚡ Performance

Show the results

Client side metrics exclude the server response time.

front-end-block-theme

Metric 259c3e6 trunk % Change
timeToFirstByte 47.55 ms +7.89% -5.47% 45.65 ms +9.75% -4.27% 4.16%
largestContentfulPaint 76 ms +10.53% -5.26% 76 ms +0% -5.26% 0%
lcpMinusTtfb 27.5 ms +12.91% -11.09% 27.1 ms +11.99% -7.56% 1.48%
wpBeforeTemplate 24.34 ms +13.68% -4.31% 23.65 ms +11.88% -3.34% 2.92%
wpTemplate 18.74 ms +4.7% -5.39% 17.99 ms +5.56% -2.83% 4.17%
wpTotal 44.14 ms +8.31% -6.37% 42.15 ms +10.25% -4.58% 4.72%
wpMemoryUsage 7.75 MB +0% -0% 7.72 MB +0% -0% 0.45%
wpDbQueries 16 +0% -0% 16 +0% -0% 0%

front-end-classic-theme

Metric 259c3e6 trunk % Change
timeToFirstByte 38.2 ms +7.46% -6.41% 37.75 ms +13.11% -4.64% 1.19%
largestContentfulPaint 68 ms +2.94% -5.88% 68 ms +2.94% -5.88% 0%
lcpMinusTtfb 28.65 ms +4.01% -1.92% 28.2 ms +4.26% -1.42% 1.6%
wpBeforeTemplate 20.61 ms +13.83% -3.2% 20.88 ms +14.37% -3.4% -1.29%
wpTemplate 13.62 ms +4.99% -4.85% 13.51 ms +5.92% -2.22% 0.81%
wpTotal 35.41 ms +7.6% -7.26% 34.73 ms +11.49% -3.86% 1.96%
wpMemoryUsage 6.44 MB +0% -0% 6.41 MB +0% -0% 0.56%
wpDbQueries 13 +0% -0% 13 +0% -0% 0%

media-processing

Metric 259c3e6 trunk % Change
mediaProcessingJpeg 327.8 ms +0.47% -0.44% 329.1 ms +0.29% -0.7% -0.4%
mediaProcessingAvif 4884.73 ms +0.21% -0.39% 4860.41 ms +0.53% -0.28% 0.5%
mediaProcessingJpegToAvif 3408.55 ms +0.5% -0.08% 3410.36 ms +0.26% -0.19% -0.05%

media-upload

Metric 259c3e6 trunk % Change
jpegUploadProcessing 1476.55 ms +1.16% -1.39% 1456.41 ms +0.81% -0.45% 1.38%
pngUploadProcessing 251.92 ms +5.74% -6.36% 238.36 ms +2.4% -5.13% 5.69%
largeJpegUploadProcessing 1446.11 ms +0.51% -0.18% 1442.53 ms +0.87% -0.53% 0.25%
multipleImageUploadProcessing 1548.15 ms +0.82% -2.26% 1518.17 ms +1.15% -0.25% 1.97%

post-editor

Metric 259c3e6 trunk % Change
serverResponse 321.97 ms +1.73% -10.3% 326.35 ms +5.17% -6.48% -1.34%
firstPaint 314.49 ms +18.27% -5.98% 329.43 ms +9.03% -4.49% -4.54%
domContentLoaded 644.21 ms +4.55% -1.61% 666.76 ms +0.57% -0.92% -3.38%
loaded 645.42 ms +4.55% -1.61% 668.27 ms +0.56% -0.92% -3.42%
firstContentfulPaint 365.4 ms +7.69% -2.05% 372.11 ms +2.79% -1.03% -1.8%
firstBlock 1749.13 ms +2.16% -2.02% 1800.42 ms +0.94% -0.97% -2.85%
type 14.25 ms +4.98% -6.46% 14.98 ms +6.07% -8.08% -4.87%
typeWithoutInspector 14.21 ms +12.6% -8.59% 15.15 ms +5.81% -6.47% -6.2%
typeWithTopToolbar 18.76 ms +6.93% -3.89% 18.82 ms +6.11% -7.33% -0.32%
typeContainer 7.29 ms +13.85% -14.81% 7.03 ms +2.42% -8.25% 3.7%
focus 82.56 ms +9.36% -1.91% 84.96 ms +15.22% -1% -2.82%
firstFocus 234.31 ms +0% -0% 207.46 ms +0% -0% 12.94%
selectAll 300.33 ms +2.49% -0.22% 307.79 ms +4.05% -2.06% -2.42%
undo 24.42 ms +4.26% -4.05% 24.65 ms +3.08% -4.95% -0.93%
listViewOpen 31.53 ms +6.88% -6.03% 32.69 ms +10.13% -12.97% -3.55%
inserterOpen 31.92 ms +5.51% -7.3% 31.79 ms +9.03% -9.69% 0.41%
inserterHover 9.17 ms +10.25% -6.43% 9.38 ms +1.07% -5.22% -2.24%
inserterSearch 6.98 ms +6.45% -4.73% 7.07 ms +8.49% -8.49% -1.27%
loadPatterns 517.45 ms +0.8% -3.96% 534.95 ms +0.66% -9.61% -3.27%
wpTotal 313.39 ms +1.77% -10.54% 317.46 ms +5.19% -6.63% -1.28%
wpMemoryUsage 14.80 MB +0% -0% 14.76 MB +0% -0% 0.25%
wpDbQueries 55 +0% -0% 55 +0% -0% 0%

site-editor

Metric 259c3e6 trunk % Change
serverResponse 477.8 ms +1.72% -6.78% 478.82 ms +1.03% -3.53% -0.21%
firstPaint 450.76 ms +6.23% -9.36% 425.17 ms +13.63% -3.79% 6.02%
domContentLoaded 860.51 ms +2.96% -2.4% 850.35 ms +1.42% -0.12% 1.19%
loaded 862.33 ms +2.93% -2.41% 852.01 ms +1.41% -0.13% 1.21%
firstContentfulPaint 476.77 ms +4.79% -2.65% 481.86 ms +0.26% -2.35% -1.06%
firstBlock 2685.06 ms +1.9% -1.51% 2700.97 ms +1.04% -2.54% -0.59%
type 19.93 ms +24.23% -8.48% 19.14 ms +4.96% -7.58% 4.13%
navigate 114.69 ms +2.96% -1.06% 122.51 ms +1.78% -5.83% -6.38%
loadPatterns 1565.4 ms +4.74% -21.76% 1698.6 ms +3.66% -4.85% -7.84%
loadPages 968.14 ms +4.11% -1.6% 1001.85 ms +5.24% -1.59% -3.36%
wpTotal 468.33 ms +1.7% -6.96% 469.24 ms +1.05% -3.6% -0.19%
wpMemoryUsage 12.84 MB +0% -0% 12.80 MB +0% -0% 0.28%
wpDbQueries 45 +0% -0% 45 +0% -0% 0%

306943d 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.

should undo without broken temporary state in /test/e2e/specs/editor/blocks/image.spec.js, passed after 1 failed attempt.
Error: expect(received).toBe(expected) // Object.is equality

- Expected  - 2
+ Received  + 2

- <!-- wp:image -->
- <figure class="wp-block-image"><img alt=""/></figure>
+ <!-- wp:image {"id":22,"sizeSlug":"full","linkDestination":"none"} -->
+ <figure class="wp-block-image size-full"><img src="http://localhost:8891/wp-content/uploads/2026/12/400d6921-59e8-498f-a605-55feb1fa6e52.png" alt="" class="wp-image-22"/></figure>
  <!-- /wp:image -->
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/image.spec.js:432:49

306943d Run

@ramonjd ramonjd changed the title Media editor: Reword the frame comments that say "cluster" Media editor: update comments and remove references to "cluster" Dec 3, 2026
@ramonjd ramonjd self-assigned this Dec 3, 2026
@ramonjd
ramonjd requested a balanced review from Copilot December 3, 2026 06:37

Copilot AI 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.

🟢 Approval recommended

No active review issues remain for the media editor comment clarifications.

No open issues 🎉

What changed in this PR

Clarifies media editor comments following #87871. All changes are comment-only; runtime behavior is unchanged.

Changes:

  • Replaces “cluster” terminology with specific component, control, or group names.
  • Simplifies layout and context explanations and removes historical wording.
File Description
routes/​media-editor/​style.scss Clarifies toolbar alignment and header group comments.
packages/​media-editor/​src/​components/​media-editor/​index.tsx Simplifies comments about history controls, context, and component identity.
packages/​media-editor/​src/​components/​media-editor-modal/​style.scss Names HistoryActions explicitly in the scoped styling comment.

Review effort: Balanced

@ramonjd
ramonjd merged commit 0459400 into trunk Dec 3, 2026
112 checks passed
@ramonjd
ramonjd deleted the update/media-editor-frame-comments branch December 3, 2026 06:42
@github-actions github-actions Bot added this to the Gutenberg 24.7 milestone Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Feature] Media Anything that impacts the experience of managing media [Type] Code Quality Issues or PRs that relate to code quality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants