Slider: fix duplicated property editor settings properties#22898
Conversation
…-range-minimum-property
|
Claude finished @nielslyngsoe's task in 1m 59s —— View job PR ReviewTarget: Removes the duplicate
Suggestions
Approved with Suggestions for improvementGood to go, but please carefully consider the importance of the suggestions. |
There was a problem hiding this comment.
Pull request overview
Fixes duplicate minimumRange settings property on the Slider property editor (declared both in the schema manifest and the UI manifest) and adds a defensive client-side check in the data type workspace that throws when duplicate setting aliases are merged from schema/UI/data-source manifests.
Changes:
- Remove duplicated
minimumRangeproperty and its default value from the Slider UI manifest, keeping the canonical definition on the schema manifest (with the descriptive text moved to the schema). - Add duplicate-alias detection in
UmbDataTypeWorkspaceContext.#mergeConfigPropertiesthat throws when two merged settings share an alias. - Minor refactor in
#transferConfigDefaultData: rename the loop variable fromdefaultDataItemtopropertyand remove an outdated TODO comment.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/Umbraco.Web.UI.Client/src/packages/property-editors/slider/Umbraco.Slider.ts | Adds a meaningful description to the schema's minimumRange property. |
| src/Umbraco.Web.UI.Client/src/packages/property-editors/slider/manifests.ts | Removes the duplicate minimumRange property and default-data entry from the UI manifest. |
| src/Umbraco.Web.UI.Client/src/packages/data-type/workspace/data-type-workspace.context.ts | Adds duplicate-alias detection on merged settings and renames a loop variable for clarity. |
* fix duplicate slider pe-settings properties * remove comment * avoid throws
Removes duplicate Property Editor settings and adds a client-side error when it happens.