Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix[Meta Description | Excerpt Generation]: Use Notice to display warnings in modal#803

Merged
dkotter merged 2 commits into
WordPress:developfrom
yogeshbhutkar:fix-meta-description/notice-component
Jun 29, 2026
Merged

Fix[Meta Description | Excerpt Generation]: Use Notice to display warnings in modal#803
dkotter merged 2 commits into
WordPress:developfrom
yogeshbhutkar:fix-meta-description/notice-component

Conversation

@yogeshbhutkar

@yogeshbhutkar yogeshbhutkar commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

What, Why, and How?

This PR updates the meta description and excerpt generation modal to show the “content too short” message as a Notice instead of a small helper paragraph. The message is a warning that blocks generation, so presenting it as a warning notice at the top makes the state more visible and consistent with UI patterns.

Use of AI Tools

AI assistance: Yes
Tool(s): Codex
Model(s): GPT-5.5
Used for: To perform a code review.

Testing Instructions

  1. Create a new post with enough content to meet the meta description generation threshold.
  2. Generate a meta description, then save the post.
  3. Edit the post content so it falls below 50 words.
  4. Verify that the warning is displayed in a Notice component at the top of the modal.
  5. Similarly, check the warning Notice within the Excerpt Generation popover.

Screenshots or screencast

Before After
before after
before-02 after-02

Changelog Entry

Changed - Use Notice component to display warnings within experiment modals.

Open WordPress Playground Preview

@codecov

codecov Bot commented Jun 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.48%. Comparing base (ea79289) to head (940aba6).

Additional details and impacted files
@@            Coverage Diff             @@
##             develop     #803   +/-   ##
==========================================
  Coverage      76.48%   76.48%           
  Complexity      1869     1869           
==========================================
  Files             89       89           
  Lines           7990     7990           
==========================================
  Hits            6111     6111           
  Misses          1879     1879           
Flag Coverage Δ
unit 76.48% <ø> (ø)

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

☔ View full report in Codecov by Harness.
📢 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.

@yogeshbhutkar yogeshbhutkar changed the title Fix[Meta Description]: Use Notice to display warnings in modal Fix[Meta Description | Excerpt Generation]: Use Notice to display warnings in modal Jun 29, 2026
@yogeshbhutkar yogeshbhutkar marked this pull request as ready for review June 29, 2026 10:09
@github-actions

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: yogeshbhutkar <[email protected]>

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

@dkotter dkotter added this to the 1.1.0 milestone Jun 29, 2026
@dkotter dkotter merged commit 3aab091 into WordPress:develop Jun 29, 2026
26 of 31 checks passed
@yogeshbhutkar yogeshbhutkar deleted the fix-meta-description/notice-component branch June 30, 2026 04:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants