akuity / kargo

Application lifecycle orchestration
https://kargo.akuity.io/
Apache License 2.0
1.53k stars 132 forks source link

UI appears distorted when the project does not exist #2527

Open nitishfy opened 6 days ago

nitishfy commented 6 days ago

Checklist

Description

If you delete the project and refresh the UI for the deleted project path, the UI will appear distorted.

Screenshots

image

Steps to Reproduce

Go to the /project/unknown-project endpoint of the kargo and you'll see the UI a bit distorted.

Version

Client Version: v0.8.7
Server Version: v0.8.7
krancour commented 6 days ago

When that Project view initially loads, I think there's an opportunity to perform a get project request and gracefully handle a 404.

That being said, the UI also periodically refreshes all elements, so if you delete a Project (using the CLI or something) and don't refresh the Project view, I think you're still going to end up seeing all these individual errors that result not from looking for a Project that doesn't exist, but result from looking for things like Warehouses, Stages, and Freight belonging to a Project that no longer exists.

I'm not sure of the best way to deal with this.

cc @rbreeze @Marvin9 @rpelczar you guys probably have much better insight into how to improve the UX here.