Skip to content

Extract notice rendering components from @wordpress/editor to @wordpress/notices #74390

@gigitux

Description

@gigitux

Problem

Notice rendering logic is currently duplicated across multiple editor interfaces (@wordpress/edit-post, @wordpress/edit-site, @wordpress/edit-widgets, @wordpress/boot), with components tightly coupled to the @wordpress/editor package. This creates several issues:

  1. Code duplication: Each editor interface reimplements similar notice rendering logic
  2. Maintenance overhead: Changes to notice rendering require updates in multiple places
  3. Tight coupling: Notice rendering components are tied to editor-specific code, making them difficult to reuse
  4. Inconsistency: Different editor interfaces may have slightly different implementations, leading to inconsistent behavior

Proposed Solution

Extract notice rendering components from @wordpress/editor into the @wordpress/notices package, making them reusable across all editor interfaces and other contexts.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions