feat(infrastructure): show notice when network charts have zero traffic

When Capture runs inside a container (typical for Docker Desktop), the
only visible interfaces are loopback, so every bytes_sent/bytes_recv
counter is zero and the charts render as flat lines without any
explanation. Users couldn't tell whether Capture was unreachable, the
monitor was broken, or there was just genuinely no traffic.

Detect the case where checks exist (chart configs were built) but every
interface across every check reports zero bytesSentPerSecond and
deltaBytesRecv, and render a NoticeBanner above the chart grid
explaining it and suggesting Capture be run on the host.

Adds pages.infrastructure.charts.labels.netNoTraffic to all 16 locales.
This commit is contained in:
gorkem-bwl committed 2026-04-28 23:57:14 -04:00
1 parent fef3f2c294
commit c89dbebe98
17 files changed
+80 -48

No files matched your search

+3 -2
View File
@@ -776,6 +776,7 @@
"memory": "Uso de memoria",
"netBytesRecv": "{{name}} - Bytes recibidos",
"netBytesSent": "{{name}} - Bytes enviados",
"netNoTraffic": "Capture no informa tráfico en ninguna interfaz. Esto es normal cuando Capture se ejecuta dentro de un contenedor que solo ve interfaces de loopback — ejecuta Capture directamente en el host para ver actividad de red real.",
"temp": "Temp"
}
},
@@ -1243,8 +1244,8 @@
"description": "Agregue monitores de ejemplo con fines demostrativos."
},
"removeMonitors": {
"title": "Reinicio del sistema",
"description": "Elimine todos los monitores de su sistema.",
"title": "Reiniciar sistema",
"description": "Eliminar todos los monitores del sistema.",
"dialog": {
"title": "¿Eliminar todos los monitores?",
"description": "Esto no se puede deshacer."