Skip to content

Review Notes and Refine Notes: Add post type support check#444

Merged
dkotter merged 2 commits intoWordPress:developfrom
t-hamano:review-notes-post-type-support-check
Apr 20, 2026
Merged

Review Notes and Refine Notes: Add post type support check#444
dkotter merged 2 commits intoWordPress:developfrom
t-hamano:review-notes-post-type-support-check

Conversation

@t-hamano
Copy link
Copy Markdown
Contributor

@t-hamano t-hamano commented Apr 17, 2026

What?

Guards the Review Notes and the Refine Notes editor plugins behind a PostTypeSupportCheck so it only renders on post types that declare support for editor.notes.

Why?

These UIs were registered globally and rendered in the editor regardless of whether the current post type supports Notes.

Use of AI Tools

AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Opus 4.7
Used for: PR description drafting. The code change was authored and reviewed by me.

Testing Instructions

  1. On a post type that supports editor.notes (e.g. post), confirm these UIs load as before.
  2. On a post type that does not declare editor.notes support, confirm these UI no longer render in the editor.

Screenshots or screencast

Before After
before after

Changelog Entry

Changed - Render the Review Notes editor plugin only on post types that support editor.notes.

Open WordPress Playground Preview

@t-hamano t-hamano marked this pull request as ready for review April 17, 2026 10:37
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 17, 2026

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: t-hamano <[email protected]>
Co-authored-by: dkotter <[email protected]>

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

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.44%. Comparing base (b3b4914) to head (5271b21).
⚠️ Report is 7 commits behind head on develop.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop     #444   +/-   ##
==========================================
  Coverage      68.44%   68.44%           
  Complexity       846      846           
==========================================
  Files             56       56           
  Lines           4095     4095           
==========================================
  Hits            2803     2803           
  Misses          1292     1292           
Flag Coverage Δ
unit 68.44% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jeffpaul jeffpaul requested a review from dkotter April 17, 2026 13:19
@jeffpaul jeffpaul added this to the 0.8.0 milestone Apr 17, 2026
@jeffpaul jeffpaul moved this to Needs review in WordPress AI Planning & Roadmap Apr 17, 2026
Copy link
Copy Markdown
Collaborator

@dkotter dkotter left a comment

Choose a reason for hiding this comment

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

Code looks good here but we did recently merge in a "Refine Notes" experiment and it likely could benefit from the same check so would be great to see that added in this PR. See https://github.com/WordPress/ai/blob/7d9855757b09b087eb5abf0274ab5c0a4bc873d2/src/experiments/refine-notes/index.tsx

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@t-hamano t-hamano changed the title Review Notes: Add post type support check Review Notes and Refine Notes: Add post type support check Apr 17, 2026
@t-hamano
Copy link
Copy Markdown
Contributor Author

Thank you for your review. I have added the same check to the Refine Notes UI.

@dkotter dkotter merged commit e00455b into WordPress:develop Apr 20, 2026
18 of 20 checks passed
@github-project-automation github-project-automation Bot moved this from Needs review to Done in WordPress AI Planning & Roadmap Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants