training_extensions icon indicating copy to clipboard operation
training_extensions copied to clipboard

Source sink validation

Open jpggvilaca opened this issue 5 months ago • 9 comments

Summary

  • Add UI to test source/sink availability
  • Remove "Connected" badge as per Mariusz request

Closes https://github.com/open-edge-platform/geti/issues/6592

Screenshot 2026-06-25 at 15 32 12 Screenshot 2026-06-25 at 15 35 16

How to test

Checklist

  • [ ] The PR title and description are clear and descriptive
  • [ ] I have manually tested the changes
  • [ ] All changes are covered by automated tests
  • [ ] All related issues are linked to this PR (if applicable)
  • [ ] Documentation has been updated (if applicable)

jpggvilaca avatar Jun 23 '26 13:06 jpggvilaca

📊 Test coverage report

Metric Coverage
Lines 59.5%
Functions 55.7%
Branches 51.0%
Statements 59.0%

github-actions[bot] avatar Jun 23 '26 13:06 github-actions[bot]

🐳 Docker image sizes

Device Size
xpu 10802.4 MB (10.55 GB)
cpu 4024.1 MB (3.93 GB)
cuda 10219.3 MB (9.98 GB)

github-actions[bot] avatar Jun 23 '26 13:06 github-actions[bot]

I'd prefer not to have two states displayed at the same time (a red and a green dot).

I would propose just one consistent health status. It is clearer, safer, and easier for both users and developers to understand than combining overlapping states.

Why?

  • Removes ambiguity – a single status eliminates contradictory signals like “Available” and “Disconnected” shown together.
  • User-centric clarity – users care about one thing: does it work or not? A unified status answers that directly.
  • Reduces cognitive load – fewer states make the UI easier and faster to understand, especially in troubleshooting scenarios.
  • Aligns with UX best practices – one primary status with optional secondary details is a common and proven pattern.
  • Prevents misinterpretation – mixed green/red signals currently confuse users and can lead to wrong conclusions.
  • Simplifies backend logic – one “health status” model is easier to compute, maintain, and extend.
  • Improves error communication – allows attaching clear, actionable messages to a single state (e.g., “Camera unreachable”).

Health status:

Status Icon Example
Ready ✅ Camera in use
Issue ⚠️ Camera IP unreachable / MQTT temporarily down.
Error ❌ Invalid file path / missing credentials
Disabled ⏸️ Source disabled by user
Checking 🔄 "Testing connection..." in progress

mariuszwaclawczyk avatar Jun 24 '26 06:06 mariuszwaclawczyk

Design: https://www.figma.com/design/75tPOrtAyA5zUAKaDF2GKl/Geti?m=auto&node-id=4642-1684&t=geAfAaE8Dp8uZCSd-1

image

mariuszwaclawczyk avatar Jun 24 '26 06:06 mariuszwaclawczyk

In conclusion, I would like to add that the “Disconnected” label is misleading, as it suggests a technical issue rather than an intentional state. It would be clearer to replace it with “Not used in pipeline” or hide it entirely when the resource is simply not assigned.

mariuszwaclawczyk avatar Jun 24 '26 07:06 mariuszwaclawczyk

Going further to keep the consistency for the terms we use, let's change CTA "Add & Connect" to "Add & Use"

image

mariuszwaclawczyk avatar Jun 24 '26 07:06 mariuszwaclawczyk

Based on the design I see: For In use there is not green checkmark but sth like a emphasized checkbox: image For testing connection, when it takes longer, there is: image instead of image When there is an error in source returned by testing connection we just show image without any error message that is returned by the server image

And borders should be rounded.

dwesolow avatar Jun 25 '26 07:06 dwesolow

Answering all queries in this comment:

  1. Issue state ("ip unreachable, etc") doesnt exist, API doesnt expose this. so we cannot implement this. We either have an error or we dont. there is not "warning" state
  2. "In use checkmark" i think it's misleading, looks like a checkbox. Having the checkmark only has enough affordance
  3. Checking should be "testing connection..." -> CHANGED, but without the "in progress" part, because it's redundant
  4. Error state message -> I can add the error message but then the UI will be a two-liner at least. Is this ok?
  5. Button "connect" to "Add & use" -> CHANGED
  6. Disconnected -> as discussed offline, let's not use an icon for that, not only adds one extra state, but we would have to keep this in memory. Not having anything already implicitly means Disconnected

@mariuszwaclawczyk @dwesolow waiting for your replies to this, so i can proceed with addressing these

jpggvilaca avatar Jun 25 '26 08:06 jpggvilaca

⏱️ Backend import time — app.main

Accelerator Cumulative (s) Self (s)
cpu 4.583 0.003
xpu 4.528 0.003
cuda 4.346 0.003

github-actions[bot] avatar Jun 26 '26 12:06 github-actions[bot]