Skip to content

Real-time network monitor + outbound firewall — see & block every connection. Privacy-first, local-first, Rust fleet agent, SIEM exports, 8 languages. / Moniteur réseau temps réel + pare-feu sortant, agent de flotte Rust, exports SIEM. 100 % local.

ux: in-app explanations for LAN nodes, gateway, and edge semantics

MoneyLisaaf8b2250518f
diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx
index 1bbad2f..5d27a57 100644
--- a/frontend/src/App.jsx
+++ b/frontend/src/App.jsx
@@ -766,6 +766,20 @@ function Legend() {
<span style={{ fontSize: 10, color: '#94a3b8' }}>{label}</span>
</div>
))}
+ {/* EN: Edge semantics — the dashed/solid distinction is what tells a
+ newcomer "seen" from "actually exchanging data".
+ FR: Sémantique des arêtes — la distinction pointillés/plein dit au
+ néophyte « vu » versus « échange réel de données ». */}
+ <div style={{ borderTop: '1px solid #334155', marginTop: 6, paddingTop: 6 }}>
+ <div style={{ display: 'flex', alignItems: 'center', gap: 8, marginBottom: 4 }}>
+ <span style={{ width: 14, borderTop: '2px solid #64748b', flexShrink: 0 }} />
+ <span style={{ fontSize: 9, color: '#64748b' }}>{t('legend_edge_solid')}</span>
+ </div>
+ <div style={{ display: 'flex', alignItems: 'center', gap: 8 }}>
+ <span style={{ width: 14, borderTop: '2px dashed #64748b', flexShrink: 0 }} />
+ <span style={{ fontSize: 9, color: '#64748b' }}>{t('legend_edge_dashed')}</span>
+ </div>
+ </div>
</div>
)
}
diff --git a/frontend/src/components/Sidebar.jsx b/frontend/src/components/Sidebar.jsx
index 9076982..47302d5 100644
--- a/frontend/src/components/Sidebar.jsx
+++ b/frontend/src/components/Sidebar.jsx
@@ -185,6 +185,21 @@ function Stat({ label, value, color }) {
)
}
+/** EN: Small explanatory note in the detail card — muted box, coloured
+ * left border. / FR: Petite note explicative dans la fiche détail —
+ * cadre discret, bordure gauche colorée. */
+function Hint({ children, accent = '#334155' }) {
+ return (
+ <div style={{
+ marginTop: 8, padding: '6px 8px', fontSize: 9, lineHeight: 1.5,
+ color: '#64748b', background: '#1e293b', borderRadius: 6,
+ borderLeft: `2px solid ${accent}`,
+ }}>
+ {children}
+ </div>
+ )
+}
+
/** EN: One row of the LAN device list. / FR: Une ligne de la liste d'appareils LAN. */
function DeviceRow({ device }) {
const { t } = useT()
@@ -278,34 +293,21 @@ function NodeDetail({ node, onWhitelist }) {
</div>
))}
- {/* EN: "What's happening" hint — an anonymous node is normal, not a
- threat: identification may simply not have resolved yet.
- FR: Indice « qu'est-ce qui se passe » — un nœud anonyme est normal,
- pas une menace : l'identification n'est simplement pas encore
- résolue. */}
- {anonymous && (
- <div style={{
- marginTop: 8, padding: '6px 8px', fontSize: 9, lineHeight: 1.5,
- color: '#64748b', background: '#1e293b', borderRadius: 6,
- borderLeft: '2px solid #334155',
- }}>
- {t(isLan ? 'hint_unidentified' : 'hint_unresolved')}
- </div>
+ {/* EN: "What's happening" hints — teach, don't alarm. Priority order:
+ gateway → LAN idle/active → still-anonymous → private MAC.
+ FR: Indices « qu'est-ce qui se passe » — expliquer, pas alarmer.
+ Priorité : passerelle → LAN inactif/actif → encore anonyme →
+ MAC privée. */}
+ {node.is_gateway && <Hint>{t('hint_gateway')}</Hint>}
+ {isLan && !node.is_gateway && (
+ <Hint>
+ {(node.bytes || 0) > 0 ? t('hint_lan_active', fmt(node.bytes)) : t('hint_lan_idle')}
+ </Hint>
)}
-
- {/* EN: Randomized-MAC note — iOS/Android hide their real MAC, so "no
- vendor" is expected, not suspicious.
- FR: Note MAC randomisée — iOS/Android masquent leur vraie MAC, donc
- « pas de fabricant » est attendu, pas suspect. */}
- {node.private_mac && (
- <div style={{
- marginTop: 8, padding: '6px 8px', fontSize: 9, lineHeight: 1.5,
- color: '#64748b', background: '#1e293b', borderRadius: 6,
- borderLeft: '2px solid #a855f7',
- }}>
- {t('hint_private_mac')}
- </div>
+ {anonymous && (
+ <Hint>{t(isLan ? 'hint_unidentified' : 'hint_unresolved')}</Hint>
)}
+ {node.private_mac && <Hint accent="#a855f7">{t('hint_private_mac')}</Hint>}
{processes.length > 0 && (
<>
diff --git a/frontend/src/i18n.jsx b/frontend/src/i18n.jsx
index 3cf885f..83202fc 100644
--- a/frontend/src/i18n.jsx
+++ b/frontend/src/i18n.jsx
@@ -91,7 +91,12 @@ const en = {
hint_unidentified: "Not identified yet — its name appears when it announces itself (DNS/mDNS) or its MAC vendor is known. If you don't recognize it, check your router's client list.",
hint_unresolved: 'Not yet named — the domain appears when a DNS answer or TLS handshake reveals it.',
hint_private_mac: 'Private (randomized) MAC address — iOS/Android/Windows hide the real one, so the vendor can\'t be identified. This is normal privacy behavior.',
+ hint_gateway: 'This is your internet box/router — ALL your traffic physically passes through it, so seeing it communicate is normal and expected.',
+ hint_lan_idle: 'Seen on your network via the neighbour table — no data exchanged. A dashed edge means "present", not "talking".',
+ hint_lan_active: b => `${b} exchanged — usually automatic announcements (Bonjour/mDNS, file sharing). Watch it if the volume climbs.`,
ext_empty: "No external connections yet — anything your machine talks to will appear here.",
+ legend_edge_solid: 'solid line = traffic',
+ legend_edge_dashed: 'dashed = seen, no data',
// Alert panel / Panneau d'alertes
alerts_title: 'Alerts',
@@ -317,7 +322,12 @@ const fr = {
hint_unidentified: "Pas encore identifié — son nom apparaîtra s'il s'annonce (DNS/mDNS) ou si son fabricant est connu. Si vous ne le reconnaissez pas, vérifiez la liste des clients de votre box/routeur.",
hint_unresolved: "Pas encore nommé — le domaine apparaîtra quand une réponse DNS ou un handshake TLS le révélera.",
hint_private_mac: "Adresse MAC privée (aléatoire) — iOS/Android/Windows masquent la vraie, le fabricant ne peut pas être identifié. C'est un comportement de confidentialité normal.",
+ hint_gateway: "C'est votre box/routeur — TOUT votre trafic internet passe physiquement par elle, donc la voir communiquer est normal et attendu.",
+ hint_lan_idle: "Vu sur votre réseau via la table de voisinage — aucune donnée échangée. Une arête en pointillés signifie « présent », pas « en train de communiquer ».",
+ hint_lan_active: b => `${b} échangés — le plus souvent des annonces automatiques (Bonjour/mDNS, partage de fichiers). À surveiller si le volume grimpe.`,
ext_empty: "Aucune connexion externe pour l'instant — tout hôte contacté par votre machine apparaîtra ici.",
+ legend_edge_solid: 'trait plein = trafic',
+ legend_edge_dashed: 'pointillés = vu, sans données',
// Panneau d'alertes / Alert panel
alerts_title: 'Alertes',