Show indicator of pipeline health
In Geti 3.0, a user can enable/disable a pipeline, but there's no proper way to check if its components (source, sink, model) are actually healthy and doing work.
#6104 introduces a new /pipeline:health endpoint: the UI can query it to get information about the pipeline health. The goal of this ticket is to display such information in a way that's useful for the user. I propose a green/red status indicator, with the possibility to expand to see more fine-grained information (per-component status, error messages, etc...).
@mariuszwaclawczyk can you help us design the pipeline status indicator? Refer to #6104 for a description of the information that can be returned by the server.
I do not see significant value in displaying a global green/red status indicator across the application. However, I do recognize the importance of notifying users when an issue occurs. In my view, a simple notification mechanism that informs users about problems should be sufficient.
The rationale behind this is straightforward: the relevance of pipeline component status depends heavily on the user’s current context. For example, when a user is browsing the datasets or models pages, the status of a pipeline component adds little meaningful value. In contrast, when the user is working within the inference view, they already have access to the full pipeline configuration and all relevant details, making status visibility more appropriate in that context.
I do not see significant value in displaying a global green/red status indicator across the application. However, I do recognize the importance of notifying users when an issue occurs. In my view, a simple notification mechanism that informs users about problems should be sufficient.
@mariuszwaclawczyk the status indicator that I suggested is only meant for the Inference page, it won't show in the Models and Dataset page. Anomalib Studio for example has a status indicator in the bottom-left corner of the page:
In our case, the status indicator could be shown next to the "Enable pipeline" and the status could be one of the following:
- 🟢 Running
- ⚫ Idle
- 🔴 Problems detected
As for the notification approach, it's more challenging to implement and it's not clear when such notification should be displayed. What if the camera stops working while the user is in the annotator? What if the user dismisses the notification, can he see the error message again? What if the user closes and reopens the browser?
Notifications are good to signal events, but a problem in the pipeline is not an event, it is a persistent condition that doesn't change until the user takes action. A status indicator fits better.
@leoll2 I would rather adapt the exact placement of the indicator to match what Anomalib Studio has. I’m not fully convinced that placing it next to "Enable pipeline" is the best location for this kind of indicator.
I would rather adapt the exact placement of the indicator to match what Anomalib Studio has.
Sounds good to me, I don't have a strong opinion on where the indicator should be placed, as long as it's visible in the Inference page.
Design: https://www.figma.com/design/75tPOrtAyA5zUAKaDF2GKl/Geti?node-id=10380-1933