Skip to content

Allow resources to specify custom icons to use when displayed in the dashboard #8684

Description

In 9.2 we added resource icons to the resources table and graph views. We should go further and enable resources to specify their own custom icons to be used when displayed in the dashboard. This should be done in such a way that hosting integrations can specify custom icons for their resources, so that, e.g., the Redis resource could show up with the Redis icon in the dashboard.

The icon itself would need to be sent from the app host resource server to the dashboard process so would need to be serializable. I imagine we'd want to support SVG which has the advantage of being vector and text-based. We could support bitmap-based formats like PNG, ICO, JPG, etc., by encoding them as data-uris.

I imagine an API kinda like the following for using a file on disk:

builder.AddContainer("foo", "foo")
    .WithResourceIcon("./myicon.svg");

And perhaps something like this for something embedded, e.g. in a hosting integration:

builder.AddContainer("foo", "foo")
    .WithResourceIcon(EncodeAsDataUri(Resources.MyIcon), ImageFormat.Png);

Activity

  1. added
    area-app-model
    on Apr 10, 2025
  2. burtonrodman commented on Apr 11, 2025

    @burtonrodman

    maybe default to favicon where appropriate??

  3. added
    help wanted
    on May 2, 2025
  4. maddymontaquila commented on Jul 30, 2025

    @maddymontaquila
    Collaborator

    @copilot can you take a look at this but start by extending it to a known list of Blazor fluent UI icons that an integration can set?

    Keep in mind that currently we are using this helper and we do not want to break it. These should be the fallbacks and still the default.
    https://github.com/dotnet/aspire/blob/main/src/Aspire.Dashboard/Model/ResourceIconHelpers.cs#L13

  5. DamianEdwards commented on Aug 5, 2025

    @DamianEdwards
    MemberAuthor

    Re-opening as the PR added support for specifying the name of a known icon, but not setting custom icons.

  6. removed this from the 9.5 milestone on Oct 6, 2025
  7. 19 remaining items

  8. Omnideth commented on Feb 24, 2026

    @Omnideth

    I will look into it more, but I was looking into trying to add an icon for an integration I'm working on. If there is a way we could bundle an .svg into the integration so that it bubbles up, that would be ideal to me.

    I can look into the licensing layers, but I'm not sure I can add an icon into DEVICON to a more permissive license than the icon has. E.g. going from CC-BY-4.0 where the icon I was going to attribute and use is -> including it in Devicon which is MIT license based may not be allowed.

    I'll survive either way, but just noting that I don't think I could do what I wanted if we go with the FluentUI/Devicon endorsed route - though will not raise hell about it as I understand the impulse to go with a standardized UI Icon set.

  9. DamianEdwards commented on Feb 24, 2026

    @DamianEdwards
    MemberAuthor

    Omnideth (@Omnideth) I think we're 100% onboard with the idea of supporting custom icons along with FluentUI and Devicon, this is just about prioritization. To enable this in a scalable way and help address the dashboard distributable size I think the right approach will be something along the lines of #8684 (comment)

  10. maddymontaquila commented on May 14, 2026

    @maddymontaquila
    Collaborator

    This has been completed in #10760. Closing as resolved.

  11. DamianEdwards commented on May 14, 2026

    @DamianEdwards
    MemberAuthor

    Maddy Montaquila (@maddymontaquila) this is not done. This issue is about supporting more than FluenUI icons too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-app-modelarea-dashboardhelp wanted

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions