Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ResourceStateSnapshot.Style being ignored in WithInitialState #7306

Open
afscrome opened this issue Jan 28, 2025 · 0 comments
Open

ResourceStateSnapshot.Style being ignored in WithInitialState #7306

afscrome opened this issue Jan 28, 2025 · 0 comments
Labels
area-dashboard untriaged New issue has not been triaged

Comments

@afscrome
Copy link
Contributor

Take the following:

builder.AddResource(new Dummy("info"))
    .WithInitialState(new CustomResourceSnapshot { Properties = [], ResourceType = "test", State = new("Info", KnownResourceStateStyles.Info) });
builder.AddResource(new Dummy("warn"))
    .WithInitialState(new CustomResourceSnapshot { Properties = [], ResourceType = "test", State = new("Warn", KnownResourceStateStyles.Warn) });
builder.AddResource(new Dummy("error"))
    .WithInitialState(new CustomResourceSnapshot { Properties = [], ResourceType = "test", State = new("Error", KnownResourceStateStyles.Error) });
builder.AddResource(new Dummy("success"))
    .WithInitialState(new CustomResourceSnapshot { Properties = [], ResourceType = "test", State = new("Success", KnownResourceStateStyles.Error) });

class Dummy(string name) : Resource(name)
{

}

I would expect each of these resources state columns to show up with different styles, however they all show up with warning icons.

Image

@davidfowl davidfowl added area-dashboard untriaged New issue has not been triaged labels Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-dashboard untriaged New issue has not been triaged
Projects
None yet
Development

No branches or pull requests

2 participants