Element Picker: fixes "Not Found" name on removal prompt#22922
Conversation
This follows PR #22915, which fixes the Entity Data Picker's removal confirmation message with the entity's name.
|
Claude finished @leekelleher's task in 1m 35s —— View job PR ReviewTarget: Adds
No Critical, Important, or Suggestion findings. The implementation is minimal and correct:
ApprovedThis looks good to be merged as-is, but please do a manual sanity check and testing before merging. |
There was a problem hiding this comment.
Pull request overview
This PR updates the Elements “tree picker” data source to provide an item data resolver so that picked element items can resolve their display name (and related metadata) correctly in UI flows like the remove-confirmation dialog, aligning the Element Picker behavior with the resolver-based fix introduced for the Entity Data Picker.
Changes:
- Adds
createItemDataResolvertoUmbElementTreePickerDataSource. - Uses
UmbElementItemDataResolverto resolve element item display data via the consuming host context.
for consistency with other data-source code.
Description
When deleting an item from the Element Picker, the removal confirmation message would have the name "Not Found". This was due to a missing feature in the Entity Data Picker, which has since been fixed in PR #22915... and this PR patches the Element Picker (data source) code.