-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Open
Labels
[Package] Editor/packages/editor/packages/editor[Package] Notices/packages/notices/packages/notices[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Description
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:
- Code duplication: Each editor interface reimplements similar notice rendering logic
- Maintenance overhead: Changes to notice rendering require updates in multiple places
- Tight coupling: Notice rendering components are tied to editor-specific code, making them difficult to reuse
- 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
Labels
[Package] Editor/packages/editor/packages/editor[Package] Notices/packages/notices/packages/notices[Type] EnhancementA suggestion for improvement.A suggestion for improvement.