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
@@ -769,6 +769,7 @@
"memory": "記憶體使用率",
"netBytesRecv": "{{name}} - 接收位元組",
"netBytesSent": "{{name}} - 發送位元組",
"netNoTraffic": "Capture 回報所有介面的流量皆為零。當 Capture 在只能看到回環介面的容器中執行時,這是正常情況——請直接在主機上執行 Capture 才能看到實際的網路活動。",
"temp": "溫度"
}
},
@@ -1236,8 +1237,8 @@
"description": "新增範例監控以供示範用途。"
},
"removeMonitors": {
"title": "系統重設",
"description": "從系統中移除所有監控。",
"title": "系統重置",
"description": "從系統中移除所有監視器。",
"dialog": {
"title": "移除所有監控?",
"description": "此操作無法復原。"