A modern platform for visual, flexible, and extensible graph-based investigations. For cybersecurity analysts and investigators.
feat: dagre layout
dextmorgn9b127e4216bd
diff --git a/flowsint-web/package.json b/flowsint-web/package.jsonindex 0e7ab6c4..bb07497b 100644--- a/flowsint-web/package.json+++ b/flowsint-web/package.json@@ -58,7 +58,7 @@"@tiptap/pm": "^2.11.5","@tiptap/react": "^2.11.5","@tiptap/starter-kit": "^2.11.5",- "@xyflow/react": "^12.4.2",+ "@xyflow/react": "^12.5.4","ai": "^4.1.34","class-variance-authority": "^0.7.1","clsx": "^2.1.1",diff --git a/flowsint-web/src/components/investigations/sketch/graph.tsx b/flowsint-web/src/components/investigations/sketch/graph.tsxindex 4fc8f0e7..9232937f 100644--- a/flowsint-web/src/components/investigations/sketch/graph.tsx+++ b/flowsint-web/src/components/investigations/sketch/graph.tsx@@ -127,9 +127,6 @@ const FlowControls = memo(variant="outline"onClick={() => {onLayout("TB", fitView)- setTimeout(() => {- fitView()- }, 100)}}><AlignCenterVertical className="h-4 w-4" />@@ -215,10 +212,7 @@ const LayoutFlow = ({ refetch, theme }: LayoutFlowProps) => {const handleRefetch = useCallback(() => {refetch()onLayout("TB", fitView)- const timer = setTimeout(() => {- fitView()- }, 100)- return () => clearTimeout(timer)+ fitView()}, [refetch, onLayout, fitView])// // Node highlighting effectdiff --git a/flowsint-web/yarn.lock b/flowsint-web/yarn.lockindex 6216ef8d..9bdabda4 100644--- a/flowsint-web/yarn.lock+++ b/flowsint-web/yarn.lock@@ -2194,19 +2194,19 @@resolved "https://registry.yarnpkg.com/@ungap/structured-clone/-/structured-clone-1.3.0.tgz#d06bbb384ebcf6c505fde1c3d0ed4ddffe0aaff8"integrity sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==-"@xyflow/react@^12.4.2":- version "12.4.2"- resolved "https://registry.yarnpkg.com/@xyflow/react/-/react-12.4.2.tgz#669ab18923d93a8d8fb526241a2affc0d50abf9d"- integrity sha512-AFJKVc/fCPtgSOnRst3xdYJwiEcUN9lDY7EO/YiRvFHYCJGgfzg+jpvZjkTOnBLGyrMJre9378pRxAc3fsR06A==+"@xyflow/react@^12.5.4":+ version "12.5.4"+ resolved "https://registry.yarnpkg.com/@xyflow/react/-/react-12.5.4.tgz#b914f4773524919bb49f52f5fc51669525d7d097"+ integrity sha512-ITCW3h/pXVKwb0j3w8CxPyfmmxIqToctE55R+BcfTAe9j+qr/6Uc+NUsbIgnvEyiziJKq/sS0ovVfZ4482txww==dependencies:- "@xyflow/system" "0.0.50"+ "@xyflow/system" "0.0.54"classcat "^5.0.3"zustand "^4.4.0"-"@xyflow/[email protected]":- version "0.0.50"- resolved "https://registry.yarnpkg.com/@xyflow/system/-/system-0.0.50.tgz#8517cb46e1523cc6abe620f3ad18f5a94315d7e3"- integrity sha512-HVUZd4LlY88XAaldFh2nwVxDOcdIBxGpQ5txzwfJPf+CAjj2BfYug1fHs2p4yS7YO8H6A3EFJQovBE8YuHkAdg==+"@xyflow/[email protected]":+ version "0.0.54"+ resolved "https://registry.yarnpkg.com/@xyflow/system/-/system-0.0.54.tgz#ce6cc1793b43e456fe0a0251f7c623cc75785ead"+ integrity sha512-DBoQTcSQ2620WMfakCcjRLrlqalWcZBPgMNrfSAybnVeyZm73rT1592GAXPcC3eoVmWcvGfBgqwAmmNtlrowdw==dependencies:"@types/d3-drag" "^3.0.7""@types/d3-selection" "^3.0.10"