Source sink validation
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
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)
📊 Test coverage report
| Metric | Coverage |
|---|---|
| Lines | 59.5% |
| Functions | 55.7% |
| Branches | 51.0% |
| Statements | 59.0% |
🐳 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) |
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 |
Design: https://www.figma.com/design/75tPOrtAyA5zUAKaDF2GKl/Geti?m=auto&node-id=4642-1684&t=geAfAaE8Dp8uZCSd-1
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.
Going further to keep the consistency for the terms we use, let's change CTA "Add & Connect" to "Add & Use"
Based on the design I see:
For In use there is not green checkmark but sth like a emphasized checkbox:
For testing connection, when it takes longer, there is:
instead of
When there is an error in source returned by testing connection we just show
without any error message that is returned by the server
And borders should be rounded.
Answering all queries in this comment:
- 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
- "In use checkmark" i think it's misleading, looks like a checkbox. Having the checkmark only has enough affordance
- Checking should be "testing connection..." -> CHANGED, but without the "in progress" part, because it's redundant
- Error state message -> I can add the error message but then the UI will be a two-liner at least. Is this ok?
- Button "connect" to "Add & use" -> CHANGED
- 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
⏱️ 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 |