Skip to content

Conversation

@KevinDavilaDotCMS
Copy link
Contributor

@KevinDavilaDotCMS KevinDavilaDotCMS commented Jan 5, 2026

style.editor.mechanis.mov

This PR fixes: #34085

kevindaviladev and others added 12 commits December 29, 2025 17:13
…chine functionality and code cleanup

- Added time machine capabilities to manage state history for optimistic updates in the style editor.
- Cleaned up code formatting and ensured consistent use of semicolons and newlines across various files.

These changes improve the maintainability and functionality of the style editor, allowing for better state management and user experience.
…gement

- Refactored the style editor form component to utilize a dedicated form builder service, enhancing form creation and management.
- Removed unused imports and cleaned up code for better readability.
- Updated methods for extracting and updating style properties to streamline functionality and improve performance.
- Ensured consistent handling of form values during rollback operations.

These changes enhance the maintainability and efficiency of the style editor, providing a more robust user experience.
…nger import

- Removed the test button from the edit-ema editor component to streamline the UI.
- Updated the import path for the UveIframeMessengerService to reflect its new location.
- Cleaned up console log statements in the contentlet tools component for better code clarity.
- Adjusted style properties handling in the GraphQL utility functions for consistency.

These changes enhance the maintainability of the code and improve the overall user experience in the edit-ema editor.
- Removed unused imports from the edit-ema editor component and style editor form builder service for improved clarity.
- Updated import paths for consistency across components, ensuring better maintainability.
- Streamlined the GraphQL utility functions by adjusting import statements, enhancing code readability.

These changes contribute to a cleaner codebase and facilitate easier future modifications.
…tyle-editor-for-real-time-headless-rendering
…e and debounce functionality

- Integrated MessageService for user notifications on style property saves, improving user feedback.
- Implemented a debounce mechanism for form value changes to optimize performance and reduce unnecessary API calls.
- Updated variable names for consistency and clarity, ensuring better maintainability.
- Cleaned up code and imports across the style editor component and related files.

These changes enhance the user experience and performance of the style editor, providing timely feedback and efficient state management.
…tyle-editor-for-real-time-headless-rendering
- Enhanced GraphQLResponse type to utilize DotCMSPageResponse for better type safety and clarity.
- Adjusted SaveStylePropertiesPayload interface to reorder properties for consistency.
- Improved formatting of DialogAction interface for better readability.

These changes aim to improve code maintainability and type accuracy in the style editor component.
@KevinDavilaDotCMS KevinDavilaDotCMS changed the title [test] 34085 task implement optimistic updates in style editor for real time headless rendering ii chore(style-editor): Implement optimistic updates for real time headless rendering Jan 6, 2026
…form

- Introduced linkedSignal for tracking rollback detection based on currentIndex.
- Updated rollback detection logic to simplify form restoration on index decrease.
- Enhanced error handling in the save function to log errors during style property saves.

These changes improve the functionality and reliability of the style editor, ensuring better user experience during undo operations.
@KevinDavilaDotCMS KevinDavilaDotCMS added this pull request to the merge queue Jan 6, 2026
Merged via the queue into main with commit 98de141 Jan 7, 2026
21 checks passed
@KevinDavilaDotCMS KevinDavilaDotCMS deleted the 34085-task-implement-optimistic-updates-in-style-editor-for-real-time-headless-rendering-II branch January 7, 2026 00:21
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.

[TASK] Implement Optimistic Updates in Style Editor for Real-Time Headless Rendering

6 participants