mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
### TL;DR Reorganized component registration in the effects module by grouping related components into separate functions. ### What changed? - Split the monolithic component registration into logical categories: - Root components (page, preview, edgeless) - Widgets (panels, toolbars, modals) - Edgeless toolbar components (tools, menus, buttons) - Edgeless panel components (alignment, color, style) - Edgeless editor components (text editors, label editors) - AI components (panels, placeholders) - Misc components (modals, loading, previews) - Added descriptive comments for each component group - Maintained all existing component registrations while improving code organization ### How to test? 1. Launch the application 2. Verify all components render correctly: - Check page/preview/edgeless views - Test toolbar functionality - Verify panels and modals work - Ensure AI features function properly - Validate edgeless editor capabilities ### Why make this change? Improves code maintainability and readability by: - Grouping related components together - Making it easier to find and modify specific component registrations - Providing better structure for future component additions - Reducing cognitive load when working with component registrations