Skip to content

Property Editors: Improve Missing Property Editor UI and allow save/publish#20104

Merged
iOvergaard merged 31 commits intomainfrom
v16/feature/non-existing-property-editor-allow-saving
Sep 18, 2025
Merged

Property Editors: Improve Missing Property Editor UI and allow save/publish#20104
iOvergaard merged 31 commits intomainfrom
v16/feature/non-existing-property-editor-allow-saving

Conversation

@lauraneto
Copy link
Copy Markdown
Contributor

@lauraneto lauraneto commented Sep 8, 2025

This was done on top of #19997 and adjusts the code so that the document can still be saved, even though it contains missing property editors.
In order to test, follow the steps in #19997 and attempt to save the content.

While working on this ticket I also did some additional UI changes to improve the editor and developer experience, by collapsing the content instead of using a modal and adding more information (data type and property editor alias).
Recording 2025-09-16 at 11 38 43

lauraneto and others added 24 commits August 22, 2025 18:44
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ing editor

Same logic as for when the property is readonly.
Base automatically changed from v16/feature/non-existing-property-editor to main September 10, 2025 09:20
@lauraneto lauraneto marked this pull request as ready for review September 16, 2025 11:45
Copilot AI review requested due to automatic review settings September 16, 2025 11:45
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR modifies the handling of missing property editors to allow content saving even when properties contain editors that are no longer available. The changes improve the user experience by replacing modal dialogs with collapsible UI elements and providing more detailed information about missing property types.

Key changes:

  • Modified property validation to handle missing property editors gracefully rather than throwing exceptions
  • Replaced modal-based UI with collapsible details display in the missing property editor component
  • Updated localization strings to provide clearer guidance to users

Reviewed Changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
PropertyValidationService.cs Added fallback to MissingPropertyEditor when property editor is not found, allowing validation to proceed
PropertyValidationServiceTests.cs Added test for missing property editor validation and updated constructor calls
VariationTests.cs Updated PropertyValidationService constructor call to include new parameter
ContentEditingServiceBase.cs Modified to return existing property value instead of null when property editor is missing
property-editor-ui-missing.element.ts Completely redesigned UI from modal-based to collapsible details with data type information
Multiple modal files Removed modal-related code as it's no longer needed
Language files Updated localization strings for the new UI approach

@lauraneto lauraneto changed the title Non existing property editor - Allow saving content Non existing property editor: Allow saving content Sep 17, 2025
Copy link
Copy Markdown
Contributor

@kjac kjac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This tests out really great 👍

I left a few comments for you to consider.

@lauraneto lauraneto changed the title Non existing property editor: Allow saving content Missing property editor: Allow saving content Sep 17, 2025
@lauraneto lauraneto changed the title Missing property editor: Allow saving content Property Editors: Improve Missing Property Editor UI and allow save/publish Sep 17, 2025
@lauraneto lauraneto requested a review from kjac September 17, 2025 16:17
Copy link
Copy Markdown
Contributor

@kjac kjac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great to me 💯

@iOvergaard iOvergaard merged commit fd0ccc5 into main Sep 18, 2025
27 checks passed
@iOvergaard iOvergaard deleted the v16/feature/non-existing-property-editor-allow-saving branch September 18, 2025 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants