microsoft / microsoft/aspire

Add a way for a resource to hide sections in resource details

Open
#6,280 4 comments 0 reactions 0 assignees View on GitHub
area-app-model area-dashboard dashboard-resource-details
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Is your feature request related to a problem? Please describe the problem.

Resource detail has a bunch of sections:

* Resource properties
* Endpoints
* Volumes
* Health checks
* Env vars
* Relationships (future?)
* Wait for (future? - could be part of relationships)

Today they're almost all always shown (one exception is `Volumes` which is hardcoded to only shown for containers).

Always showing these sections is noisey and can be strange for custom resources where these things are never valid. For example, a Postgres database resource is never going to have endpoints, volumes, env vars, etc.

![Image](https://github.com/user-attachments/assets/31d4a1e6-1224-4d5c-98d6-5a71b1e4a6bb)

### Describe the solution you'd like

There should be a difference between "I don't have an endpoint", e.g. a .NET worker app, and "I don't support endpoints", e.g. a postgres database resource.

Perhaps there should be fields on a resource to say if it can have these things, e.g. `is_endpoints_supported`, `is_volumes_supported`. That data can be used to control these visibility of sections.

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.