Skip to content

A modern platform for visual, flexible, and extensible graph-based investigations. For cybersecurity analysts and investigators.

feat: cosmograph

dextmorgnc57e873e68ad
diff --git a/flowsint-api/app/core/celery.py b/flowsint-api/app/core/celery.py
index 3c584f5e..430000ba 100644
--- a/flowsint-api/app/core/celery.py
+++ b/flowsint-api/app/core/celery.py
@@ -2,7 +2,7 @@ from celery import Celery
celery_app = Celery(
"flowsint",
- broker="redis://redis:6379/0",
- backend="redis://redis:6379/0",
+ broker="redis://127.0.0.1:6379/0",
+ backend="redis://127.0.0.1:6379/0",
include=["app.tasks.transform"]
)
\ No newline at end of file
diff --git a/flowsint-api/app/core/logger.py b/flowsint-api/app/core/logger.py
index d5ecfe23..ae979284 100644
--- a/flowsint-api/app/core/logger.py
+++ b/flowsint-api/app/core/logger.py
@@ -24,7 +24,7 @@ class Logger:
self.emit(scan_id, sketch_id, content, level="info")
def warn(self, scan_id: UUID, sketch_id: UUID, content: str):
- self.emit(scan_id, sketch_id, content, level="warn")
+ self.emit(scan_id, sketch_id, content, level="warning")
def error(self, scan_id: UUID, sketch_id: UUID, content: str):
self.emit(scan_id, sketch_id, content, level="error")
diff --git a/flowsint-api/app/scanners/domains/resolve.py b/flowsint-api/app/scanners/domains/resolve.py
index 51893b0f..0b1588b3 100644
--- a/flowsint-api/app/scanners/domains/resolve.py
+++ b/flowsint-api/app/scanners/domains/resolve.py
@@ -77,7 +77,6 @@ class ResolveScanner(Scanner):
def postprocess(self, results: OutputType, original_input: InputType) -> OutputType:
for domain_obj, ip_obj in zip(original_input, results):
- logger.info(self.scan_id, self.sketch_id, f"{domain_obj.domain} -> {ip_obj.address}.")
query = """
MERGE (d:domain {domain: $domain})
SET d.sketch_id = $sketch_id
diff --git a/flowsint-api/app/scanners/domains/subdomains.py b/flowsint-api/app/scanners/domains/subdomains.py
index 2715c7ab..47e7c052 100644
--- a/flowsint-api/app/scanners/domains/subdomains.py
+++ b/flowsint-api/app/scanners/domains/subdomains.py
@@ -80,7 +80,7 @@ class SubdomainScanner(Scanner):
if use_subfinder:
subdomains = self.__get_subdomains_from_subfinder(d.domain)
if not subdomains:
- logger.warning(self.scan_id, self.sketch_id, f"subfinder failed for {d.domain}, falling back to crt.sh")
+ logger.warn(self.scan_id, self.sketch_id, f"subfinder failed for {d.domain}, falling back to crt.sh")
subdomains = self.__get_subdomains_from_crtsh(d.domain)
else:
logger.info(self.scan_id, self.sketch_id, "subfinder not found, using crt.sh only")
diff --git a/flowsint-api/app/scanners/ips/reverse_resolve.py b/flowsint-api/app/scanners/ips/reverse_resolve.py
index fdbd6d02..0f3643d5 100644
--- a/flowsint-api/app/scanners/ips/reverse_resolve.py
+++ b/flowsint-api/app/scanners/ips/reverse_resolve.py
@@ -9,6 +9,7 @@ from app.scanners.base import Scanner
from app.types.domain import MinimalDomain
from app.types.ip import MinimalIp
from app.utils import resolve_type, is_valid_ip
+from app.core.logger import logger
InputType: TypeAlias = List[MinimalIp]
OutputType: TypeAlias = List[MinimalDomain]
@@ -138,3 +139,28 @@ class ReverseResolveScanner(Scanner):
unique.append(c)
return unique
+
+ def postprocess(self, results: OutputType, original_input: InputType) -> OutputType:
+ for domain_obj, ip_obj in zip(original_input, results):
+ logger.success(self.scan_id, self.sketch_id, f"Resolved {ip_obj.address} to {domain_obj.domain}")
+ query = """
+ MERGE (d:ip {ip: $ip})
+ SET d.sketch_id = $sketch_id
+ MERGE (domain:domain {domain: $domain})
+ SET ip.sketch_id = $sketch_id
+ SET ip.label = $label
+ SET ip.caption = $caption
+ SET ip.type = $type
+ MERGE (ip)-[:REVERSE_RESOLVES_TO {sketch_id: $sketch_id}]->(d)
+ """
+ if self.neo4j_conn:
+ self.neo4j_conn.query(query, {
+ "domain": domain_obj.domain,
+ "ip": ip_obj.address,
+ "sketch_id": self.sketch_id,
+ "label": ip_obj.address,
+ "caption": ip_obj.address,
+ "type": "ip"
+ })
+
+ return results
\ No newline at end of file
diff --git a/flowsint-api/app/scanners/socials/sherlock.py b/flowsint-api/app/scanners/socials/sherlock.py
index d36ee67a..11bdeb41 100644
--- a/flowsint-api/app/scanners/socials/sherlock.py
+++ b/flowsint-api/app/scanners/socials/sherlock.py
@@ -1,9 +1,17 @@
import subprocess
-import uuid
from pathlib import Path
-from typing import Dict, Any, List
+from typing import Dict, Any, List, TypeAlias, Union
from app.utils import is_valid_username
+from app.types.social import MinimalSocial, Social
from app.scanners.base import Scanner
+from pydantic import TypeAdapter
+from app.utils import is_valid_username, resolve_type
+from app.core.logger import logger
+
+
+InputType: TypeAlias = List[MinimalSocial]
+OutputType: TypeAlias = List[Social]
+
class SherlockScanner(Scanner):
"""Scans the usernames for associated social accounts using Sherlock."""
@@ -21,17 +29,45 @@ class SherlockScanner(Scanner):
return "username"
@classmethod
- def input_schema(self) -> Dict[str, str]:
- return ["username"]
+ def input_schema(cls) -> Dict[str, Any]:
+ adapter = TypeAdapter(InputType)
+ schema = adapter.json_schema()
+ type_name, details = list(schema["$defs"].items())[0]
+ return {
+ "type": type_name,
+ "properties": [
+ {"name": prop, "type": resolve_type(info)}
+ for prop, info in details["properties"].items()
+ ]
+ }
@classmethod
- def output_schema(self) -> Dict[str, str]:
- return ["social_profile"]
+ def output_schema(cls) -> Dict[str, Any]:
+ adapter = TypeAdapter(OutputType)
+ schema = adapter.json_schema()
+ type_name, details = list(schema["$defs"].items())[0]
+ return {
+ "type": type_name,
+ "properties": [
+ {"name": prop, "type": resolve_type(info)}
+ for prop, info in details["properties"].items()
+ ]
+ }
- def preprocess(self, usernames: List[str]) -> List[str]:
- """Validates the list of usernames before scanning."""
- valid_usernames = [is_valid_username(username) for username in usernames]
- return valid_usernames
+ def preprocess(self, data: Union[List[str], List[dict], InputType]) -> InputType:
+ cleaned: InputType = []
+ for item in data:
+ obj = None
+ if isinstance(item, str):
+ obj = MinimalSocial(username=item)
+ elif isinstance(item, dict) and "username" in item:
+ obj = MinimalSocial(username=item["username"])
+ elif isinstance(item, MinimalSocial):
+ obj = item
+
+ if obj and obj.username and is_valid_username(obj.username):
+ cleaned.append(obj)
+ return cleaned
def scan(self, usernames: List[str]) -> Dict[str, Any]:
"""Performs the scan using Sherlock on the list of usernames."""
@@ -39,7 +75,6 @@ class SherlockScanner(Scanner):
for username in usernames:
output_file = Path(f"/tmp/sherlock_{username}.txt") # Output file path
-
try:
# Running the Sherlock command to perform the scan
result = subprocess.run(
diff --git a/flowsint-web/package.json b/flowsint-web/package.json
index 26f4f50d..c3e9c50d 100644
--- a/flowsint-web/package.json
+++ b/flowsint-web/package.json
@@ -9,6 +9,7 @@
"lint": "eslint . --ext .ts,.tsx -c .eslintrc.json --fix"
},
"dependencies": {
+ "@cosmograph/react": "^1.4.2",
"@dagrejs/dagre": "^1.1.4",
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/modifiers": "^9.0.0",
diff --git a/flowsint-web/src/app/dashboard/investigations/[investigation_id]/sketches/[sketch_id]/3d-graph.tsx b/flowsint-web/src/app/dashboard/investigations/[investigation_id]/sketches/[sketch_id]/3d-graph.tsx
deleted file mode 100644
index 9ae59a5e..00000000
--- a/flowsint-web/src/app/dashboard/investigations/[investigation_id]/sketches/[sketch_id]/3d-graph.tsx
+++ /dev/null
@@ -1,94 +0,0 @@
-// components/Graph.tsx
-
-"use client"
-
-import { useCallback, useRef, useMemo, useEffect } from "react"
-import dynamic from "next/dynamic"
-import SpriteText from "three-spritetext"
-import { ForceGraphMethods } from "react-force-graph-3d"
-import { EdgeData, NodeData } from "@/types"
-import { useSketchStore } from "@/store/sketch-store"
-import { shallow } from "zustand/shallow"
-
-const ForceGraph3D = dynamic(
- () => import("react-force-graph-3d").then((mod) => mod.default),
- { ssr: false }
-)
-
-interface Node {
- id: string
- label: string
- type?: string
- [key: string]: any
-}
-
-interface Edge {
- from: string
- to: string
-}
-
-interface GraphProps {
- isLoading: boolean
- data: { nds: NodeData[]; rls: EdgeData[] }
- width?: number
- height?: number
-}
-
-
-const stateSelector = (state: {
- nodes: NodeData[]
- edges: EdgeData[]
- setNodes: any
- setEdges: any
-
-}) => ({
- nodes: state.nodes,
- edges: state.edges,
- setNodes: state.setNodes,
- setEdges: state.setEdges,
-})
-
-const Graph: React.FC<GraphProps> = ({ data, isLoading, width, height }) => {
- const fgRef = useRef<any>(null)
-
- const {
- setNodes,
- setEdges,
- nodes,
- edges
- } = useSketchStore(
- stateSelector,
- shallow,
- )
-
- useEffect(() => {
- if (isLoading) return
- if (data?.nds) setNodes(data.nds)
- if (data?.rls) setEdges(data.rls)
- }, [data?.nds, data?.rls, isLoading, setNodes, setEdges])
- return (
- <div className="relative h-full w-full bg-card">
- <ForceGraph3D
- backgroundColor={"white"}
- // cameraPosition={{ x: 0, y: 0, z: 500 }}
- ref={fgRef}
- graphData={{ nodes, links: edges }}
- nodeId="id"
- nodeLabel="label"
- nodeAutoColorBy="type"
- // nodeThreeObject={nodeThreeObject}
- linkDirectionalArrowLength={4}
- linkDirectionalArrowRelPos={1}
- width={width}
- height={height}
- onNodeDragEnd={(node: any) => {
- node.fx = node.x
- node.fy = node.y
- node.fz = node.z
- }}
- />
- </div>
- )
-}
-
-export default Graph
diff --git a/flowsint-web/src/app/dashboard/investigations/[investigation_id]/sketches/[sketch_id]/client.tsx b/flowsint-web/src/app/dashboard/investigations/[investigation_id]/sketches/[sketch_id]/client.tsx
index f87881cb..d576c05c 100644
--- a/flowsint-web/src/app/dashboard/investigations/[investigation_id]/sketches/[sketch_id]/client.tsx
+++ b/flowsint-web/src/app/dashboard/investigations/[investigation_id]/sketches/[sketch_id]/client.tsx
@@ -7,7 +7,7 @@ import { Toolbar } from './toolbar'
import { LeftPanel } from './left-panel'
import { RightPanel } from './right-panel'
import { ResizablePanelGroup, ResizableHandle, ResizablePanel } from "@/components/ui/resizable"
-import { useRef, useState } from "react"
+import { useState } from "react"
import { useSketchStore } from "@/store/sketch-store"
import { GraphPanel } from "./graph-panel"
import { Sketch } from "@/types/sketch"
diff --git a/flowsint-web/src/app/dashboard/investigations/[investigation_id]/sketches/[sketch_id]/console-panel.tsx b/flowsint-web/src/app/dashboard/investigations/[investigation_id]/sketches/[sketch_id]/console-panel.tsx
index 38ea3805..cc34f7c9 100644
--- a/flowsint-web/src/app/dashboard/investigations/[investigation_id]/sketches/[sketch_id]/console-panel.tsx
+++ b/flowsint-web/src/app/dashboard/investigations/[investigation_id]/sketches/[sketch_id]/console-panel.tsx
@@ -4,10 +4,11 @@ import { CopyButton } from "@/components/copy"
import { Button } from "@/components/ui/button"
import { useConfirm } from "@/components/use-confirm-dialog"
import { supabase } from "@/lib/supabase/client"
-import { Loader2, TrashIcon } from "lucide-react"
+import { Loader2, TrashIcon, XCircle, AlertTriangle, Info, CheckCircle } from "lucide-react"
import { useParams } from "next/navigation"
import { memo, useCallback, useEffect, useRef, useState } from "react"
import { toast } from "sonner"
+import { cn } from "@/lib/utils"
type LogEntry = {
id?: string
@@ -17,10 +18,17 @@ type LogEntry = {
created_at?: string
}
+const typeToIcon = {
+ INFO: <Info className="h-3.5 w-3.5 text-blue-400" />,
+ WARNING: <AlertTriangle className="h-3.5 w-3.5 text-amber-500" />,
+ ERROR: <XCircle className="h-3.5 w-3.5 text-red-500" />,
+ SUCCESS: <CheckCircle className="h-3.5 w-3.5 text-green-500" />,
+}
+
const typeToClass: Record<string, string> = {
- INFO: "text-foreground",
+ INFO: "text-blue-400",
WARNING: "text-amber-500",
- ERROR: "text-destructive",
+ ERROR: "text-red-500",
SUCCESS: "text-green-500",
}
@@ -74,10 +82,7 @@ export const ConsolePanel = memo(function ConsolePanel() {
if (!confirmed) return
setIsLoading(true)
- const { error } = await supabase
- .from("logs")
- .delete()
- .eq("sketch_id", sketch_id)
+ const { error } = await supabase.from("logs").delete().eq("sketch_id", sketch_id)
if (error) {
toast.error("An error occurred deleting the logs.")
@@ -116,7 +121,7 @@ export const ConsolePanel = memo(function ConsolePanel() {
created_at: newLog.created_at,
}
setLogEntries((prevLogs) => [...prevLogs, formattedLog])
- }
+ },
)
.subscribe()
@@ -130,13 +135,12 @@ export const ConsolePanel = memo(function ConsolePanel() {
}, [logEntries])
return (
- <div className="flex grow flex-col h-full">
- <div className="flex h-8 items-center bg-card py-2 justify-between border-b pl-4 pr-2">
- <div className="flex items-center gap-2">
+ <div className="flex grow flex-col h-full rounded-md overflow-hidden shadow-md">
+ {/* Terminal header with buttons */}
+ <div className="flex h-9 items-center py-2 justify-between pl-4 pr-2 border-b">
+ <div className="flex items-center gap-3">
<h2 className="font-medium text-sm">Console</h2>
- {isLoading && (
- <Loader2 className="h-3.5 w-3.5 animate-spin text-muted-foreground" />
- )}
+ {isLoading && <Loader2 className="h-3.5 w-3.5 animate-spin" />}
</div>
<div className="flex items-center gap-1">
<CopyButton content={JSON.stringify(logEntries)} />
@@ -151,28 +155,44 @@ export const ConsolePanel = memo(function ConsolePanel() {
</Button>
</div>
</div>
- <div className="p-2 font-mono text-xs bg-card grow overflow-auto relative">
+
+ {/* Terminal content */}
+ <div className="p-3 font-mono text-xs grow overflow-auto relative leading-5 font-[JetBrains_Mono]">
{isLoading && logEntries.length === 0 ? (
- <div className="flex items-center justify-center h-full text-muted-foreground">
+ <div className="flex items-center justify-center h-full text-zinc-400">
<Loader2 className="h-4 w-4 mr-2 animate-spin" />
Loading logs...
</div>
) : logEntries.length > 0 ? (
<>
{logEntries.map((entry, index) => (
- <div key={entry.id || index} className="mb-1 flex">
- <span className="mr-2 text-primary font-bold">[{entry.timestamp}]</span>
- <span className={typeToClass[entry.type] || ""}>
- {entry.content}
- </span>
+ <div key={entry.id || index} className="mb-1.5 flex group">
+ <div className="w-8 text-zinc-600 select-none opacity-70 group-hover:opacity-100">{index + 1}</div>
+ <div className="flex items-center">
+ <span className="mr-2 text-zinc-500 font-semibold">[{entry.timestamp}]</span>
+ <span className="mr-2">{typeToIcon[entry.type]}</span>
+ <span className={cn("font-medium", typeToClass[entry.type] || "")}>{entry.content}</span>
+ </div>
</div>
))}
<div ref={bottomRef} />
</>
) : (
- <div className="text-muted-foreground italic">No logs available for now.</div>
+ <div className="flex items-center text-zinc-500 italic">
+ <span className="w-8 text-zinc-600 select-none">1</span>
+ <span>// No logs available for now.</span>
+ </div>
+ )}
+
+ {/* Terminal cursor */}
+ {!isLoading && logEntries.length !== 0 && (
+ <div className="flex items-center mt-1">
+ <span className="w-8 text-zinc-600 select-none">{logEntries.length + 1}</span>
+ <span className="text-zinc-400">$ </span>
+ <span className="w-2 h-4 bg-zinc-400 ml-1 animate-pulse"></span>
+ </div>
)}
</div>
</div>
)
-})
\ No newline at end of file
+})
diff --git a/flowsint-web/src/app/dashboard/investigations/[investigation_id]/sketches/[sketch_id]/cosmo-graph.tsx b/flowsint-web/src/app/dashboard/investigations/[investigation_id]/sketches/[sketch_id]/cosmo-graph.tsx
new file mode 100644
index 00000000..be9469d1
--- /dev/null
+++ b/flowsint-web/src/app/dashboard/investigations/[investigation_id]/sketches/[sketch_id]/cosmo-graph.tsx
@@ -0,0 +1,163 @@
+// components/Graph.tsx
+
+"use client"
+
+import { useCallback, useEffect } from "react"
+import { Cosmograph, CosmographProvider, useCosmograph } from '@cosmograph/react'
+import { EdgeData, NodeData } from "@/types"
+import { useSketchStore } from "@/store/sketch-store"
+import { shallow } from "zustand/shallow"
+import { useNodesDisplaySettings } from "@/store/node-display-settings"
+import Loader from "@/components/loader"
+import { Button } from "@/components/ui/button"
+import NewActions from "@/components/sketches/new-actions"
+import { PlusIcon } from "lucide-react"
+import { useGraphControls } from "@/store/graph-controls-store"
+import { CosmosInputNode } from "@cosmograph/cosmos"
+
+interface GraphProps {
+ isLoading: boolean
+ data: { nds: NodeData[]; rls: EdgeData[] }
+ width?: number
+ height?: number
+}
+
+const stateSelector = (state: {
+ currentNode: NodeData | null
+ nodes: NodeData[]
+ edges: EdgeData[]
+ setNodes: any
+ setEdges: any
+ toggleNodeSelection: (node: NodeData, multiSelect: boolean) => void
+ clearSelectedNodes: () => void
+}) => ({
+ nodes: state.nodes,
+ edges: state.edges,
+ setNodes: state.setNodes,
+ setEdges: state.setEdges,
+ toggleNodeSelection: state.toggleNodeSelection,
+ clearSelectedNodes: state.clearSelectedNodes,
+ currentNode: state.currentNode,
+})
+
+const randomIntFromInterval = (min: number, max: number): number => {
+ return Math.floor(Math.random() * (max - min + 1) + min)
+}
+
+const getRandDate = (): Date => {
+ return new Date(randomIntFromInterval(0, 10000000))
+}
+
+const GraphContent = () => {
+ const {
+ toggleNodeSelection,
+ clearSelectedNodes,
+ currentNode
+ } = useSketchStore(stateSelector, shallow)
+
+ const colors = useNodesDisplaySettings(s => s.colors)
+ const getSize = useNodesDisplaySettings(s => s.getSize)
+ const setActions = useGraphControls((s) => s.setActions)
+
+ const cosmograph = useCosmograph()
+
+ useEffect(() => {
+ setActions({
+ zoomIn: () => {
+ const current = cosmograph?.cosmograph?.getZoomLevel()
+ const zoomOutLevel = current ? current * 1.5 : 1.5
+ cosmograph?.cosmograph?.setZoomLevel(zoomOutLevel, 500)
+ },
+ zoomToFit: () => {
+ cosmograph?.cosmograph?.fitView(500)
+ },
+ zoomOut: () => {
+ const current = cosmograph?.cosmograph?.getZoomLevel()
+ const zoomOutLevel = current ? current * 0.5 : 0.5
+ cosmograph?.cosmograph?.setZoomLevel(zoomOutLevel, 500)
+ },
+ });
+ cosmograph?.cosmograph?.restart()
+ }, [cosmograph?.cosmograph, setActions])
+
+ useEffect(() => {
+ if (currentNode) {
+ cosmograph?.cosmograph?.zoomToNode(currentNode)
+ cosmograph?.cosmograph?.focusNode(currentNode)
+ cosmograph?.cosmograph?.fitViewByNodeIds
+ }
+ }, [currentNode, cosmograph?.cosmograph])
+
+ const onLabelClick = useCallback((node: any, event: MouseEvent) => {
+ const multiSelect = event.ctrlKey || event.shiftKey || event.altKey
+ toggleNodeSelection(node, multiSelect)
+ cosmograph?.cosmograph?.zoomToNode(node)
+ }, [toggleNodeSelection, cosmograph?.cosmograph])
+
+ //@ts-ignore
+ const onNodeClick = useCallback((clickedNode?: any, index?: number, nodePosition?: [number, number], event: MouseEvent) => {
+ if (!clickedNode) {
+ clearSelectedNodes()
+ return
+ }
+ const multiSelect = event.ctrlKey || event.shiftKey || event.altKey
+ toggleNodeSelection(clickedNode, multiSelect)
+ cosmograph?.cosmograph?.fitViewByNodeIds([clickedNode.id])
+ }, [toggleNodeSelection, cosmograph?.cosmograph])
+
+ return (
+ <Cosmograph
+ onLabelClick={onLabelClick}
+ onClick={onNodeClick}
+ disableSimulation={true}
+ backgroundColor={"transparent"}
+ nodeSize={(n: any) => getSize(n.type)}
+ nodeColor={(n: CosmosInputNode & { type?: string }) => colors[n.type as keyof typeof colors] || "#000000"}
+ nodeLabelColor={(n: CosmosInputNode & { type?: string }) => colors[n.type as keyof typeof colors] || "#000000"}
+ nodeLabelAccessor={(n: any) => n.label}
+ />
+ )
+}
+
+const Graph: React.FC<GraphProps> = ({ data, isLoading }) => {
+ const { setNodes, setEdges, nodes, edges, currentNode } = useSketchStore(stateSelector, shallow)
+
+ useEffect(() => {
+ if (isLoading) return
+ if (data?.nds) setNodes(data.nds)
+ if (data?.rls) setEdges(data.rls.map((edge: EdgeData) => ({
+ ...edge,
+ source: edge.from,
+ target: edge.to,
+ id: `${edge.from}-${edge.to}`,
+ date: getRandDate()
+ })))
+ }, [data?.nds, data?.rls, isLoading, setNodes, setEdges])
+
+ if (isLoading) {
+ return <Loader label="Loading..." />
+ }
+
+ if (!nodes.length) {
+ return (
+ <div className="flex relative gap-3 h-full flex-col w-full items-center justify-center">
+ Your nodes will be displayed here.
+ <NewActions>
+ <Button className="bg-gradient-to-r from-primary to-primary/80 hover:from-primary/90 hover:to-primary transition-all duration-300 px-6 py-2 text-white border-none">
+ Add your first item <PlusIcon />
+ </Button>
+ </NewActions>
+ </div>
+ )
+ }
+
+ return (
+ <div className="relative h-full w-full flex flex-col bg-card">
+ <CosmographProvider nodes={nodes} links={edges}>
+ <GraphContent />
+ </CosmographProvider>
+ </div>
+ )
+}
+
+export default Graph
diff --git a/flowsint-web/src/app/dashboard/investigations/[investigation_id]/sketches/[sketch_id]/graph-panel.tsx b/flowsint-web/src/app/dashboard/investigations/[investigation_id]/sketches/[sketch_id]/graph-panel.tsx
index d7d64b6e..3065a368 100644
--- a/flowsint-web/src/app/dashboard/investigations/[investigation_id]/sketches/[sketch_id]/graph-panel.tsx
+++ b/flowsint-web/src/app/dashboard/investigations/[investigation_id]/sketches/[sketch_id]/graph-panel.tsx
@@ -5,11 +5,10 @@ import type React from "react"
import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from "@/components/ui/resizable"
import { ConsolePanel } from "./console-panel"
import { memo, useState, useRef, useEffect } from "react"
-import Graph2d from "./2d-graph"
-import Graph3d from "./3d-graph"
-import { useQueryState } from "nuqs"
+import Graph2d from "./cosmo-graph"
import { useSketchStore } from "@/store/sketch-store"
import { cn } from "@/lib/utils"
+import { ArrowDownToLineIcon } from "lucide-react"
interface GraphPanelProps {
query: any
@@ -17,13 +16,12 @@ interface GraphPanelProps {
export const GraphPanel = memo(function GraphPanel({ query }: GraphPanelProps) {
const [isBottomPanelCollapsed, setIsBottomPanelCollapsed] = useState(false)
- const [graphView] = useQueryState("graphView", { defaultValue: "2d" })
const [panelDimensions, setPanelDimensions] = useState({ width: 0, height: 0 })
const [isDraggingOver, setIsDraggingOver] = useState(false)
const handleOpenFormModal = useSketchStore(s => s.handleOpenFormModal)
const graphPanelRef = useRef<HTMLDivElement>(null)
-
+
const updatePanelDimensions = () => {
if (!graphPanelRef.current) return
const rect = graphPanelRef.current.getBoundingClientRect()
@@ -84,29 +82,25 @@ export const GraphPanel = memo(function GraphPanel({ query }: GraphPanelProps) {
<div className="flex flex-col h-full">
<div className="grow">
<ResizablePanelGroup direction="vertical" className="h-full" onLayout={updatePanelDimensions}>
- <ResizablePanel defaultSize={80} className="h-full w-full bg-background" onResize={updatePanelDimensions}>
+ <ResizablePanel defaultSize={80} className="h-full w-full" onResize={updatePanelDimensions}>
<div
ref={graphPanelRef}
- className={cn('h-full w-full transition-all duration-200 border-2 border-transparent', isDraggingOver && "bg-primary/10 border-dashed border-primary/40")} onDragOver={handleDragOver}
+ className={cn('h-full w-full relative outline-2 outline-transparent bg-background')} onDragOver={handleDragOver}
onDragEnter={handleDragEnter}
onDragLeave={handleDragLeave}
onDrop={handleDrop}
>
- {graphView === "3d" ? (
- <Graph3d
- data={query.data}
- isLoading={query.isLoading}
- width={panelDimensions.width}
- height={panelDimensions.height}
- />
- ) : (
- <Graph2d
- data={query.data}
- isLoading={query.isLoading}
- width={panelDimensions.width}
- height={panelDimensions.height}
- />
- )}
+ <Graph2d
+ data={query.data}
+ isLoading={query.isLoading}
+ width={panelDimensions.width}
+ height={panelDimensions.height}
+ />
+ {isDraggingOver &&
+ <div className={cn('absolute flex items-center justify-center inset-0 bg-primary/20 backdrop-blur-xs gap-1')}>
+ <p className="font-medium">Drop here to add node</p> <ArrowDownToLineIcon className="opacity-60" />
+ </div>
+ }
</div>
</ResizablePanel>
<ResizableHandle withHandle />
diff --git a/flowsint-web/src/app/dashboard/investigations/[investigation_id]/sketches/[sketch_id]/left-panel.tsx b/flowsint-web/src/app/dashboard/investigations/[investigation_id]/sketches/[sketch_id]/left-panel.tsx
index dc590ef4..872ce28f 100644
--- a/flowsint-web/src/app/dashboard/investigations/[investigation_id]/sketches/[sketch_id]/left-panel.tsx
+++ b/flowsint-web/src/app/dashboard/investigations/[investigation_id]/sketches/[sketch_id]/left-panel.tsx
@@ -60,14 +60,17 @@ export const LeftPanel = memo(function LeftPanel({ isCollapsed, setIsCollapsed }
onChange={handleSearchChange}
/>
</div>
- <NewActions>
- <Button
- className="h-7 w-7 bg-gradient-to-r from-primary to-primary/80 hover:from-primary/90 hover:to-primary transition-all duration-300 text-white border-none"
- size="icon"
- >
- <PlusIcon />
- </Button>
- </NewActions>
+ <div>
+ <NewActions>
+ <Button
+ className="h-7 !w-7 bg-gradient-to-r from-primary to-primary/80 hover:from-primary/90 hover:to-primary transition-all duration-300 text-white border-none"
+ size="icon"
+ variant={"ghost"}
+ >
+ <PlusIcon />
+ </Button>
+ </NewActions>
+ </div>
</div>
<div className="grid grid-cols-1 gap-2">
{actionItems.map((item: ActionItem) => {
@@ -92,7 +95,7 @@ export const LeftPanel = memo(function LeftPanel({ isCollapsed, setIsCollapsed }
type={childItem.type}
color={childItem.color}
disabled={childItem.disabled}
- description={childItem.label}
+ description={childItem.fields.map((n) => n.name).join(", ")}
/>
))}
</div>
@@ -110,7 +113,7 @@ export const LeftPanel = memo(function LeftPanel({ isCollapsed, setIsCollapsed }
type={item.type}
color={item.color}
disabled={item.disabled}
- description={item.label}
+ description={item.fields.map((n) => n.name).join(", ")}
/>
)
})}
diff --git a/flowsint-web/src/app/dashboard/investigations/[investigation_id]/sketches/[sketch_id]/toolbar.tsx b/flowsint-web/src/app/dashboard/investigations/[investigation_id]/sketches/[sketch_id]/toolbar.tsx
index e7486064..5a29f343 100644
--- a/flowsint-web/src/app/dashboard/investigations/[investigation_id]/sketches/[sketch_id]/toolbar.tsx
+++ b/flowsint-web/src/app/dashboard/investigations/[investigation_id]/sketches/[sketch_id]/toolbar.tsx
@@ -6,6 +6,7 @@ import { ScanButton } from "@/components/sketches/scans-drawer/scan-button"
import { Button } from "@/components/ui/button"
import { Toggle } from "@/components/ui/toggle"
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip"
+import { useConfirm } from "@/components/use-confirm-dialog"
import { cn } from "@/lib/utils"
import { useGraphControls } from "@/store/graph-controls-store"
import { useSketchStore } from "@/store/sketch-store"
@@ -33,7 +34,6 @@ import {
import { notFound } from "next/navigation"
import { useQueryState } from "nuqs"
import { memo, useCallback, useMemo } from "react"
-import { shallow } from "zustand/shallow"
// Tooltip wrapper component to avoid repetition
@@ -82,13 +82,14 @@ export const Toolbar = memo(function Toolbar({
}) {
const selectedNodes = useSketchStore((state) => state.selectedNodes || [])
- const openAddRelationDialog = useSketchStore((state) => state.openAddRelationDialog)
const setOpenAddRelationDialog = useSketchStore((state) => state.setOpenAddRelationDialog)
+ const removeNodes = useSketchStore((state) => state.removeNodes)
const toggleSettings = useModalStore((s) => s.toggleSettings)
const zoomToFit = useGraphControls((s) => s.zoomToFit);
const zoomIn = useGraphControls((s) => s.zoomIn);
const zoomOut = useGraphControls((s) => s.zoomOut);
const [_, setGraphView] = useQueryState("graphView", { defaultValue: "2d" })
+ const { confirm } = useConfirm()
const { refetch, isRefetching } = useQuery({
@@ -107,6 +108,11 @@ export const Toolbar = memo(function Toolbar({
setOpenAddRelationDialog(true)
}, [])
+ const handleDeleteNodes = async () => {
+ if (!selectedNodes.length) return
+ if (!await confirm({ title: `You are about to delete ${selectedNodes.length} node(s).`, message: "The action is irreversible." })) return
+ removeNodes(selectedNodes.map((n) => n.id))
+ }
// Memoize sketch members to prevent unnecessary rerenders
const sketchMembers = useMemo(() =>
@@ -138,6 +144,7 @@ export const Toolbar = memo(function Toolbar({
disabled={!isTwo}
/>
<ToolbarButton
+ onClick={handleDeleteNodes}
icon={<Trash className="h-4 w-4 opacity-70" />}
tooltip="Delete"
disabled={!isMoreThanZero}
@@ -166,10 +173,10 @@ export const Toolbar = memo(function Toolbar({
<ToolbarButton disabled icon={<Layers className="h-4 w-4 opacity-70" />} tooltip="Layers" />
<ToolbarButton onClick={toggleSettings} icon={<GearIcon className="h-4 w-4 opacity-70" />} tooltip="Settings" />
<Separator />
- <Toggle className="h-8 w-8" onClick={() => setGraphView((prev) => prev === "2d" ? "3d" : "2d")} aria-label="Toggle italic">
+ {/* <Toggle className="h-8 w-8" onClick={() => setGraphView((prev) => prev === "2d" ? "3d" : "2d")} aria-label="Toggle italic">
<Rotate3DIcon className={cn("h-4 w-4 opacity-70")} />
- </Toggle>
- <Separator />
+ </Toggle> */}
+ {/* <Separator /> */}
<ToolbarButton onClick={refetch} disabled={isRefetching} icon={<RotateCwIcon className={cn("h-4 w-4 opacity-70", isRefetching && "animate-spin")} />} tooltip="Reload" />
</TooltipProvider>
</div>
diff --git a/flowsint-web/src/app/layout.tsx b/flowsint-web/src/app/layout.tsx
index 60ef6b86..0d922f0c 100644
--- a/flowsint-web/src/app/layout.tsx
+++ b/flowsint-web/src/app/layout.tsx
@@ -42,14 +42,14 @@ export default function RootLayout({
}) {
return (
<html suppressHydrationWarning lang="en" className={inter.className}>
- <head>
+ {/* <head>
{process.env.NODE_ENV === "development" && (
<script
crossOrigin="anonymous"
src="//unpkg.com/react-scan/dist/auto.global.js"
/>
)}
- </head>
+ </head> */}
<body
className={clsx(
"min-h-screen !bg-background font-sans antialiased",
diff --git a/flowsint-web/src/components/dashboard/charts/investigation-chart.tsx b/flowsint-web/src/components/dashboard/charts/investigation-chart.tsx
deleted file mode 100644
index 752c3b88..00000000
--- a/flowsint-web/src/components/dashboard/charts/investigation-chart.tsx
+++ /dev/null
@@ -1,263 +0,0 @@
-"use client"
-
-import * as React from "react"
-import { Area, AreaChart, CartesianGrid, XAxis } from "recharts"
-
-import {
- Card,
- CardContent,
- CardDescription,
- CardHeader,
- CardTitle,
-} from "@/components/ui/card"
-import {
- ChartConfig,
- ChartContainer,
- ChartLegend,
- ChartLegendContent,
- ChartTooltip,
- ChartTooltipContent,
-} from "@/components/ui/chart"
-import {
- Select,
- SelectContent,
- SelectItem,
- SelectTrigger,
- SelectValue,
-} from "@/components/ui/select"
-const chartData = [
- { date: "2024-04-01", desktop: 222, mobile: 150 },
- { date: "2024-04-02", desktop: 97, mobile: 180 },
- { date: "2024-04-03", desktop: 167, mobile: 120 },
- { date: "2024-04-04", desktop: 242, mobile: 260 },
- { date: "2024-04-05", desktop: 373, mobile: 290 },
- { date: "2024-04-06", desktop: 301, mobile: 340 },
- { date: "2024-04-07", desktop: 245, mobile: 180 },
- { date: "2024-04-08", desktop: 409, mobile: 320 },
- { date: "2024-04-09", desktop: 59, mobile: 110 },
- { date: "2024-04-10", desktop: 261, mobile: 190 },
- { date: "2024-04-11", desktop: 327, mobile: 350 },
- { date: "2024-04-12", desktop: 292, mobile: 210 },
- { date: "2024-04-13", desktop: 342, mobile: 380 },
- { date: "2024-04-14", desktop: 137, mobile: 220 },
- { date: "2024-04-15", desktop: 120, mobile: 170 },
- { date: "2024-04-16", desktop: 138, mobile: 190 },
- { date: "2024-04-17", desktop: 446, mobile: 360 },
- { date: "2024-04-18", desktop: 364, mobile: 410 },
- { date: "2024-04-19", desktop: 243, mobile: 180 },
- { date: "2024-04-20", desktop: 89, mobile: 150 },
- { date: "2024-04-21", desktop: 137, mobile: 200 },
- { date: "2024-04-22", desktop: 224, mobile: 170 },
- { date: "2024-04-23", desktop: 138, mobile: 230 },
- { date: "2024-04-24", desktop: 387, mobile: 290 },
- { date: "2024-04-25", desktop: 215, mobile: 250 },
- { date: "2024-04-26", desktop: 75, mobile: 130 },
- { date: "2024-04-27", desktop: 383, mobile: 420 },
- { date: "2024-04-28", desktop: 122, mobile: 180 },
- { date: "2024-04-29", desktop: 315, mobile: 240 },
- { date: "2024-04-30", desktop: 454, mobile: 380 },
- { date: "2024-05-01", desktop: 165, mobile: 220 },
- { date: "2024-05-02", desktop: 293, mobile: 310 },
- { date: "2024-05-03", desktop: 247, mobile: 190 },
- { date: "2024-05-04", desktop: 385, mobile: 420 },
- { date: "2024-05-05", desktop: 481, mobile: 390 },
- { date: "2024-05-06", desktop: 498, mobile: 520 },
- { date: "2024-05-07", desktop: 388, mobile: 300 },
- { date: "2024-05-08", desktop: 149, mobile: 210 },
- { date: "2024-05-09", desktop: 227, mobile: 180 },
- { date: "2024-05-10", desktop: 293, mobile: 330 },
- { date: "2024-05-11", desktop: 335, mobile: 270 },
- { date: "2024-05-12", desktop: 197, mobile: 240 },
- { date: "2024-05-13", desktop: 197, mobile: 160 },
- { date: "2024-05-14", desktop: 448, mobile: 490 },
- { date: "2024-05-15", desktop: 473, mobile: 380 },
- { date: "2024-05-16", desktop: 338, mobile: 400 },
- { date: "2024-05-17", desktop: 499, mobile: 420 },
- { date: "2024-05-18", desktop: 315, mobile: 350 },
- { date: "2024-05-19", desktop: 235, mobile: 180 },
- { date: "2024-05-20", desktop: 177, mobile: 230 },
- { date: "2024-05-21", desktop: 82, mobile: 140 },
- { date: "2024-05-22", desktop: 81, mobile: 120 },
- { date: "2024-05-23", desktop: 252, mobile: 290 },
- { date: "2024-05-24", desktop: 294, mobile: 220 },
- { date: "2024-05-25", desktop: 201, mobile: 250 },
- { date: "2024-05-26", desktop: 213, mobile: 170 },
- { date: "2024-05-27", desktop: 420, mobile: 460 },
- { date: "2024-05-28", desktop: 233, mobile: 190 },
- { date: "2024-05-29", desktop: 78, mobile: 130 },
- { date: "2024-05-30", desktop: 340, mobile: 280 },
- { date: "2024-05-31", desktop: 178, mobile: 230 },
- { date: "2024-06-01", desktop: 178, mobile: 200 },
- { date: "2024-06-02", desktop: 470, mobile: 410 },
- { date: "2024-06-03", desktop: 103, mobile: 160 },
- { date: "2024-06-04", desktop: 439, mobile: 380 },
- { date: "2024-06-05", desktop: 88, mobile: 140 },
- { date: "2024-06-06", desktop: 294, mobile: 250 },
- { date: "2024-06-07", desktop: 323, mobile: 370 },
- { date: "2024-06-08", desktop: 385, mobile: 320 },
- { date: "2024-06-09", desktop: 438, mobile: 480 },
- { date: "2024-06-10", desktop: 155, mobile: 200 },
- { date: "2024-06-11", desktop: 92, mobile: 150 },
- { date: "2024-06-12", desktop: 492, mobile: 420 },
- { date: "2024-06-13", desktop: 81, mobile: 130 },
- { date: "2024-06-14", desktop: 426, mobile: 380 },
- { date: "2024-06-15", desktop: 307, mobile: 350 },
- { date: "2024-06-16", desktop: 371, mobile: 310 },
- { date: "2024-06-17", desktop: 475, mobile: 520 },
- { date: "2024-06-18", desktop: 107, mobile: 170 },
- { date: "2024-06-19", desktop: 341, mobile: 290 },
- { date: "2024-06-20", desktop: 408, mobile: 450 },
- { date: "2024-06-21", desktop: 169, mobile: 210 },
- { date: "2024-06-22", desktop: 317, mobile: 270 },
- { date: "2024-06-23", desktop: 480, mobile: 530 },
- { date: "2024-06-24", desktop: 132, mobile: 180 },
- { date: "2024-06-25", desktop: 141, mobile: 190 },
- { date: "2024-06-26", desktop: 434, mobile: 380 },
- { date: "2024-06-27", desktop: 448, mobile: 490 },
- { date: "2024-06-28", desktop: 149, mobile: 200 },
- { date: "2024-06-29", desktop: 103, mobile: 160 },
- { date: "2024-06-30", desktop: 446, mobile: 400 },
-]
-
-const chartConfig = {
- visitors: {
- label: "Investigations",
- },
- desktop: {
- label: "Active",
- color: "var(--chart-1)",
- },
- mobile: {
- label: "Closed",
- color: "var(--chart-2)",
- },
-} satisfies ChartConfig
-
-export function InvestigationGraph() {
- const [timeRange, setTimeRange] = React.useState("90d")
-
- const filteredData = chartData.filter((item) => {
- const date = new Date(item.date)
- const referenceDate = new Date("2024-06-30")
- let daysToSubtract = 90
- if (timeRange === "30d") {
- daysToSubtract = 30
- } else if (timeRange === "7d") {
- daysToSubtract = 7
- }
- const startDate = new Date(referenceDate)
- startDate.setDate(startDate.getDate() - daysToSubtract)
- return date >= startDate
- })
-
- return (
- <Card className="bg-card h-full">
- <CardHeader className="flex items-center gap-2 space-y-0 border-b py-5 sm:flex-row">
- <div className="grid flex-1 gap-1 text-center sm:text-left">
- <CardTitle>Investigation statuses</CardTitle>
- <CardDescription>
- Showing total investigation statuses for the last 3 months
- </CardDescription>
- </div>
- <Select value={timeRange} onValueChange={setTimeRange}>
- <SelectTrigger
- className="w-[160px] rounded-lg sm:ml-auto"
- aria-label="Select a value"
- >
- <SelectValue placeholder="Last 3 months" />
- </SelectTrigger>
- <SelectContent className="rounded-xl">
- <SelectItem value="90d" className="rounded-lg">
- Last 3 months
- </SelectItem>
- <SelectItem value="30d" className="rounded-lg">
- Last 30 days
- </SelectItem>
- <SelectItem value="7d" className="rounded-lg">
- Last 7 days
- </SelectItem>
- </SelectContent>
- </Select>
- </CardHeader>
- <CardContent className="px-2 pt-4 sm:px-6 sm:pt-6">
- <ChartContainer
- config={chartConfig}
- className="aspect-auto h-[220px] w-full"
- >
- <AreaChart data={filteredData}>
- <defs>
- <linearGradient id="fillDesktop" x1="0" y1="0" x2="0" y2="1">
- <stop
- offset="5%"
- stopColor="var(--color-desktop)"
- stopOpacity={0.8}
- />
- <stop
- offset="95%"
- stopColor="var(--color-desktop)"
- stopOpacity={0.1}
- />
- </linearGradient>
- <linearGradient id="fillMobile" x1="0" y1="0" x2="0" y2="1">
- <stop
- offset="5%"
- stopColor="var(--color-mobile)"
- stopOpacity={0.8}
- />
- <stop
- offset="95%"
- stopColor="var(--color-mobile)"
- stopOpacity={0.1}
- />
- </linearGradient>
- </defs>
- <CartesianGrid vertical={false} />
- <XAxis
- dataKey="date"
- tickLine={false}
- axisLine={false}
- tickMargin={8}
- minTickGap={32}
- tickFormatter={(value) => {
- const date = new Date(value)
- return date.toLocaleDateString("en-US", {
- month: "short",
- day: "numeric",
- })
- }}
- />
- <ChartTooltip
- cursor={false}
- content={
- <ChartTooltipContent
- labelFormatter={(value) => {
- return new Date(value).toLocaleDateString("en-US", {
- month: "short",
- day: "numeric",
- })
- }}
- indicator="dot"
- />
- }
- />
- <Area
- dataKey="mobile"
- type="natural"
- fill="url(#fillMobile)"
- stroke="var(--color-mobile)"
- stackId="a"
- />
- <Area
- dataKey="desktop"
- type="natural"
- fill="url(#fillDesktop)"
- stroke="var(--color-desktop)"
- stackId="a"
- />
- <ChartLegend content={<ChartLegendContent />} />
- </AreaChart>
- </ChartContainer>
- </CardContent>
- </Card>
- )
-}
diff --git a/flowsint-web/src/components/dashboard/charts/metrics-chart.tsx b/flowsint-web/src/components/dashboard/charts/metrics-chart.tsx
deleted file mode 100644
index 19ed72aa..00000000
--- a/flowsint-web/src/components/dashboard/charts/metrics-chart.tsx
+++ /dev/null
@@ -1,78 +0,0 @@
-"use client"
-
-import { TrendingUp } from "lucide-react"
-import { Bar, BarChart, CartesianGrid, XAxis } from "recharts"
-
-import {
- Card,
- CardContent,
- CardDescription,
- CardFooter,
- CardHeader,
- CardTitle,
-} from "@/components/ui/card"
-import {
- ChartConfig,
- ChartContainer,
- ChartTooltip,
- ChartTooltipContent,
-} from "@/components/ui/chart"
-const chartData = [
- { month: "January", desktop: 186, mobile: 80 },
- { month: "February", desktop: 305, mobile: 200 },
- { month: "March", desktop: 237, mobile: 120 },
- { month: "April", desktop: 73, mobile: 190 },
- { month: "May", desktop: 209, mobile: 130 },
- { month: "June", desktop: 214, mobile: 140 },
-]
-
-const chartConfig = {
- desktop: {
- label: "Active",
- color: "var(--chart-1)",
- },
- mobile: {
- label: "Closed",
- color: "var(--chart-2)",
- },
-} satisfies ChartConfig
-
-export function MetricsChart() {
- return (
- <Card className="bg-card h-full">
- <CardHeader className="flex items-center gap-2 space-y-0 border-b py-5 sm:flex-row">
- <div className="grid flex-1 gap-1 text-center sm:text-left">
- <CardTitle>Investigation statuses</CardTitle>
- <CardDescription>
- Showing total investigation statuses for the last 3 months
- </CardDescription>
- </div>
- </CardHeader>
- <CardContent className="px-2 pt-4 sm:px-6 sm:pt-6">
- <ChartContainer className="max-h-[180px] w-full" config={chartConfig}>
- <BarChart accessibilityLayer data={chartData}>
- <CartesianGrid vertical={false} />
- <XAxis
- dataKey="month"
- tickLine={false}
- tickMargin={10}
- axisLine={false}
- tickFormatter={(value) => value.slice(0, 3)}
- />
- <ChartTooltip
- cursor={false}
- content={<ChartTooltipContent indicator="dashed" />}
- />
- <Bar dataKey="desktop" fill="var(--color-desktop)" radius={4} />
- <Bar dataKey="mobile" fill="var(--color-mobile)" radius={4} />
- </BarChart>
- </ChartContainer>
- </CardContent>
- <CardFooter className="flex-col items-start gap-2 text-sm">
- <div className="leading-none text-muted-foreground">
- Showing total visitors for the last 6 months
- </div>
- </CardFooter>
- </Card>
- )
-}
diff --git a/flowsint-web/src/components/sketches/new-actions.tsx b/flowsint-web/src/components/sketches/new-actions.tsx
index 890b9064..154bd539 100644
--- a/flowsint-web/src/components/sketches/new-actions.tsx
+++ b/flowsint-web/src/components/sketches/new-actions.tsx
@@ -17,6 +17,7 @@ import { saveNode } from "@/lib/actions/sketches"
import { useNodesDisplaySettings } from "@/store/node-display-settings"
import { useSketchStore } from "@/store/sketch-store"
import { shallow } from 'zustand/shallow'
+import { DialogTrigger } from "@radix-ui/react-dialog"
interface ActionDialogProps {
children: React.ReactNode
@@ -120,8 +121,8 @@ export default function ActionDialog({ children, setCurrentNode }: ActionDialogP
return (
<>
- <Button asChild onClick={() => setOpenMainDialog(true)}>{children}</Button>
<Dialog open={openMainDialog} onOpenChange={setOpenMainDialog}>
+ <DialogTrigger asChild>{children}</DialogTrigger>
<DialogContent className="sm:max-w-[700px] h-[80vh] overflow-hidden flex flex-col">
<DialogTitle className="flex items-center">
{currentParent && (
diff --git a/flowsint-web/src/components/sketches/sketch/create-relation.tsx b/flowsint-web/src/components/sketches/sketch/create-relation.tsx
index 5daf5263..41de6fc9 100644
--- a/flowsint-web/src/components/sketches/sketch/create-relation.tsx
+++ b/flowsint-web/src/components/sketches/sketch/create-relation.tsx
@@ -12,14 +12,13 @@ import { Badge } from "@/components/ui/badge"
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"
import { saveEdge } from "@/lib/actions/sketches"
import { toast } from "sonner"
-import { EdgeData } from "@/types"
export function CreateRelationDialog({ sketchId }: { sketchId: string }) {
const selectedNodes = useSketchStore((state) => state.selectedNodes || [])
const addEdge = useSketchStore((state) => state.addEdge)
const openAddRelationDialog = useSketchStore((state) => state.openAddRelationDialog)
const setOpenAddRelationDialog = useSketchStore((state) => state.setOpenAddRelationDialog)
- const [relationType, setRelationType] = useState("")
+ const [relationType, setRelationType] = useState("IS_RELATED_TO")
const [direction, setDirection] = useState<"one-way" | "two-way">("one-way")
const handleSubmit = async (e: { preventDefault: () => void }) => {
diff --git a/flowsint-web/src/components/sketches/sketch/details-panel.tsx b/flowsint-web/src/components/sketches/sketch/details-panel.tsx
index 1ffd0315..045288e0 100644
--- a/flowsint-web/src/components/sketches/sketch/details-panel.tsx
+++ b/flowsint-web/src/components/sketches/sketch/details-panel.tsx
@@ -24,23 +24,23 @@ export default function DetailsPanel({ data, sketch_id }: { data: any, sketch_id
return (
<div className="overflow-y-auto overflow-x-hidden h-full">
<div className="flex items-center sticky bg-card top-0 border-b justify-start px-4 py-2 gap-2 z-50">
- <IconContainer
+ {/* <IconContainer
type={data?.type}
icon={Icon}
size={20}
- />
+ /> */}
<h1 className="text-md font-semibold truncate">{data?.label}</h1>
<div className="grow" />
<div className="flex items-center gap-2">
<LaunchTransform values={[data.label]} sketch_id={sketch_id as string} type={data?.type} />
- <DropdownMenu>
+ {/* <DropdownMenu>
<DropdownMenuTrigger asChild><Button variant={"ghost"} size={"icon"}><MoreHorizontalIcon /></Button></DropdownMenuTrigger>
<DropdownMenuContent>
<DropdownMenuItem>Edit</DropdownMenuItem>
<DropdownMenuItem>Hide</DropdownMenuItem>
<DropdownMenuItem variant="destructive">Delete</DropdownMenuItem>
</DropdownMenuContent>
- </DropdownMenu>
+ </DropdownMenu> */}
</div>
</div>
<KeyValueDisplay data={data} />
diff --git a/flowsint-web/src/components/sketches/sketch/launch-transform.tsx b/flowsint-web/src/components/sketches/sketch/launch-transform.tsx
index fa7ba85c..53316f24 100644
--- a/flowsint-web/src/components/sketches/sketch/launch-transform.tsx
+++ b/flowsint-web/src/components/sketches/sketch/launch-transform.tsx
@@ -57,7 +57,7 @@ const LaunchTransform = ({ values, type, sketch_id }: { values: string[], type:
<Button
onClick={handleOpenModal}
disabled={isLoading || !transforms?.length}
- className="relative min-w-[80px] h-8 overflow-hidden truncate bg-gradient-to-r from-primary to-primary/80 hover:from-primary/90 hover:to-primary transition-all duration-300 px-6 py-2 text-white border-none font-medium rounded-full"
+ className="relative min-w-[80px] h-8 overflow-hidden truncate bg-gradient-to-r from-primary to-primary/80 hover:from-primary/90 hover:to-primary transition-all duration-300 px-4 py-2 text-white border-none font-medium rounded-full"
>
<span className="flex items-center gap-2">
<Sparkles className={"h-4 w-4 transition-transform duration-300"} />
diff --git a/flowsint-web/src/components/sketches/sketch/nodes-panel.tsx b/flowsint-web/src/components/sketches/sketch/nodes-panel.tsx
index e768959b..2e54c067 100644
--- a/flowsint-web/src/components/sketches/sketch/nodes-panel.tsx
+++ b/flowsint-web/src/components/sketches/sketch/nodes-panel.tsx
@@ -28,13 +28,11 @@ const SocialNode = memo(
({
node,
setCurrentNode,
- isSelected,
onCheckboxChange,
isNodeChecked,
}: {
node: any
setCurrentNode: (node: NodeData) => void
- isSelected: any
onCheckboxChange: (node: NodeData, checked: boolean) => void
isNodeChecked: (nodeId: string) => boolean
}) => {
@@ -62,7 +60,6 @@ const SocialNode = memo(
variant={"ghost"}
className={cn(
"flex-1 flex items-center justify-start p-4 !py-5 rounded-none text-left border-l-2 border-l-transparent",
- isSelected(node.id) && "border-l-primary bg-background",
)}
onClick={handleClick}
>
@@ -84,13 +81,11 @@ const NodeRenderer = memo(
({
node,
setCurrentNode,
- isSelected,
onCheckboxChange,
isNodeChecked,
}: {
node: any
setCurrentNode: (node: NodeData) => void
- isSelected: any
onCheckboxChange: (node: NodeData, checked: boolean) => void
isNodeChecked: (nodeId: string) => boolean
}) => {
@@ -107,7 +102,6 @@ const NodeRenderer = memo(
<SocialNode
setCurrentNode={setCurrentNode}
node={node}
- isSelected={isSelected}
onCheckboxChange={onCheckboxChange}
isNodeChecked={isNodeChecked}
/>
@@ -123,7 +117,6 @@ const NodeRenderer = memo(
variant={"ghost"}
className={cn(
"flex-1 flex truncate items-center justify-start p-4 !py-5 rounded-none text-left border-l-2 border-l-transparent",
- isSelected(node.id) && "border-l-primary bg-background",
)}
onClick={handleClick}
>
@@ -142,7 +135,6 @@ const NodeRenderer = memo(
const NodesPanel = memo(({ nodes, isLoading }: { nodes: NodeData[]; isLoading?: boolean }) => {
const setCurrentNode = useSketchStore((state) => state.setCurrentNode)
- const isSelected = useSketchStore((state) => state.isSelected)
const setSelectedNodes = useSketchStore((state) => state.setSelectedNodes)
const selectedNodes = useSketchStore((state) => state.selectedNodes || [])
const [searchQuery, setSearchQuery] = useState<string>("")
@@ -282,7 +274,6 @@ const NodesPanel = memo(({ nodes, isLoading }: { nodes: NodeData[]; isLoading?:
filteredNodes?.map((node: any) => (
<NodeRenderer
node={node}
- isSelected={isSelected}
setCurrentNode={setCurrentNode}
onCheckboxChange={handleCheckboxChange}
isNodeChecked={isNodeChecked}
diff --git a/flowsint-web/src/store/node-display-settings.ts b/flowsint-web/src/store/node-display-settings.ts
index efb29281..03aa4709 100644
--- a/flowsint-web/src/store/node-display-settings.ts
+++ b/flowsint-web/src/store/node-display-settings.ts
@@ -115,31 +115,31 @@ const DEFAULT_ICONS: Record<ItemType, string> = {
}
const DEFAULT_SIZES: Record<ItemType, number> = {
- individual: 40,
- phone: 30,
- address: 30,
- email: 30,
- ip: 30,
- social_profile: 30,
- organization: 45,
- vehicle: 30,
- website: 30,
- domain: 35,
- subdomain: 30,
- document: 30,
- financial: 30,
- event: 30,
- device: 30,
- media: 30,
- education: 30,
- relationship: 30,
- online_activity: 30,
- digital_footprint: 30,
- biometric: 30,
- credential: 30,
- username: 35,
- siret: 25,
- siren: 25
+ individual: 10,
+ phone: 8,
+ address: 7,
+ email: 7,
+ ip: 7,
+ social_profile: 7,
+ organization: 10,
+ vehicle: 7,
+ website: 7,
+ domain: 8,
+ subdomain: 7,
+ document: 7,
+ financial: 7,
+ event: 7,
+ device: 7,
+ media: 7,
+ education: 7,
+ relationship: 7,
+ online_activity: 7,
+ digital_footprint: 7,
+ biometric: 7,
+ credential: 7,
+ username: 8,
+ siret: 5,
+ siren: 5
}
interface NodesDisplaySettingsState {
diff --git a/flowsint-web/src/store/sketch-store.ts b/flowsint-web/src/store/sketch-store.ts
index 8a61fb98..e95995c3 100644
--- a/flowsint-web/src/store/sketch-store.ts
+++ b/flowsint-web/src/store/sketch-store.ts
@@ -12,6 +12,8 @@ interface SketchState {
setEdges: (edges: EdgeData[]) => void
addNode: (newNode: Partial<NodeData>) => NodeData
addEdge: (newEdge: Partial<EdgeData>) => EdgeData
+ removeNodes: (nodeIds: string[]) => void
+ removeEdges: (edgeIds: string[]) => void
// === Selection & Current ===
currentNode: NodeData | null
@@ -65,6 +67,19 @@ export const useSketchStore = create<SketchState>()((set, get) => ({
set({ edges: [...edges, edgeWithId] })
return edgeWithId
},
+ removeNodes: (nodeIds: string[]) => {
+ const { nodes, edges } = get();
+ const newNodes = nodes.filter((n) => !nodeIds.includes(n.id));
+ const newEdges = edges.filter(
+ (e) => !nodeIds.includes(e.from) && !nodeIds.includes(e.to)
+ );
+ set({ nodes: newNodes, edges: newEdges });
+ },
+ removeEdges: (edgeIds: string[]) => {
+ const { edges } = get()
+ const newEdges = edges.filter((e) => !edgeIds.includes(e.id))
+ set({ edges: newEdges })
+ },
// === Selection & Current ===
currentNode: null,
diff --git a/flowsint-web/src/types/index.ts b/flowsint-web/src/types/index.ts
index ef88533a..b0da3b3e 100644
--- a/flowsint-web/src/types/index.ts
+++ b/flowsint-web/src/types/index.ts
@@ -19,6 +19,9 @@ export type NodeData = {
export type EdgeData = {
source: string;
target: string;
+ from: string,
+ to: string,
+ date: string,
id: string;
label: string;
type: string,
diff --git a/flowsint-web/styles/globals.css b/flowsint-web/styles/globals.css
index 26baa878..0f172fb7 100644
--- a/flowsint-web/styles/globals.css
+++ b/flowsint-web/styles/globals.css
@@ -257,4 +257,8 @@ body {
--shadow-lg: var(--shadow-lg);
--shadow-xl: var(--shadow-xl);
--shadow-2xl: var(--shadow-2xl);
+}
+
+.style_module_watermark__6b4371ae{
+ display: none;
}
\ No newline at end of file
diff --git a/flowsint-web/yarn.lock b/flowsint-web/yarn.lock
index 1ca9ec31..24bc166e 100644
--- a/flowsint-web/yarn.lock
+++ b/flowsint-web/yarn.lock
@@ -84,6 +84,61 @@
"@babel/helper-string-parser" "^7.25.9"
"@babel/helper-validator-identifier" "^7.25.9"
+"@cosmograph/[email protected]":
+ version "1.4.2"
+ resolved "https://registry.yarnpkg.com/@cosmograph/cosmograph/-/cosmograph-1.4.2.tgz#73956de6908e0a2b99cf78186aba3af926bb328f"
+ integrity sha512-kXO1IyayWUbl1IY3UCt2W9vjwmBKmChi7MBVSgKByGM5kyfRcqNbY3xCGRjUA0MYglxm1tjqCMh1DjgQkUdsEQ==
+ dependencies:
+ "@cosmograph/cosmos" "1.6.2-beta.1"
+ "@cosmograph/ui" "1.4.2"
+ "@interacta/css-labels" "^0.1.2-beta.1"
+ "@supabase/supabase-js" "^2.38.4"
+ crossfilter2 "^1.5.4"
+ d3-color "^3.1.0"
+ rollup-plugin-rename-node-modules "^1.3.1"
+
+"@cosmograph/[email protected]":
+ version "1.6.2-beta.1"
+ resolved "https://registry.yarnpkg.com/@cosmograph/cosmos/-/cosmos-1.6.2-beta.1.tgz#fa8455490ed3fb842088468383b9c699ffa9df3c"
+ integrity sha512-kk9C/ywjG9LL8nzcVP5BOUWsUov6rvzJXkfOpakktNLeLMZJ2m9tT8XMVWLHwPW7sehvqPBVKseqY0xY/YL5iA==
+ dependencies:
+ d3-array "^3.2.0"
+ d3-color "^3.1.0"
+ d3-ease "^3.0.1"
+ d3-scale "^4.0.2"
+ d3-selection "^3.0.0"
+ d3-transition "^3.0.1"
+ d3-zoom "^3.0.0"
+ gl-bench "^1.0.42"
+ gl-matrix "^3.4.3"
+ random "^4.1.0"
+ regl "npm:@plotly/regl@^2.1.2"
+
+"@cosmograph/react@^1.4.2":
+ version "1.4.2"
+ resolved "https://registry.yarnpkg.com/@cosmograph/react/-/react-1.4.2.tgz#f4deb08c4b510c4b98841c312a1599e872498000"
+ integrity sha512-J4f6jqCIyhroDX6SMxbW0LqF83RV+yAQ0qfm72jKhbTbkgfm52H++U7HBZRvR+XCvPKDFMKUgrZzJo5PnKGW9Q==
+ dependencies:
+ "@cosmograph/cosmograph" "1.4.2"
+ "@cosmograph/cosmos" "1.6.2-beta.1"
+
+"@cosmograph/[email protected]":
+ version "1.4.2"
+ resolved "https://registry.yarnpkg.com/@cosmograph/ui/-/ui-1.4.2.tgz#6bd7e13ed2864d2698cd205df1b9f764638f737a"
+ integrity sha512-yaCm6dqSOSm4cnjYo7BDY8d76KB8PyL82l5NrkxsQLM8EKlhvfGdeZPN2DGDCAVMQhGRnLb/DBLe1O4x+ELcJA==
+ dependencies:
+ "@juggle/resize-observer" "^3.4.0"
+ d3-array "^3.2.4"
+ d3-axis "^3.0.0"
+ d3-brush "^3.0.0"
+ d3-format "^3.1.0"
+ d3-scale "^4.0.2"
+ d3-selection "^3.0.0"
+ d3-time "^3.1.0"
+ d3-time-format "^4.1.0"
+ d3-transition "^3.0.1"
+ escape-string-regexp "^5.0.0"
+
"@dagrejs/dagre@^1.1.4":
version "1.1.4"
resolved "https://registry.yarnpkg.com/@dagrejs/dagre/-/dagre-1.1.4.tgz#66f9c0e2b558308f2c268f60e2c28f22ee17e339"
@@ -504,6 +559,11 @@
resolved "https://registry.yarnpkg.com/@img/sharp-win32-x64/-/sharp-win32-x64-0.33.5.tgz#56f00962ff0c4e0eb93d34a047d29fa995e3e342"
integrity sha512-MpY/o8/8kj+EcnxwvrP4aTJSWw/aZ7JIGR4aBeZkZw5B7/Jn+tY9/VNwtcoGmdT7GfggGIU4kygOMSbYnOrAbg==
+"@interacta/css-labels@^0.1.2-beta.1":
+ version "0.1.2"
+ resolved "https://registry.yarnpkg.com/@interacta/css-labels/-/css-labels-0.1.2.tgz#6e730ebf3f4497538c793ca8b04b1653757fd419"
+ integrity sha512-BYEU8LDKevrua77e6eruGrJ32JMi9s+OOmzPq8GEUPAU6wMQCiUk0Sebg77VAtFZ3XARMQR5kXRhKMfdt3HTKg==
+
"@internationalized/date@^3.7.0":
version "3.7.0"
resolved "https://registry.yarnpkg.com/@internationalized/date/-/date-3.7.0.tgz#23a4956308ee108e308517a7137c69ab8f5f2ad9"
@@ -516,6 +576,11 @@
resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz#3188bcb273a414b0d215fd22a58540b989b9409a"
integrity sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==
+"@juggle/resize-observer@^3.4.0":
+ version "3.4.0"
+ resolved "https://registry.yarnpkg.com/@juggle/resize-observer/-/resize-observer-3.4.0.tgz#08d6c5e20cf7e4cc02fd181c4b0c225cd31dbb60"
+ integrity sha512-dfLbk+PwWvFzSxwk3n5ySL0hfBog779o8h68wK/7/APo/7cgyWp5jcXockbxdk5kFRkbeXWm4Fbi9FrdN381sA==
+
"@lukeed/csprng@^1.1.0":
version "1.1.0"
resolved "https://registry.yarnpkg.com/@lukeed/csprng/-/csprng-1.1.0.tgz#1e3e4bd05c1cc7a0b2ddbd8a03f39f6e4b5e6cfe"
@@ -1542,6 +1607,11 @@
radix-ui "^1.1.2"
react-remove-scroll-bar "^2.3.8"
+"@ranfdev/[email protected]":
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/@ranfdev/deepobj/-/deepobj-1.0.2.tgz#9dba923578fa24aed3d3961975037b6423a03771"
+ integrity sha512-FM3y6kfJaj5MCoAjdv24EDCTDbuFz+4+pgAunbjYfugwIE4O/xx8mPNji1n/ouG8pHCntSnBr1xwTOensF23Gg==
+
"@react-aria/interactions@^3.22.5":
version "3.23.0"
resolved "https://registry.yarnpkg.com/@react-aria/interactions/-/interactions-3.23.0.tgz#28fce22310faeaa114978728045fb2b4fe80acc8"
@@ -1838,6 +1908,13 @@
dependencies:
"@supabase/node-fetch" "^2.6.14"
+"@supabase/[email protected]":
+ version "2.69.1"
+ resolved "https://registry.yarnpkg.com/@supabase/auth-js/-/auth-js-2.69.1.tgz#fcf310d24dfab823ffbf22191e6ceaef933360d8"
+ integrity sha512-FILtt5WjCNzmReeRLq5wRs3iShwmnWgBvxHfqapC/VoljJl+W8hDAyFmf1NVw3zH+ZjZ05AKxiKxVeb0HNWRMQ==
+ dependencies:
+ "@supabase/node-fetch" "^2.6.14"
+
"@supabase/[email protected]":
version "2.4.4"
resolved "https://registry.yarnpkg.com/@supabase/functions-js/-/functions-js-2.4.4.tgz#45fcd94d546bdfa66d01f93a796ca0304ec154b8"
@@ -1859,6 +1936,13 @@
dependencies:
"@supabase/node-fetch" "^2.6.14"
+"@supabase/[email protected]":
+ version "1.19.4"
+ resolved "https://registry.yarnpkg.com/@supabase/postgrest-js/-/postgrest-js-1.19.4.tgz#41de1e4310ce8ddba87becd7e0878f4ad7a659a2"
+ integrity sha512-O4soKqKtZIW3olqmbXXbKugUtByD2jPa8kL2m2c1oozAO11uCcGrRhkZL0kVxjBLrXHE0mdSkFsMj7jDSfyNpw==
+ dependencies:
+ "@supabase/node-fetch" "^2.6.14"
+
"@supabase/[email protected]":
version "2.11.2"
resolved "https://registry.yarnpkg.com/@supabase/realtime-js/-/realtime-js-2.11.2.tgz#7f7399c326be717eadc9d5e259f9e2690fbf83dd"
@@ -1884,6 +1968,18 @@
dependencies:
"@supabase/node-fetch" "^2.6.14"
+"@supabase/supabase-js@^2.38.4":
+ version "2.49.4"
+ resolved "https://registry.yarnpkg.com/@supabase/supabase-js/-/supabase-js-2.49.4.tgz#5be79f0bf5e6ba9aa5be0775fb0073871834e4d3"
+ integrity sha512-jUF0uRUmS8BKt37t01qaZ88H9yV1mbGYnqLeuFWLcdV+x1P4fl0yP9DGtaEhFPZcwSom7u16GkLEH9QJZOqOkw==
+ dependencies:
+ "@supabase/auth-js" "2.69.1"
+ "@supabase/functions-js" "2.4.4"
+ "@supabase/node-fetch" "2.6.15"
+ "@supabase/postgrest-js" "1.19.4"
+ "@supabase/realtime-js" "2.11.2"
+ "@supabase/storage-js" "2.7.1"
+
"@supabase/supabase-js@^2.48.1":
version "2.48.1"
resolved "https://registry.yarnpkg.com/@supabase/supabase-js/-/supabase-js-2.48.1.tgz#6bbe6bd799115bd1237510e1c2de6f8ccdd84cd0"
@@ -3208,6 +3304,13 @@ cross-spawn@^7.0.2:
shebang-command "^2.0.0"
which "^2.0.1"
+crossfilter2@^1.5.4:
+ version "1.5.4"
+ resolved "https://registry.yarnpkg.com/crossfilter2/-/crossfilter2-1.5.4.tgz#855a11245d9dc18631cd49d88101dc31a2bcffce"
+ integrity sha512-oOGqOM0RocwQFOXJnEaUKqYV6Mc1TNCRv3LrNUa0QlofQTutGAXyQaLW1aGKLls2sfnbwBEtsa6tPD3jY+ycqQ==
+ dependencies:
+ "@ranfdev/deepobj" "1.0.2"
+
csstype@^3.0.2:
version "3.1.3"
resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.3.tgz#d80ff294d114fb0e6ac500fbf85b60137d7eff81"
@@ -3225,7 +3328,7 @@ cytoscape@^3.23.0:
resolved "https://registry.yarnpkg.com/cytoscape/-/cytoscape-3.32.0.tgz#34bc2402c9bc7457ab7d9492745f034b7bf47644"
integrity sha512-5JHBC9n75kz5851jeklCPmZWcg3hUe6sjqJvyk3+hVqFaKcHwHgxsjeN1yLmggoUc6STbtm9/NQyabQehfjvWQ==
-"d3-array@1 - 3", "d3-array@2 - 3", "[email protected] - 3", "[email protected] - 3", d3-array@3, d3-array@^3.1.6, d3-array@^3.2.0:
+"d3-array@1 - 3", "d3-array@2 - 3", "[email protected] - 3", "[email protected] - 3", d3-array@3, d3-array@^3.1.6, d3-array@^3.2.0, d3-array@^3.2.4:
version "3.2.4"
resolved "https://registry.yarnpkg.com/d3-array/-/d3-array-3.2.4.tgz#15fec33b237f97ac5d7c986dc77da273a8ed0bb5"
integrity sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==
@@ -3239,7 +3342,7 @@ d3-array@^2.5.0:
dependencies:
internmap "^1.0.0"
-d3-axis@3:
+d3-axis@3, d3-axis@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/d3-axis/-/d3-axis-3.0.0.tgz#c42a4a13e8131d637b745fc2973824cfeaf93322"
integrity sha512-IH5tgjV4jE/GhHkRV0HiVYPDtvfjHQlQfJHs0usq7M30XcSBvOotpmH1IgkcXsO/5gEQZD43B//fc7SRT5S+xw==
@@ -3249,7 +3352,7 @@ d3-binarytree@1:
resolved "https://registry.yarnpkg.com/d3-binarytree/-/d3-binarytree-1.0.2.tgz#ed43ebc13c70fbabfdd62df17480bc5a425753cc"
integrity sha512-cElUNH+sHu95L04m92pG73t2MEJXKu+GeKUN1TJkFsu93E5W8E9Sc3kHEGJKgenGvj19m6upSn2EunvMgMD2Yw==
-d3-brush@3:
+d3-brush@3, d3-brush@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/d3-brush/-/d3-brush-3.0.0.tgz#6f767c4ed8dcb79de7ede3e1c0f89e63ef64d31c"
integrity sha512-ALnjWlVYkXsVIGlOsuWH1+3udkYFI48Ljihfnh8FZPF2QS9o+PzGLBslO0PjzVoHLZ2KCVgAM8NVkXPJB2aNnQ==
@@ -3272,7 +3375,7 @@ d3-chord@3:
resolved "https://registry.yarnpkg.com/d3-color/-/d3-color-2.0.0.tgz#8d625cab42ed9b8f601a1760a389f7ea9189d62e"
integrity sha512-SPXi0TSKPD4g9tw0NMZFnR95XVgUZiBH+uUTqQuDu1OsE2zomHU7ho0FISciaPvosimixwHFl3WHLGabv6dDgQ==
-"d3-color@1 - 3", d3-color@3:
+"d3-color@1 - 3", d3-color@3, d3-color@^3.1.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/d3-color/-/d3-color-3.1.0.tgz#395b2833dfac71507f12ac2f7af23bf819de24e2"
integrity sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==
@@ -3363,7 +3466,7 @@ d3-force@3, d3-force@^3.0.0:
d3-quadtree "1 - 3"
d3-timer "1 - 3"
-"d3-format@1 - 3", d3-format@3:
+"d3-format@1 - 3", d3-format@3, d3-format@^3.1.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/d3-format/-/d3-format-3.1.0.tgz#9260e23a28ea5cb109e93b21a06e24e2ebd55641"
integrity sha512-YyUI6AEuY/Wpt8KWLgZHsIU86atmikuoOmCfommt0LYHiQSPjvX2AcFc38PX0CBpr2RCyZhjex+NS/LPOv6YqA==
@@ -3462,14 +3565,14 @@ d3-shape@3, d3-shape@^3.1.0:
dependencies:
d3-path "^3.1.0"
-"d3-time-format@2 - 4", d3-time-format@4:
+"d3-time-format@2 - 4", d3-time-format@4, d3-time-format@^4.1.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/d3-time-format/-/d3-time-format-4.1.0.tgz#7ab5257a5041d11ecb4fe70a5c7d16a195bb408a"
integrity sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==
dependencies:
d3-time "1 - 3"
-"d3-time@1 - 3", "[email protected] - 3", d3-time@3, d3-time@^3.0.0:
+"d3-time@1 - 3", "[email protected] - 3", d3-time@3, d3-time@^3.0.0, d3-time@^3.1.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/d3-time/-/d3-time-3.1.0.tgz#9310db56e992e3c0175e1ef385e545e48a9bb5c7"
integrity sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==
@@ -3497,7 +3600,7 @@ d3-transition@2:
d3-interpolate "1 - 2"
d3-timer "1 - 2"
-"d3-transition@2 - 3", d3-transition@3:
+"d3-transition@2 - 3", d3-transition@3, d3-transition@^3.0.1:
version "3.0.1"
resolved "https://registry.yarnpkg.com/d3-transition/-/d3-transition-3.0.1.tgz#6869fdde1448868077fdd5989200cb61b2a1645f"
integrity sha512-ApKvfjsSR6tg06xrL434C0WydLr7JewBB3V+/39RMHsaXTOG0zmt/OAXeng5M5LBm0ojmxJrpomQVZ1aPvBL4w==
@@ -3970,6 +4073,11 @@ escape-string-regexp@^4.0.0:
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34"
integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==
+escape-string-regexp@^5.0.0:
+ version "5.0.0"
+ resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz#4683126b500b61762f2dbebace1806e8be31b1c8"
+ integrity sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==
+
version "15.0.4"
resolved "https://registry.yarnpkg.com/eslint-config-next/-/eslint-config-next-15.0.4.tgz#c868c11f90dd60830c9c94cbb9a89f021eb3eeb9"
@@ -4241,6 +4349,11 @@ estree-util-is-identifier-name@^3.0.0:
resolved "https://registry.yarnpkg.com/estree-util-is-identifier-name/-/estree-util-is-identifier-name-3.0.0.tgz#0b5ef4c4ff13508b34dcd01ecfa945f61fce5dbd"
integrity sha512-hFtqIDZTIUZ9BXLb8y4pYGyk6+wekIivNVTcmvk8NoOh+VeRn5y6cEHzbURrWbfp1fIqdVipilzj+lfaadNZmg==
+estree-walker@^2.0.1:
+ version "2.0.2"
+ resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-2.0.2.tgz#52f010178c2a4c117a7757cfe942adb7d2da4cac"
+ integrity sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==
+
estree-walker@^3.0.3:
version "3.0.3"
resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-3.0.3.tgz#67c3e549ec402a487b4fc193d1953a524752340d"
@@ -4510,7 +4623,12 @@ get-tsconfig@^4.7.5:
dependencies:
resolve-pkg-maps "^1.0.0"
-gl-matrix@^3.3.0:
+gl-bench@^1.0.42:
+ version "1.0.42"
+ resolved "https://registry.yarnpkg.com/gl-bench/-/gl-bench-1.0.42.tgz#f82b9a1556bc89db2a7d095aec3f51f4eda85cfc"
+ integrity sha512-zuMsA/NCPmI8dPy6q3zTUH8OUM5cqKg7uVWwqzrtXJPBqoypM0XeFWEc8iFOqbf/1qtXieWOrbmgFEByKTQt4Q==
+
+gl-matrix@^3.3.0, gl-matrix@^3.4.3:
version "3.4.3"
resolved "https://registry.yarnpkg.com/gl-matrix/-/gl-matrix-3.4.3.tgz#fc1191e8320009fd4d20e9339595c6041ddc22c9"
integrity sha512-wcCp8vu8FT22BnvKVPjXa/ICBWRq/zjFfdofZy1WSpQZpphblv12/bOQLBC1rMM7SGOFS9ltVmKOHil5+Ml7gA==
@@ -5271,6 +5389,13 @@ lucide-react@^0.475.0:
resolved "https://registry.yarnpkg.com/lucide-react/-/lucide-react-0.475.0.tgz#4b7b62c024f153ee4b52a6a0f33f9e72f07156f0"
integrity sha512-NJzvVu1HwFVeZ+Gwq2q00KygM1aBhy/ZrhY9FsAgJtpB+E4R7uxRk9M2iKvHa6/vNxZydIB59htha4c2vvwvVg==
+magic-string@^0.25.7:
+ version "0.25.9"
+ resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.25.9.tgz#de7f9faf91ef8a1c91d02c2e5314c8277dbcdd1c"
+ integrity sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==
+ dependencies:
+ sourcemap-codec "^1.4.8"
+
magic-string@^0.30.17:
version "0.30.17"
resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.30.17.tgz#450a449673d2460e5bbcfba9a61916a1714c7453"
@@ -6342,6 +6467,13 @@ radix-ui@^1.1.2:
"@radix-ui/react-use-size" "1.1.0"
"@radix-ui/react-visually-hidden" "1.1.2"
+random@^4.1.0:
+ version "4.1.0"
+ resolved "https://registry.yarnpkg.com/random/-/random-4.1.0.tgz#3e0fff0eea0d311e6a80fd2c91e72bb064dec363"
+ integrity sha512-6Ajb7XmMSE9EFAMGC3kg9mvE7fGlBip25mYYuSMzw/uUSrmGilvZo2qwX3RnTRjwXkwkS+4swse9otZ92VjAtQ==
+ dependencies:
+ seedrandom "^3.0.5"
+
rbush@^3.0.1:
version "3.0.1"
resolved "https://registry.yarnpkg.com/rbush/-/rbush-3.0.1.tgz#5fafa8a79b3b9afdfe5008403a720cc1de882ecf"
@@ -6596,6 +6728,11 @@ regexpp@^3.0.0:
resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.2.0.tgz#0425a2768d8f23bad70ca4b90461fa2f1213e1b2"
integrity sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==
+"regl@npm:@plotly/regl@^2.1.2":
+ version "2.1.2"
+ resolved "https://registry.yarnpkg.com/@plotly/regl/-/regl-2.1.2.tgz#fd31e3e820ed8824d59a67ab5e766bb101b810b6"
+ integrity sha512-Mdk+vUACbQvjd0m/1JJjOOafmkp/EpmHjISsopEz5Av44CBq7rPC05HHNbYGKVyNUF2zmEoBS/TT0pd0SPFFyw==
+
remark-parse@^11.0.0:
version "11.0.0"
resolved "https://registry.yarnpkg.com/remark-parse/-/remark-parse-11.0.0.tgz#aa60743fcb37ebf6b069204eb4da304e40db45a1"
@@ -6677,6 +6814,14 @@ robust-predicates@^3.0.2:
resolved "https://registry.yarnpkg.com/robust-predicates/-/robust-predicates-3.0.2.tgz#d5b28528c4824d20fc48df1928d41d9efa1ad771"
integrity sha512-IXgzBWvWQwE6PrDI05OvmXUIruQTcoMDzRsOd5CDvHCVLcLHMTSYvOK5Cm46kWqlV3yAbuSpBZdJ5oP5OUoStg==
+rollup-plugin-rename-node-modules@^1.3.1:
+ version "1.3.1"
+ resolved "https://registry.yarnpkg.com/rollup-plugin-rename-node-modules/-/rollup-plugin-rename-node-modules-1.3.1.tgz#d80091fc817ce726e7cdfc388ec2f4da286e280f"
+ integrity sha512-46TUPqO94GXuACYqVZjdbzNXTQAp+wTdZg/vUx2gaINb0da/ZPdaOtno2RGUOKBF4sbVM9v2ZqV98r4TQbp1UA==
+ dependencies:
+ estree-walker "^2.0.1"
+ magic-string "^0.25.7"
+
rollup@^4.34.9:
version "4.40.2"
resolved "https://registry.yarnpkg.com/rollup/-/rollup-4.40.2.tgz#778e88b7a197542682b3e318581f7697f55f0619"
@@ -6768,6 +6913,11 @@ scheduler@^0.26.0:
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.26.0.tgz#4ce8a8c2a2095f13ea11bf9a445be50c555d6337"
integrity sha512-NlHwttCI/l5gCPR3D1nNXtWABUmBwvZpEQiD4IXSbIDq8BzLIK/7Ir5gTFSGZDUu37K5cMNp0hFtzO38sC7gWA==
+seedrandom@^3.0.5:
+ version "3.0.5"
+ resolved "https://registry.yarnpkg.com/seedrandom/-/seedrandom-3.0.5.tgz#54edc85c95222525b0c7a6f6b3543d8e0b3aa0a7"
+ integrity sha512-8OwmbklUNzwezjGInmZ+2clQmExQPvomqjL7LFqOYqtmuxRgQYqOD3mHaU+MvZn5FLUeVxVfQjwLZW/n/JFuqg==
+
semver@^6.1.0, semver@^6.3.1:
version "6.3.1"
resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4"
@@ -6917,6 +7067,11 @@ source-map-js@^1.0.2, source-map-js@^1.2.1:
resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.2.1.tgz#1ce5650fddd87abc099eda37dcff024c2667ae46"
integrity sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==
+sourcemap-codec@^1.4.8:
+ version "1.4.8"
+ resolved "https://registry.yarnpkg.com/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz#ea804bd94857402e6992d05a38ef1ae35a9ab4c4"
+ integrity sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==
+
space-separated-tokens@^2.0.0:
version "2.0.2"
resolved "https://registry.yarnpkg.com/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz#1ecd9d2350a3844572c3f4a312bceb018348859f"