radius-project / dashboard

Frontend experience for Project Radius
15 stars 5 forks source link

Fix dashboard crashes #38

Closed willtsai closed 6 months ago

willtsai commented 8 months ago

Steps to reproduce

Currently, when the user navigates to a resource page in which nothing exists (e.g. navigating to recipes, applications, etc. in an environment that doesn't contain any of the respective resources) the dashboard crashes.

  1. Create a new Radius environment (e.g. rad env create test) that does not contain any applications or resources.
  2. Build and run the Radius Dashboard.
  3. Navigate to the Recipes listing page for the environment in the dashboard (e.g. http://localhost:3000/resources/default/Applications.Core/environments/dev/recipes)

Observed behavior

The page crashes with an error:

image

Desired behavior

The page handles the error and displays a message indicating that there are no recipes available to view in the current environment.

Workaround

No response

Additional context

Chrome Version 121.0.6167.85 (Official Build) (arm64)

Would you like to support us?

AB#11028

rynowak commented 8 months ago

@willtsai - adding good first issue like we discussed. This should be easy to repro and fix.