Skip to content

Conversation

@nielslyngsoe
Copy link
Member

@nielslyngsoe nielslyngsoe commented Nov 3, 2025

Uses the Property Editor UI Label over the extension name, but still fallback to the name if no label is defined.

Both for the display of the picked property editor and for the Data-Type name generation, when created via the Property-Type Create New Data-Type flow.

As well adding localization of it.

image

Copilot AI review requested due to automatic review settings November 3, 2025 11:52
@nielslyngsoe nielslyngsoe enabled auto-merge (squash) November 3, 2025 11:52
@nielslyngsoe nielslyngsoe added the category/ux User experience label Nov 3, 2025
Copy link
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 updates the data type workspace to use localized labels from property editor UI manifests. The changes ensure that property editor names are properly localized and prefer the meta.label field over the name field for display purposes.

Key Changes

  • Property editor UI names now use meta.label as the primary source with name as fallback
  • All property editor name displays are wrapped with localize.string() for proper localization
  • Consistent pattern applied across data type workspace and modal components

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
data-type-workspace.context.ts Updated to prefer meta.label over name when setting property editor UI name
data-type-details-workspace-property-editor-picker.element.ts Wrapped property editor UI name with localize.string() for display
data-type-picker-flow-modal.element.ts Updated to use meta.label with fallback chain and wrapped with localize.string()

…acceptance test

The reason for this is that the property-editor's alias and UI alias
are enough to identify the correct property-editor (RTE) for the
data-type configuration.
Copy link
Member

@leekelleher leekelleher left a comment

Choose a reason for hiding this comment

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

Tested out, looks good to me. 🚀

We had a failing acceptance test for the "Richtext editor" data-type. I've opted to remove the check for the name, as we also checking the property-editor's alias and UI alias, which is enough to verify that the data-type's configuration is the Tiptap property-editor.

@nielslyngsoe nielslyngsoe merged commit b68a6a9 into release/17.0 Nov 3, 2025
23 of 24 checks passed
@nielslyngsoe nielslyngsoe deleted the v17/hotfix/data-type-use-property-editor-ui-label-instead-of-name branch November 3, 2025 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants