Collection: Add description support to default collection item card and ref elements#21654
Merged
nielslyngsoe merged 3 commits intomainfrom Feb 6, 2026
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds support for displaying descriptions in the default collection item card and ref elements, enhancing the UI with additional contextual information for collection items.
Changes:
- Added two new TypeScript model interfaces (UmbWithDescriptionModel and UmbWithOptionalDescriptionModel) following the established pattern for optional properties
- Updated default collection item elements to support optional descriptions by extending their type definitions and passing the description field to the underlying UI components
- Enhanced the example picker data source with descriptions for all example items to demonstrate the new functionality
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/Umbraco.Web.UI.Client/src/packages/core/models/index.ts | Adds UmbWithDescriptionModel and UmbWithOptionalDescriptionModel interfaces following the same pattern as thumbnail models |
| src/Umbraco.Web.UI.Client/src/packages/core/collection/item/entity-collection-item-ref/default-collection-item-ref.element.ts | Extends item model with UmbWithOptionalDescriptionModel and passes description to uui-ref-node's detail attribute |
| src/Umbraco.Web.UI.Client/src/packages/core/collection/item/entity-collection-item-card/default-collection-item-card.element.ts | Extends item model with UmbWithOptionalDescriptionModel and passes description to umb-figure-card's description attribute |
| src/Umbraco.Web.UI.Client/examples/picker-data-source/example-custom-picker-collection-data-source.ts | Updates example interface to extend UmbWithDescriptionModel and adds description values to all example items |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds support for displaying a description in the default collection item card and ref elements.
Screenshot of ref elements with a description:

Screenshot of card elements with a description:
