Skip to content

Edit Post: Refactor MetaBoxesSection to use data hooks#79433

Merged
Mamaduka merged 1 commit into
trunkfrom
refactor/meta-boxes-section-data-hooks
Jun 23, 2026
Merged

Edit Post: Refactor MetaBoxesSection to use data hooks#79433
Mamaduka merged 1 commit into
trunkfrom
refactor/meta-boxes-section-data-hooks

Conversation

@Mamaduka

Copy link
Copy Markdown
Member

What?

Refactors MetaBoxesSection from the legacy withSelect HoC to the useSelect hook, and collapses the file to a single named export (dropping the now-redundant default export). Updates the consumer and unit tests accordingly. No behavior change.

Testing Instructions

Smoke test metaboxes preferences, which I think also has e2e test coverage.

Use of AI Tools

Assisted By Claude.

Refactors MetaBoxesSection from the legacy withSelect HoC to the useSelect hook, and collapses the file to a single named export (dropping the now-redundant default export). Updates the consumer and unit tests accordingly. No behavior change.
@Mamaduka Mamaduka self-assigned this Jun 23, 2026
@Mamaduka Mamaduka added [Type] Code Quality Issues or PRs that relate to code quality [Package] Edit Post /packages/edit-post labels Jun 23, 2026
@Mamaduka Mamaduka requested a review from ntsekouras June 23, 2026 09:13
@github-actions

github-actions Bot commented Jun 23, 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: Mamaduka <[email protected]>
Co-authored-by: ntsekouras <[email protected]>

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

@github-actions

Copy link
Copy Markdown

Size Change: -53 B (0%)

Total Size: 7.51 MB

📦 View Changed
Filename Size Change
build/modules/content-types/index.min.js 159 kB -14 B (-0.01%)
build/scripts/block-editor/index.min.js 381 kB +4 B (0%)
build/scripts/edit-post/index.min.js 52.9 kB -22 B (-0.04%)
build/scripts/edit-site/index.min.js 299 kB -4 B (0%)
build/scripts/editor/index.min.js 474 kB -17 B (0%)

compressed-size-action

@Mamaduka Mamaduka requested a review from tyxla June 23, 2026 09:29
@github-actions

Copy link
Copy Markdown

Flaky tests detected in 7f4ff5a.
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.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/28015474098
📝 Reported issues:

@ntsekouras ntsekouras 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.

LGTM, thanks!

@Mamaduka Mamaduka merged commit c9d8a30 into trunk Jun 23, 2026
53 checks passed
@Mamaduka Mamaduka deleted the refactor/meta-boxes-section-data-hooks branch June 23, 2026 14:02
@github-actions github-actions Bot added this to the Gutenberg 23.5 milestone Jun 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Package] Edit Post /packages/edit-post [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