+ @if (!Enabled)
+ {
+
Disabled — not deployed. Enable the driver and save to start receiving live status.
+ }
+ else if (_error is not null)
+ {
+
SignalR error: @_error
+ }
+ else if (_snapshot is null)
+ {
+
Awaiting first snapshot…
+ }
+ else
+ {
+
+
+ Last success:
+ @if (_snapshot.LastSuccessfulReadUtc is { } t)
+ {
+ @HumanizeAge(t) ago
+ }
+ else
+ {
+ never
+ }
+
+
+ @if (_snapshot.ErrorCount5Min > 0)
+ {
+ @_snapshot.ErrorCount5Min error@(_snapshot.ErrorCount5Min == 1 ? "" : "s") / 5 min
+ }
+
+
+ @if (_snapshot.LastError is { Length: > 0 } lastError)
+ {
+
+ Last error
+ @lastError
+
+ }
+ }
+
+