Skip to content

Collection: Add description support to default collection item card and ref elements#21654

Merged
nielslyngsoe merged 3 commits intomainfrom
v17/feature/description-support-to-default-collection-item-elements
Feb 6, 2026
Merged

Collection: Add description support to default collection item card and ref elements#21654
nielslyngsoe merged 3 commits intomainfrom
v17/feature/description-support-to-default-collection-item-elements

Conversation

@madsrasmussen
Copy link
Copy Markdown
Member

Adds support for displaying a description in the default collection item card and ref elements.

Screenshot of ref elements with a description:
Screenshot 2026-02-05 at 21 24 27

Screenshot of card elements with a description:
Screenshot 2026-02-05 at 21 24 39

Copilot AI review requested due to automatic review settings February 5, 2026 20:35
@madsrasmussen madsrasmussen added category/ux User experience category/dx Developer experience area/frontend labels Feb 5, 2026
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 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

Copy link
Copy Markdown
Member

@nielslyngsoe nielslyngsoe left a comment

Choose a reason for hiding this comment

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

Looks good

@nielslyngsoe nielslyngsoe enabled auto-merge (squash) February 6, 2026 16:29
@nielslyngsoe nielslyngsoe merged commit 32dbaf5 into main Feb 6, 2026
28 checks passed
@nielslyngsoe nielslyngsoe deleted the v17/feature/description-support-to-default-collection-item-elements branch February 6, 2026 17: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.

3 participants