address review feedback: rename notice to match new trigger
The notice now triggers on interface names (loopback / container-bridge only), not on zero traffic. Update the variable, i18n key, and English copy to match: - showNoTrafficNotice -> showLoopbackOnlyNotice - pages.infrastructure.charts.labels.netNoTraffic -> pages.infrastructure.charts.labels.loopbackOnlyNotice - English string rewritten to describe the loopback-only condition rather than "zero traffic on every interface" Other locales still hold the old string under the old key and will fall back to English until the translation pipeline picks up the new key. Tracked separately.
This commit is contained in:
1 parent
2810cd3562
commit
77b817778b
2 files changed
+4
-4
No files matched your search
@@ -92,14 +92,14 @@ export const InfraNetworkCharts = ({
|
||||
() => getChartConfigs(theme, checks, t),
|
||||
[theme, checks, t]
|
||||
);
|
||||
const showNoTrafficNotice =
|
||||
const showLoopbackOnlyNotice =
|
||||
chartConfigs.length > 0 && onlyContainerVisibleInterfaces(checks);
|
||||
|
||||
return (
|
||||
<Stack gap={theme.spacing(LAYOUT.XS)}>
|
||||
{showNoTrafficNotice && (
|
||||
{showLoopbackOnlyNotice && (
|
||||
<NoticeBanner severity="warning">
|
||||
{t("pages.infrastructure.charts.labels.netNoTraffic")}
|
||||
{t("pages.infrastructure.charts.labels.loopbackOnlyNotice")}
|
||||
</NoticeBanner>
|
||||
)}
|
||||
<Grid
|
||||
|
||||
@@ -844,7 +844,7 @@
|
||||
"memory": "Memory usage",
|
||||
"netBytesRecv": "{{name}} - Bytes Received",
|
||||
"netBytesSent": "{{name}} - Bytes Sent",
|
||||
"netNoTraffic": "Capture is reporting zero traffic on every interface. This is normal when Capture runs inside a container that can only see loopback interfaces — run Capture directly on the host to see real network activity.",
|
||||
"loopbackOnlyNotice": "Capture is only reporting loopback or container-bridge interfaces (lo, lo0, docker0). This is normal when Capture runs inside a container that can only see its own network namespace — run Capture directly on the host to see real network activity.",
|
||||
"temp": "Temp"
|
||||
}
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user