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.
Python cybersecurityd3jsebpfedrelectronfastapifirewallfleet-managementlinuxlittle-snitch-alternativemacosnetwork-monitornetwork-securitypacket-captureprivacyreactrustself-hostedsiemwindows
fix: repaint drift after structural rebuild — no more snap on new hosts
MoneyLisa68bad76708a2
diff --git a/frontend/src/graph/ForceGraph.jsx b/frontend/src/graph/ForceGraph.jsxindex 59b1127..123bee6 100644--- a/frontend/src/graph/ForceGraph.jsx+++ b/frontend/src/graph/ForceGraph.jsx@@ -59,6 +59,7 @@ export default function ForceGraph({ nodes, edges, lanDevices, alertedNodes = neconst nodeSel = useRef(null) // EN: d3 selection of node <g>s / FR: sélection d3 des <g> nœudsconst linkSel = useRef(null) // EN: d3 selection of edge <line>s / FR: sélection d3 des <line> arêtesconst labelSel = useRef(null) // EN: d3 selection of edge <text>s / FR: sélection d3 des <text> arêtes+ const floatPaint = useRef(null) // EN: drift painter shared with rebuilds / FR: peintre de dérive partagé avec les reconstructionsconst posCache = useRef({}) // EN: { id: {x,y,fx,fy} } / FR: positions persistéesconst zoomTf = useRef(null) // EN: last user pan/zoom transform / FR: dernière transformation pan/zoomconst dataRef = useRef({ nodes: {}, edges: {}, lanDevices: {} })@@ -360,6 +361,9 @@ export default function ForceGraph({ nodes, edges, lanDevices, alertedNodes = neposCache.current[n.id] = { x: n.x, y: n.y, fx: n.x, fy: n.y }})renderTick()+ // EN: Repaint WITH drift — the plain tick above wrote base positions.+ // FR: Repeindre AVEC la dérive — le tick ci-dessus a écrit les positions de base.+ floatPaint.current?.(performance.now())})return () => cancelAnimationFrame(raf)@@ -409,14 +413,17 @@ export default function ForceGraph({ nodes, edges, lanDevices, alertedNodes = nereturn ((h >>> 0) % 628) / 100}const AMP = 4.5 // EN: px of drift / FR: amplitude en px+ let t0 = 0const driftX = d => d.id === 'local' ? 0 : Math.sin(t0 * 0.35 + phase(d.id)) * AMPconst driftY = d => d.id === 'local' ? 0 : Math.cos(t0 * 0.28 + phase(d.id) * 1.3) * AMP- let t0 = 0- let raf- const frame = now => {- raf = requestAnimationFrame(frame)- if (document.hidden) return // EN: free when tab hidden / FR: gratuit onglet caché+ // EN: Exposed via ref so a structural rebuild can repaint WITH drift —+ // otherwise its plain renderTick snaps every bubble back to base+ // for one frame = the visible "jump" when a new host appears.+ // FR: Exposé via ref pour qu'une reconstruction peigne AVEC la dérive —+ // sinon son renderTick nu ramène toutes les bulles à la base pendant+ // un frame = le « saut » visible quand un nouvel hôte apparaît.+ floatPaint.current = now => {t0 = now / 1000nodeSel.current?.attr('transform', d => `translate(${d.x + driftX(d)},${d.y + driftY(d)})`)linkSel.current@@ -428,8 +435,15 @@ export default function ForceGraph({ nodes, edges, lanDevices, alertedNodes = ne?.attr('x', d => (d.source.x + d.target.x) / 2 + (driftX(d.source) + driftX(d.target)) / 2).attr('y', d => (d.source.y + d.target.y) / 2 + (driftY(d.source) + driftY(d.target)) / 2)}++ let raf+ const frame = now => {+ raf = requestAnimationFrame(frame)+ if (document.hidden) return // EN: free when tab hidden / FR: gratuit onglet caché+ floatPaint.current(now)+ }raf = requestAnimationFrame(frame)- return () => cancelAnimationFrame(raf)+ return () => { cancelAnimationFrame(raf); floatPaint.current = null }}, [])// ── Filter dimming — no simulation restart ───────────────────────────────