Added Agent Availability screen

This commit is contained in:
2026-08-31 15:27:26 +02:00
parent e7508a4c8e
commit 0561109e3c
8 changed files with 171 additions and 30 deletions
+7 -7
View File
@@ -2,22 +2,22 @@
///
/// See the note in `EAgentType.dart` about ordering and [unknown].
enum EAgentStatus {
offline,
idle,
available,
working,
offline,
error,
unknown;
bool get isOnline => this == EAgentStatus.idle || this == EAgentStatus.working;
bool get isOnline => this == EAgentStatus.available || this == EAgentStatus.working;
String get displayName {
switch (this) {
case EAgentStatus.offline:
return 'Offline';
case EAgentStatus.idle:
return 'Idle';
case EAgentStatus.available:
return 'Available';
case EAgentStatus.working:
return 'Working';
case EAgentStatus.offline:
return 'Offline';
case EAgentStatus.error:
return 'Error';
case EAgentStatus.unknown: