Skip to content

Conversation

@bjarnef
Copy link
Contributor

@bjarnef bjarnef commented Dec 30, 2025

Prerequisites

  • I have added steps to test this contribution in the description below

Description

The collection view for datatypes didn't show fallback icon as in tree, e.g. for a datatype not migrated/updated to new property editor UI:

image

Perhaps it should use this utility function throughout the code, so it doesn't hardcode icon-circle-dotted more than necessary.
The function could optional have a parameter to set fallback icon besides default.

/**
* Returns a fallback icon for an item
* @returns A fallback icon
*/
export function getItemFallbackIcon(): string {
return 'icon-circle-dotted';
}

Copilot AI review requested due to automatic review settings December 30, 2025 22:46
@github-actions
Copy link

github-actions bot commented Dec 30, 2025

Hi there @bjarnef, thank you for this contribution! 👍

While we wait for one of the Core Collaborators team to have a look at your work, we wanted to let you know about that we have a checklist for some of the things we will consider during review:

  • It's clear what problem this is solving, there's a connected issue or a description of what the changes do and how to test them
  • The automated tests all pass (see "Checks" tab on this PR)
  • The level of security for this contribution is the same or improved
  • The level of performance for this contribution is the same or improved
  • Avoids creating breaking changes; note that behavioral changes might also be perceived as breaking
  • If this is a new feature, Umbraco HQ provided guidance on the implementation beforehand
  • 💡 The contribution looks original and the contributor is presumably allowed to share it

Don't worry if you got something wrong. We like to think of a pull request as the start of a conversation, we're happy to provide guidance on improving your contribution.

If you realize that you might want to make some changes then you can do that by adding new commits to the branch you created for this work and pushing new commits. They should then automatically show up as updates to this pull request.

Thanks, from your friendly Umbraco GitHub bot 🤖 🙂

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 adds a fallback icon for datatypes in the collection view to match the behavior already present in the tree view. Previously, datatypes without an icon (such as those not yet migrated to new property editor UI) would not display any icon in the collection table view, while the tree correctly showed 'icon-circle-dotted' as a fallback.

Key Changes

  • Added fallback to 'icon-circle-dotted' icon for datatypes that don't have a specific icon assigned

@emmagarland
Copy link
Collaborator

And hello @bjarnef :)

Thanks for your PR to add a fallback icon for the datatype, along with the screenshots for replication. I like the idea of a standard fallback icon. Something HQ would be best to confirm but makes sense to avoid duplication.

One of the Core Collaborators team will review this as soon as possible.

As before, just wondering if is there an associated issue for this (to avoid duplication or rework)? If so, please could you link to it.

Thanks,
Emma

@emmagarland
Copy link
Collaborator

@bjarnef I don't suppose you have a quick way for me to add the files to replicate this in a test please (e.g. if you have a legacy property editor I can borrow)? No worries if not - I started a fresh install on my PC.

@bjarnef
Copy link
Contributor Author

bjarnef commented Jan 2, 2026

@emmagarland the simplest is probably to copy over e.g. a Umbraco v13 database (or change connection string to an Umbraco 13, e.g. with The Starterkit installed). When the property editor UI is missing, it should show this for the existing datatype instance.

@nielslyngsoe nielslyngsoe requested a review from engijlr January 8, 2026 16:24
Copy link
Contributor

@engijlr engijlr 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 to me, the fallback logic is correct and matches the tree view pattern 👍

@engijlr engijlr merged commit f47a456 into umbraco:main Jan 12, 2026
28 checks passed
@bjarnef bjarnef deleted the bugfix/datatype-table-fallback-icon branch January 12, 2026 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants