A modern platform for visual, flexible, and extensible graph-based investigations. For cybersecurity analysts and investigators.
feat: organigram
dextmorgn1ab9d5615c03
diff --git a/flowsint-web/package.json b/flowsint-web/package.jsonindex 166f2922..1ca6cc91 100644--- a/flowsint-web/package.json+++ b/flowsint-web/package.json@@ -15,6 +15,7 @@"@dnd-kit/core": "^6.3.1","@dnd-kit/modifiers": "^9.0.0","@dnd-kit/sortable": "^10.0.0",+ "@faker-js/faker": "^9.6.0","@hookform/resolvers": "^4.0.0","@internationalized/date": "^3.7.0","@mistralai/mistralai": "^1.5.0",diff --git a/flowsint-web/src/app/api/projects/[project_id]/investigations/route.ts b/flowsint-web/src/app/api/projects/[project_id]/investigations/route.tsindex 7e29247f..101b4a95 100644--- a/flowsint-web/src/app/api/projects/[project_id]/investigations/route.ts+++ b/flowsint-web/src/app/api/projects/[project_id]/investigations/route.ts@@ -1,8 +1,9 @@import { createClient } from "@/lib/supabase/server"import { NextResponse } from "next/server"-export async function GET() {+export async function GET(_: Request, { params }: { params: Promise<{ project_id: string }> }) {try {+ const { project_id } = await paramsconst supabase = await createClient()const {data: { user },@@ -14,7 +15,7 @@ export async function GET() {const { data: investigations, error } = await supabase.from("investigations").select("id, title, description, status, project_id, last_updated_at, project:projects(id, name), members:investigations_profiles(profile:profiles(id, first_name, last_name), role)").order("last_updated_at", { ascending: false })- .limit(4)+ .eq("project_id", project_id)if (error) {return NextResponse.json({ error: error.message }, { status: 500 })}diff --git a/flowsint-web/src/app/api/projects/[project_id]/organigrams/[organization_id]/sketch/initial.js b/flowsint-web/src/app/api/projects/[project_id]/organigrams/[organization_id]/sketch/initial.jsnew file mode 100644index 00000000..411d11e9--- /dev/null+++ b/flowsint-web/src/app/api/projects/[project_id]/organigrams/[organization_id]/sketch/initial.js@@ -0,0 +1,120 @@+import { faker } from '@faker-js/faker';++export const generateOrganigram = ({+ numDepartments = 4,+ managersPerDepartment = 3,+ employeesPerManager = 10,+} = {}) => {+ const nodes = [];+ const edges = [];+ let nodeId = 1;++ // CEO+ const ceoName = faker.person.fullName();+ nodes.push({+ id: `${nodeId}`,+ type: 'custom',+ data: {+ label: `${ceoName}\n(Chief Executive Officer)`,+ type: 'individual',+ },+ position: { x: 600, y: 0 },+ });+ const ceoId = `${nodeId}`;+ nodeId++;++ const vpIds = [];++ const departments = [+ 'Engineering',+ 'Sales',+ 'Marketing',+ 'Human Resources',+ 'Product',+ 'Finance',+ 'Customer Success',+ ].slice(0, numDepartments);++ departments.forEach((dept, i) => {+ const vpName = faker.person.fullName();+ const vpId = `${nodeId}`;+ vpIds.push(vpId);+ nodes.push({+ id: vpId,+ type: 'custom',+ data: {+ label: `${vpName}\n(VP of ${dept})`,+ type: 'individual',+ },+ position: { x: 300 * i, y: 150 },+ });+ edges.push({+ id: `e${ceoId}-${vpId}`,+ source: ceoId,+ target: vpId,+ type: 'smoothstep',+ label: 'reports to',+ });+ nodeId++;+ });++ vpIds.forEach((vpId, i) => {+ const managerIds = [];++ for (let m = 0; m < managersPerDepartment; m++) {+ const managerId = `${nodeId}`;+ managerIds.push(managerId);+ const managerName = faker.person.fullName();++ nodes.push({+ id: managerId,+ type: 'custom',+ data: {+ label: `${managerName}\n(Manager)`,+ type: 'individual',+ },+ position: { x: 300 * i + m * 100 - 100, y: 300 },+ });++ edges.push({+ id: `e${vpId}-${managerId}`,+ source: vpId,+ target: managerId,+ type: 'smoothstep',+ label: 'manages',+ });++ nodeId++;+ }++ managerIds.forEach((managerId, j) => {+ for (let e = 0; e < employeesPerManager; e++) {+ const empId = `${nodeId}`;+ const empName = faker.person.fullName();+ const role = faker.person.jobTitle();+ nodes.push({+ id: empId,+ type: 'custom',+ data: {+ label: `${empName}\n(${role})`,+ type: 'individual',+ },+ position: {+ x: 300 * i + j * 100 + (e - employeesPerManager / 2) * 20,+ y: 450,+ },+ });+ edges.push({+ id: `e${managerId}-${empId}`,+ source: managerId,+ target: empId,+ type: 'smoothstep',+ label: 'supervises',+ });+ nodeId++;+ }+ });+ });++ return { nodes, edges };+};diff --git a/flowsint-web/src/app/api/projects/[project_id]/organigrams/[organization_id]/sketch/route.ts b/flowsint-web/src/app/api/projects/[project_id]/organigrams/[organization_id]/sketch/route.tsnew file mode 100644index 00000000..16c559bb--- /dev/null+++ b/flowsint-web/src/app/api/projects/[project_id]/organigrams/[organization_id]/sketch/route.ts@@ -0,0 +1,32 @@+import { createClient } from "@/lib/supabase/server"+import type { NodeData, EdgeData } from "@/types"+import { NextResponse } from "next/server"+import { generateOrganigram } from './initial'+export async function GET(_: Request, { params }: { params: Promise<{ organization_id: string }> }) {+ const { organization_id } = await params+ const supabase = await createClient()+ try {+ const {+ data: { user },+ error: userError,+ } = await supabase.auth.getUser();+ if (!user || userError) {+ return NextResponse.json({ error: "Unauthorized" }, { status: 401 })+ }+ // const { data: graphData, error: graphError } = await supabase+ // .from("organization_graph")+ // .select("*")+ // .eq("organization_id", organization_id)+ // .single();+ const graphData = generateOrganigram(+ {+ numDepartments: 5,+ managersPerDepartment: 5,+ employeesPerManager: 10,+ }+ )+ return NextResponse.json(graphData, { status: 200 })+ } catch (error) {+ return NextResponse.json({ error: "Internal Server Error" }, { status: 500 })+ }+}diff --git a/flowsint-web/src/app/dashboard/projects/[project_id]/investigations/[investigation_id]/client.tsx b/flowsint-web/src/app/dashboard/projects/[project_id]/investigations/[investigation_id]/client.tsxindex 14dc8a9b..cd8cd830 100644--- a/flowsint-web/src/app/dashboard/projects/[project_id]/investigations/[investigation_id]/client.tsx+++ b/flowsint-web/src/app/dashboard/projects/[project_id]/investigations/[investigation_id]/client.tsx@@ -11,7 +11,6 @@ interface DashboardClientProps {investigationId: string}export default function DashboardClient({ projectId, investigationId }: DashboardClientProps) {- // Use the initial data from the server, but enable background updatesconst [view, _] = useQueryState("view", { defaultValue: "flow-graph" })const graphQuery = useQuery({queryKey: ["investigation", investigationId, "data"],@@ -24,20 +23,6 @@ export default function DashboardClient({ projectId, investigationId }: Dashboar},refetchOnWindowFocus: true,})- // supabase- // .channel("investigation-channel")- // .on(- // "postgres_changes",- // {- // event: "*",- // schema: "public",- // table: "scans",- // },- // (_: any) => {- // graphQuery.refetch()- // }- // )- // .subscribe()return (<>{view === "flow-graph" ?diff --git a/flowsint-web/src/app/dashboard/projects/[project_id]/investigations/[investigation_id]/layout.tsx b/flowsint-web/src/app/dashboard/projects/[project_id]/investigations/[investigation_id]/layout.tsxindex 13ce9cca..75be8f06 100644--- a/flowsint-web/src/app/dashboard/projects/[project_id]/investigations/[investigation_id]/layout.tsx+++ b/flowsint-web/src/app/dashboard/projects/[project_id]/investigations/[investigation_id]/layout.tsx@@ -1,8 +1,6 @@import { InvestigationProvider } from '@/components/contexts/investigation-provider';-import { SearchProvider } from '@/components/contexts/search-context';import { createClient } from "@/lib/supabase/server";import { redirect } from "next/navigation";-import { ChatProvider } from '@/components/contexts/chatbot-context';import { InvestigationtNavigation } from '@/components/investigations/investigation-navigation';import { ScanDrawer } from '@/components/investigations/scan-drawer';const DashboardLayout = async ({@@ -20,15 +18,11 @@ const DashboardLayout = async ({}return (<InvestigationProvider>- <SearchProvider>- <ChatProvider>- <div className="sticky z-40 bg-background w-full hidden md:flex top-[48px] border-b">- <InvestigationtNavigation project_id={project_id} investigation_id={investigation_id} />- </div>- {children}- <ScanDrawer />- </ChatProvider>- </SearchProvider>+ <div className="sticky z-40 bg-background w-full hidden md:flex top-[48px] border-b">+ <InvestigationtNavigation project_id={project_id} investigation_id={investigation_id} />+ </div>+ {children}+ <ScanDrawer /></InvestigationProvider>)}diff --git a/flowsint-web/src/app/dashboard/projects/[project_id]/investigations/[investigation_id]/left.tsx b/flowsint-web/src/app/dashboard/projects/[project_id]/investigations/[investigation_id]/left.tsxdeleted file mode 100644index 88606e3f..00000000--- a/flowsint-web/src/app/dashboard/projects/[project_id]/investigations/[investigation_id]/left.tsx+++ /dev/null@@ -1,202 +0,0 @@-"use client"-import { Skeleton } from "@/components/ui/skeleton"-import { cn } from "@/lib/utils"-import { AtSignIcon, PhoneIcon, RotateCwIcon, UserIcon } from "lucide-react"-import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "@/components/ui/accordion"-import { useInvestigationStore } from "@/store/investigation-store"-import { usePlatformIcons } from "@/lib/hooks/use-platform-icons"-import { useFlowStore } from "@/store/flow-store"-import { Input } from "@/components/ui/input"-import { Button } from "@/components/ui/button"-import { useState, useMemo } from "react"--const Left = ({ project_id, investigation_id }: { project_id: string, investigation_id: string }) => {- const platformsIcons = usePlatformIcons()- const { currentNode, setCurrentNode } = useFlowStore()- const [filterValue, setFilterValue] = useState("")-- // Utiliser le hook useInvestigationData pour récupérer les données- const {- individuals,- emails,- phones,- socials,- refetchAll- } = useInvestigationStore((state) => state.useInvestigationData(project_id, investigation_id))- const { isRefetching } = useInvestigationStore()-- // Filtrer les données- const filteredData = useMemo(() => {- const searchTerm = filterValue.toLowerCase().trim()- return {- individuals: individuals.data.filter(individual =>- individual.full_name.toLowerCase().includes(searchTerm)- ),- emails: emails.data.filter(email =>- email.email.toLowerCase().includes(searchTerm)- ),- phones: phones.data.filter(phone =>- phone.phone_number.toLowerCase().includes(searchTerm)- ),- socials: socials.data.filter(social =>- (social.username?.toLowerCase() || social.profile_url?.toLowerCase() || "")- .includes(searchTerm)- )- }- }, [filterValue, individuals.data, emails.data, phones.data, socials.data])-- // Composant réutilisable pour le skeleton loader- const LoadingSkeleton = () => (- <div className="flex flex-col gap-1 px-2">- <Skeleton className="w-[90%] h-[14px] bg-foreground/5 rounded-xl" />- <Skeleton className="w-[80%] h-[14px] bg-foreground/5 rounded-xl" />- <Skeleton className="w-[70%] h-[14px] bg-foreground/5 rounded-xl" />- </div>- )- return (- <div className="flex flex-col w-full">- <div className="flex items-center gap-2 p-2 border-b">- <Input- className="h-7 min-w-none max-w-none"- placeholder="Filter..."- value={filterValue}- onChange={(e) => setFilterValue(e.target.value)}- />- <Button- className="h-7 w-7 opacity-70"- variant="ghost"- disabled={isRefetching}- onClick={refetchAll}- >- <RotateCwIcon className={cn(isRefetching && 'animate-spin', 'h-5 w-5')} />- </Button>- </div>- <Accordion type="single" collapsible defaultValue="individuals">- <AccordionItem value="individuals">- <AccordionTrigger className="p-2 px-4 hover:bg-sidebar-accent text-sidebar-accent-foreground/60 hover:text-sidebar-accent-foreground text-sm rounded-none">- Profiles {!individuals.isLoading && <>({filteredData.individuals.length})</>}- </AccordionTrigger>- <AccordionContent>- {individuals.isLoading ? (- <LoadingSkeleton />- ) : (- <ul className="w-full">- {filteredData.individuals.map((individual) => (- <li- className={cn(- "hover:bg-sidebar-accent text-sidebar-accent-foreground/90 hover:text-sidebar-accent-foreground text-sm truncate",- currentNode?.id === individual.id && "bg-sidebar-accent text-sidebar-accent-foreground",- )}- key={individual.id}- >- <button- onClick={() => setCurrentNode(individual)}- className="flex items-center p-1 px-4 w-full gap-2 truncate"- >- <UserIcon className="h-3 w-3 opacity-60" />- <span className="truncate text-ellipsis">{individual.full_name}</span>- </button>- </li>- ))}- </ul>- )}- </AccordionContent>- </AccordionItem>- </Accordion>-- <Accordion type="single" collapsible defaultValue="emails">- <AccordionItem value="emails">- <AccordionTrigger className="p-2 px-4 hover:bg-sidebar-accent text-sidebar-accent-foreground/60 hover:text-sidebar-accent-foreground text-sm rounded-none">- Emails {!emails.isLoading && <>({filteredData.emails.length})</>}- </AccordionTrigger>- <AccordionContent>- {emails.isLoading ? (- <LoadingSkeleton />- ) : (- <ul>- {filteredData.emails.map((email) => (- <li- className={cn(- "hover:bg-sidebar-accent text-sidebar-accent-foreground/90 hover:text-sidebar-accent-foreground text-sm",- currentNode?.id === email.id && "bg-sidebar-accent text-sidebar-accent-foreground",- )}- key={email.id}- >- <button onClick={() => setCurrentNode(email)} className="flex items-center p-1 px-4 w-full gap-2">- <AtSignIcon className="h-3 w-3 opacity-60" />- {email.email}- </button>- </li>- ))}- </ul>- )}- </AccordionContent>- </AccordionItem>- </Accordion>- <Accordion type="single" collapsible defaultValue="phones">- <AccordionItem value="phones">- <AccordionTrigger className="p-2 px-4 hover:bg-sidebar-accent text-sidebar-accent-foreground/60 hover:text-sidebar-accent-foreground text-sm rounded-none">- Phones {!phones.isLoading && <>({filteredData.phones.length})</>}- </AccordionTrigger>- <AccordionContent>- {phones.isLoading ? (- <LoadingSkeleton />- ) : (- <ul>- {filteredData.phones.map((phone) => (- <li- className={cn(- "hover:bg-sidebar-accent text-sidebar-accent-foreground/90 hover:text-sidebar-accent-foreground text-sm",- currentNode?.id === phone.id && "bg-sidebar-accent text-sidebar-accent-foreground",- )}- key={phone.id}- >- <button onClick={() => setCurrentNode(phone)} className="flex items-center p-1 px-4 w-full gap-2">- <PhoneIcon className="h-3 w-3 opacity-60" />- {phone.phone_number}- </button>- </li>- ))}- </ul>- )}- </AccordionContent>- </AccordionItem>- </Accordion>-- <Accordion type="single" collapsible defaultValue="socials">- <AccordionItem value="socials">- <AccordionTrigger className="p-2 px-4 hover:bg-sidebar-accent text-sidebar-accent-foreground/60 hover:text-sidebar-accent-foreground text-sm rounded-none">- Socials {!socials.isLoading && <>({filteredData.socials.length})</>}- </AccordionTrigger>- <AccordionContent>- {socials.isLoading ? (- <LoadingSkeleton />- ) : (- <ul>- {filteredData.socials.map((social) => (- <li- className={cn(- "hover:bg-sidebar-accent text-sidebar-accent-foreground/90 hover:text-sidebar-accent-foreground text-sm",- currentNode?.id === social.id && "bg-sidebar-accent text-sidebar-accent-foreground",- )}- key={social.id}- >- <button onClick={() => setCurrentNode(social)} className="flex items-center p-1 px-4 w-full gap-2">- <span className="opacity-60">- {/* @ts-ignore */}- {platformsIcons?.[social.platform]?.icon}- </span>- {social.username || social.profile_url}- </button>- </li>- ))}- </ul>- )}- </AccordionContent>- </AccordionItem>- </Accordion>- </div>- )-}--export default Left\ No newline at end of filediff --git a/flowsint-web/src/app/dashboard/projects/[project_id]/investigations/[investigation_id]/page.tsx b/flowsint-web/src/app/dashboard/projects/[project_id]/investigations/[investigation_id]/page.tsxindex 787c2b9b..79603200 100644--- a/flowsint-web/src/app/dashboard/projects/[project_id]/investigations/[investigation_id]/page.tsx+++ b/flowsint-web/src/app/dashboard/projects/[project_id]/investigations/[investigation_id]/page.tsx@@ -2,8 +2,7 @@ import { notFound, redirect, unauthorized } from "next/navigation"import DashboardClient from "./client"import { createClient } from "@/lib/supabase/server"-// Server Component for initial data fetch-const DashboardPage = async ({+const InvestigationPage = async ({params,}: {params: Promise<{ project_id: string, investigation_id: string }>@@ -24,5 +23,5 @@ const DashboardPage = async ({return <DashboardClient projectId={project_id} investigationId={investigation_id} />}-export default DashboardPage+export default InvestigationPagediff --git a/flowsint-web/src/app/dashboard/projects/[project_id]/organigrams/[organization_id]/client.tsx b/flowsint-web/src/app/dashboard/projects/[project_id]/organigrams/[organization_id]/client.tsxnew file mode 100644index 00000000..539ce46d--- /dev/null+++ b/flowsint-web/src/app/dashboard/projects/[project_id]/organigrams/[organization_id]/client.tsx@@ -0,0 +1,29 @@+"use client"+import { useQuery } from "@tanstack/react-query"+import OrganizationGraph from "@/components/organigrams/graph"+import IndividualModal from "@/components/investigations/individual-modal"+import { notFound } from "next/navigation"+interface DashboardClientProps {+ projectId: string+ organizationId: string+}+export default function OrganigramClient({ projectId, organizationId }: DashboardClientProps) {+ const graphQuery = useQuery({+ queryKey: ["project", [projectId], "organigram", organizationId],+ queryFn: async () => {+ const res = await fetch(`/api/projects/${projectId}/organigrams/${organizationId}/sketch`)+ if (!res.ok) {+ notFound()+ }+ return res.json()+ },+ refetchOnWindowFocus: true,+ })+ return (+ <>+ <OrganizationGraph graphQuery={graphQuery} />+ <IndividualModal />+ </>+ )+}+diff --git a/flowsint-web/src/app/dashboard/projects/[project_id]/organigrams/[organization_id]/layout.tsx b/flowsint-web/src/app/dashboard/projects/[project_id]/organigrams/[organization_id]/layout.tsxnew file mode 100644index 00000000..f7da2be3--- /dev/null+++ b/flowsint-web/src/app/dashboard/projects/[project_id]/organigrams/[organization_id]/layout.tsx@@ -0,0 +1,26 @@+import { InvestigationProvider } from '@/components/contexts/investigation-provider';+import { SearchProvider } from '@/components/contexts/search-context';+import { createClient } from "@/lib/supabase/server";+import { redirect } from "next/navigation";+import { ChatProvider } from '@/components/contexts/chatbot-context';+import { InvestigationtNavigation } from '@/components/investigations/investigation-navigation';+import { ScanDrawer } from '@/components/investigations/scan-drawer';+const DashboardLayout = async ({+ children,+ params,+}: {+ children: React.ReactNode;+ params: Promise<{ project_id: string, investigation_id: string }>+}) => {+ const supabase = await createClient()+ const { investigation_id, project_id } = await params+ const { data, error: userError } = await supabase.auth.getUser()+ if (userError || !data?.user) {+ redirect('/login')+ }+ return (+ children+ )+}++export default DashboardLayout\ No newline at end of filediff --git a/flowsint-web/src/app/dashboard/projects/[project_id]/organigrams/[organization_id]/loading.tsx b/flowsint-web/src/app/dashboard/projects/[project_id]/organigrams/[organization_id]/loading.tsxnew file mode 100644index 00000000..6b7b0d2d--- /dev/null+++ b/flowsint-web/src/app/dashboard/projects/[project_id]/organigrams/[organization_id]/loading.tsx@@ -0,0 +1,10 @@+import Loader from '@/components/loader'+import React from 'react'++const loading = () => {+ return (+ <div className='h-[90vh] w-full flex items-center justify-center gap-2'><Loader />Loading...</div>+ )+}++export default loading\ No newline at end of filediff --git a/flowsint-web/src/app/dashboard/projects/[project_id]/organigrams/[organization_id]/page.tsx b/flowsint-web/src/app/dashboard/projects/[project_id]/organigrams/[organization_id]/page.tsxnew file mode 100644index 00000000..143a5576--- /dev/null+++ b/flowsint-web/src/app/dashboard/projects/[project_id]/organigrams/[organization_id]/page.tsx@@ -0,0 +1,27 @@+import { notFound, redirect, unauthorized } from "next/navigation"+import DashboardClient from "./client"+import { createClient } from "@/lib/supabase/server"++const OrganigramPage = async ({+ params,+}: {+ params: Promise<{ project_id: string, organization_id: string }>+}) => {+ const supabase = await createClient()+ const { project_id, organization_id } = await (params)+ const {+ data: { user },+ error: userError,+ } = await supabase.auth.getUser();+ if (!user || userError) {+ return redirect("/login")+ }+ const { data: organization, error } = await supabase.from("organizations").select("id").eq("id", organization_id).single()+ if (!organization || error) {+ return notFound()+ }+ return <DashboardClient projectId={project_id} organizationId={organization_id} />+}++export default OrganigramPage+diff --git a/flowsint-web/src/components/investigations/new-actions.tsx b/flowsint-web/src/components/investigations/new-actions.tsxindex ab73bb7e..efe6bf2e 100644--- a/flowsint-web/src/components/investigations/new-actions.tsx+++ b/flowsint-web/src/components/investigations/new-actions.tsx@@ -202,7 +202,7 @@ function ActionCard({ item, onSelect }: ActionCardProps) {return (<CardclassName={cn(- "cursor-pointer transition-all bg-accent hover:scale-105 hover:shadow-md",+ "cursor-pointer transition-all bg-accent hover:border-primary border border-transparent hover:shadow-md",item.disabled && "opacity-50 cursor-not-allowed","h-full",)}@@ -216,12 +216,12 @@ function ActionCard({ item, onSelect }: ActionCardProps) {<Icon style={{ color: item.color }} className="h-6 w-6 opacity-60 text-primary" /></div><div className="font-medium text-sm">{item.label}</div>- {item.comingSoon && (+ {item.disabled && (<Badge variant="outline" className="mt-2 absolute top-2 left-2">soon</Badge>)}- {item.children && <div className="absolute top-3 right-4 text-xs text-muted-foreground mt-1"><ArrowRight className="h-4 w-4"/></div>}+ {item.children && <div className="absolute top-3 right-4 text-xs text-muted-foreground mt-1"><ArrowRight className="h-4 w-4" /></div>}{item.children && <div className="text-xs text-muted-foreground mt-1">{item.children.length} options</div>}</CardContent></Card>diff --git a/flowsint-web/src/components/investigations/sketch/graph.tsx b/flowsint-web/src/components/investigations/sketch/graph.tsxindex ff1777bc..9cdc5964 100644--- a/flowsint-web/src/components/investigations/sketch/graph.tsx+++ b/flowsint-web/src/components/investigations/sketch/graph.tsx@@ -53,16 +53,13 @@ import CustomNode from "./nodes/custom-node"import { Dialog, DialogTrigger } from "@/components/ui/dialog"import FullscreenButton from "@/components/full-screen-button"-// Move these outside of component scopeconst edgeTypes = {custom: CustomEdge,}-const nodeTypes = {custom: CustomNode,}-// Better selectors with more specific equality comparisonsconst nodeEdgeSelector = (state: { nodes: any; edges: any }) => ({nodes: state.nodes,edges: state.edges,diff --git a/flowsint-web/src/components/investigations/sketch/profile-panel.tsx b/flowsint-web/src/components/investigations/sketch/profile-panel.tsxindex 7a902390..cebed63b 100644--- a/flowsint-web/src/components/investigations/sketch/profile-panel.tsx+++ b/flowsint-web/src/components/investigations/sketch/profile-panel.tsx@@ -16,8 +16,9 @@ import {DropdownMenuTrigger,} from "@/components/ui/dropdown-menu"import { useConfirm } from "@/components/use-confirm-dialog"+import Link from "next/link"export default function ProfilePanel({ data, type }: { data: any, type: string }) {- const { investigation_id } = useParams()+ const { investigation_id, project_id } = useParams()const { confirm } = useConfirm()const handleCheckEmail = useCallback(async () => {@@ -48,17 +49,30 @@ export default function ProfilePanel({ data, type }: { data: any, type: string }<div className="flex items-center sticky bg-background top-0 border-b justify-between px-4 py-2 gap-2 z-50"><h1 className="text-md font-semibold truncate">{data?.label}</h1><div className="flex items-center gap-2">- <Button- onClick={handleCheckEmail}- disabled={data?.type !== "email"}- className="relative min-w-[80px] h-8 overflow-hidden bg-gradient-to-r from-purple-600 to-indigo-400 hover:from-purple-700 hover:to-indigo-500 transition-all duration-300 px-6 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'} />- <span>Search</span>- </span>- <span className="absolute inset-0 bg-black opacity-0 hover:opacity-10 transition-opacity duration-300" />- </Button>+ {data?.type === "organization" ?+ <Link href={`/dashboard/projects/${project_id}/organigrams/${data.id}`}>+ <Button+ className="relative min-w-[80px] h-8 overflow-hidden bg-gradient-to-r from-purple-600 to-indigo-400 hover:from-purple-700 hover:to-indigo-500 transition-all duration-300 px-6 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'} />+ <span>View organigram</span>+ </span>+ <span className="absolute inset-0 bg-black opacity-0 hover:opacity-10 transition-opacity duration-300" />+ </Button>+ </Link>+ :+ <Button+ onClick={handleCheckEmail}+ disabled={data?.type !== "email"}+ className="relative min-w-[80px] h-8 overflow-hidden bg-gradient-to-r from-purple-600 to-indigo-400 hover:from-purple-700 hover:to-indigo-500 transition-all duration-300 px-6 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'} />+ <span>Search</span>+ </span>+ <span className="absolute inset-0 bg-black opacity-0 hover:opacity-10 transition-opacity duration-300" />+ </Button>}<DropdownMenu><DropdownMenuTrigger asChild><Button variant={"ghost"} size={"icon"}><MoreHorizontalIcon /></Button></DropdownMenuTrigger><DropdownMenuContent>diff --git a/flowsint-web/src/components/organigrams/graph.tsx b/flowsint-web/src/components/organigrams/graph.tsxnew file mode 100644index 00000000..7813107e--- /dev/null+++ b/flowsint-web/src/components/organigrams/graph.tsx@@ -0,0 +1,403 @@+"use client"+import { useCallback, useEffect, useState, useMemo } from "react"+import type React from "react"+import {+ ReactFlow,+ ReactFlowProvider,+ Panel,+ useReactFlow,+ // @ts-ignore+ Background,+ // @ts-ignore+ MiniMap,+} from "@xyflow/react"+import "@xyflow/react/dist/style.css"+import {+ MaximizeIcon,+ ZoomInIcon,+ ZoomOutIcon,+ RotateCwIcon,+ PlusIcon,+ GroupIcon,+ WorkflowIcon,+ NetworkIcon,+ WaypointsIcon,+} from "lucide-react"+import { useTheme } from "next-themes"+import NewActions from "../investigations/new-actions"+import { useParams } from "next/navigation"+import { Tooltip, TooltipContent } from "@/components/ui/tooltip"+import { Button } from "@/components/ui/button"+import { TooltipTrigger } from "@radix-ui/react-tooltip"+import { cn } from "@/lib/utils"+import { useInvestigationStore } from "@/store/investigation-store"+import { useFlowStore } from "@/store/flow-store"+import Loader from "@/components/loader"+import { useQueryState } from "nuqs"+import { ContextMenu, ContextMenuContent, ContextMenuItem, ContextMenuTrigger } from "@/components/ui/context-menu"+import PanelContextMenu from "../investigations/panel-context-menu"+import { memo } from "react"+import { shallow } from "zustand/shallow"+import { TooltipProvider } from "@/components/ui/tooltip"+import {+ ResizableHandle,+ ResizablePanel,+ ResizablePanelGroup,+} from "@/components/ui/resizable"+import { Dialog, DialogTrigger } from "@/components/ui/dialog"+import FullscreenButton from "@/components/full-screen-button"+import ProfilePanel from "../investigations/sketch/profile-panel"+import NodesPanel from "../investigations/sketch/nodes-panel"+import OrganigramNode from "./organigram-node"+const nodeTypes = {+ custodm: OrganigramNode,+}++// Better selectors with more specific equality comparisons+const nodeEdgeSelector = (state: { nodes: any; edges: any }) => ({+ nodes: state.nodes,+ edges: state.edges,+})++const actionsSelector = (state: { onNodesChange: any; onEdgesChange: any; onConnect: any; onNodeClick: any; onPaneClick: any; onLayout: any }) => ({+ onNodesChange: state.onNodesChange,+ onEdgesChange: state.onEdgesChange,+ onConnect: state.onConnect,+ onNodeClick: state.onNodeClick,+ onPaneClick: state.onPaneClick,+ onLayout: state.onLayout,+})++const stateSelector = (state: { currentNode: any; setCurrentNode: any; resetNodeStyles: any; reloading: any; updateNode: any; highlightPath: any }) => ({+ currentNode: state.currentNode,+ setCurrentNode: state.setCurrentNode,+ resetNodeStyles: state.resetNodeStyles,+ reloading: state.reloading,+ updateNode: state.updateNode,+ highlightPath: state.highlightPath+})++// Properly memoized FlowControls component+const FlowControls = memo(({+ onLayout,+ fitView,+ handleRefetch,+ reloading,+ setView,+ zoomIn,+ zoomOut,+ addNodes+}: any) => {+ return (+ <>+ <Panel position="top-right" className="flex flex-col items-center gap-1">+ <FullscreenButton />+ </Panel>+ <Panel position="top-left" className="flex flex-col items-center gap-1">+ <NewActions addNodes={addNodes}>+ <Button className="bg-gradient-to-r from-purple-600 to-indigo-400 hover:from-purple-700 hover:to-indigo-500 transition-all duration-300" size="icon">+ <PlusIcon />+ </Button>+ </NewActions>+ <Button size="icon" disabled={reloading} variant="outline" onClick={handleRefetch}>+ <RotateCwIcon className={cn("h-4 w-4", reloading && "animate-spin")} />+ </Button>+ </Panel>+ <Panel position="bottom-left" className="flex flex-col items-center gap-1">+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ size="icon"+ variant="outline"+ onClick={() => onLayout("dagre", fitView)}+ >+ <NetworkIcon className="h-4 w-4" />+ </Button>+ </TooltipTrigger>+ <TooltipContent>Dagre layout</TooltipContent>+ </Tooltip>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ size="icon"+ variant="outline"+ onClick={() => onLayout("force", fitView)}+ >+ <WaypointsIcon className="h-4 w-4" />+ </Button>+ </TooltipTrigger>+ <TooltipContent>Force layout</TooltipContent>+ </Tooltip>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button size="icon" variant="outline" onClick={() => setView("large-graph")}>+ <WorkflowIcon className="h-4 w-4" />+ </Button>+ </TooltipTrigger>+ <TooltipContent>View 2D Graph</TooltipContent>+ </Tooltip>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button size="icon" variant="outline" onClick={() => fitView()}>+ <MaximizeIcon className="h-4 w-4" />+ </Button>+ </TooltipTrigger>+ <TooltipContent>Center view</TooltipContent>+ </Tooltip>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button size="icon" variant="outline" onClick={() => zoomIn()}>+ <ZoomInIcon className="h-4 w-4" />+ </Button>+ </TooltipTrigger>+ <TooltipContent>Zoom in</TooltipContent>+ </Tooltip>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button size="icon" variant="outline" onClick={() => zoomOut()}>+ <ZoomOutIcon className="h-4 w-4" />+ </Button>+ </TooltipTrigger>+ <TooltipContent>Zoom out</TooltipContent>+ </Tooltip>+ </Panel>+ </>+ )+});++const LayoutFlow = memo(({ refetch, theme }: any) => {+ const { fitView, zoomIn, zoomOut, addNodes, getNode, setCenter, getNodes } = useReactFlow();+ const { investigation_id } = useParams();+ const showMiniMap = useInvestigationStore(state => state.settings.showMiniMap);+ const [_, setView] = useQueryState("view", { defaultValue: "flow-graph" });++ // Use a ref for context menu state to avoid re-renders on position changes+ const [nodeContextMenu, setNodeContextMenu] = useState<{+ x: number;+ y: number;+ nodeId: string;+ data: any;+ nodeType: string;+ } | null>(null);++ // Use shallow comparison for complex objects from the store+ const { nodes, edges } = useFlowStore(nodeEdgeSelector, shallow);+ const {+ onNodesChange,+ onEdgesChange,+ onConnect,+ onNodeClick,+ onPaneClick,+ onLayout+ } = useFlowStore(actionsSelector, shallow);++ const {+ currentNode,+ setCurrentNode,+ reloading,+ updateNode,+ highlightPath+ } = useFlowStore(stateSelector, shallow);++ // Initialize layout once+ useEffect(() => {+ const timer = setTimeout(() => {+ onLayout("dagre", fitView);+ fitView();+ }, 500);+ return () => clearTimeout(timer);+ }, []); // Empty dependency array - run once only++ const handleRefetch = useCallback(() => {+ refetch();+ onLayout("dagre", fitView);+ fitView();+ }, [refetch, onLayout, fitView]);++ // Handle current node changes+ useEffect(() => {+ if (!currentNode) return;+ const internalNode = getNode(currentNode.id);+ if (!internalNode) return;+ updateNode(internalNode.id, {+ ...internalNode,+ zIndex: 5000,+ data: { ...internalNode.data, forceToolbarVisible: true },+ style: { ...internalNode.style, opacity: 1 },+ });+ const nodeWidth = internalNode.measured?.width ?? 0;+ const nodeHeight = internalNode.measured?.height ?? 0;+ setCenter(+ internalNode.position.x + nodeWidth / 2,+ internalNode.position.y + nodeHeight / 2 + 20,+ {+ duration: 500,+ zoom: 1.5,+ }+ );+ }, [currentNode?.id]); // Only depend on currentNode.id, not the whole object++ const handleConnect = useCallback(+ (params: any) => onConnect(params, investigation_id),+ [onConnect, investigation_id]+ );++ const handleNodeContextMenu = useCallback(+ (event: { preventDefault: () => void; stopPropagation: () => void; screenX: number; screenY: number }, node: { id: any; data: any; type?: any }) => {+ event.preventDefault();+ event.stopPropagation();+ setCurrentNode(node);+ setNodeContextMenu({+ x: event.screenX - 200,+ y: event.screenY - 150,+ nodeId: node.id,+ data: node.data,+ nodeType: node.type || "default",+ });+ },+ [setCurrentNode]+ );++ const closeNodeContextMenu = useCallback(() => {+ setNodeContextMenu(null);+ }, []);++ const handlePaneClick = useCallback(+ (event: any) => {+ closeNodeContextMenu();+ onPaneClick(event);+ },+ [onPaneClick, closeNodeContextMenu]+ );++ // Memoize ReactFlow props to prevent unnecessary re-renders+ const reactFlowProps = useMemo(() => ({+ colorMode: theme,+ nodes,+ edges,+ onNodesChange,+ onEdgesChange,+ onConnect: handleConnect,+ onNodeClick,+ onPaneClick: handlePaneClick,+ onNodeContextMenu: handleNodeContextMenu,+ minZoom: 0.5,+ fitView: true,+ nodeTypes,+ proOptions: { hideAttribution: true },+ className: "!bg-accent dark:!bg-background"+ }), [+ theme,+ nodes,+ edges,+ onNodesChange,+ onEdgesChange,+ handleConnect,+ onNodeClick,+ handlePaneClick,+ handleNodeContextMenu+ ]);++ // Process nodes only when nodes array length changes+ const processedNodes = useMemo(() =>+ nodes.map(({ id, data, type }: { id: string; data: any; type: string }) => ({ id, data, type }))+ .sort((a: { type: any }, b: { type: string }) => b.type?.localeCompare(a.type || "")),+ [nodes.length]+ );++ return (+ <ResizablePanelGroup autoSaveId="persistence" direction="horizontal" className="w-screen grow relative overflow-hidden">+ <ResizablePanel defaultSize={80}>+ <TooltipProvider>+ <Dialog>+ <ContextMenu>+ <ContextMenuTrigger className="h-full w-full">+ <ReactFlow {...reactFlowProps}>+ <FlowControls+ onLayout={onLayout}+ fitView={fitView}+ handleRefetch={handleRefetch}+ reloading={reloading}+ setView={setView}+ zoomIn={zoomIn}+ zoomOut={zoomOut}+ addNodes={addNodes}+ />+ <Background className="dark:bg-background bg-accent" />+ {showMiniMap && <MiniMap className="!z-40" pannable />}+ </ReactFlow>+ </ContextMenuTrigger>+ <ContextMenuContent className="w-32">+ <DialogTrigger asChild>+ <ContextMenuItem>+ <PlusIcon className="h-4 w-4 opacity-60" />+ <span>New node</span>+ </ContextMenuItem>+ </DialogTrigger>+ <ContextMenuItem disabled>+ <GroupIcon className="h-4 w-4 opacity-60" />+ <span>New group</span>+ </ContextMenuItem>+ </ContextMenuContent>+ </ContextMenu>+ <PanelContextMenu addNodes={addNodes} />+ </Dialog>+ </TooltipProvider>+ </ResizablePanel>+ <ResizableHandle withHandle />+ <ResizablePanel defaultSize={20} minSize={15} maxSize={40} className="h-full bg-background">+ <ResizablePanelGroup autoSaveId="conditional" direction="vertical">+ {currentNode && (+ <>+ <ResizablePanel order={1} id="top" defaultSize={40}>+ <ProfilePanel data={currentNode.data} type={currentNode.type} />+ </ResizablePanel>+ <ResizableHandle withHandle />+ </>+ )}+ <ResizablePanel order={2} id="bottom" defaultSize={60}>+ <NodesPanel nodes={processedNodes} />+ </ResizablePanel>+ </ResizablePanelGroup>+ </ResizablePanel>+ </ResizablePanelGroup>+ );+});++function Graph({ graphQuery }: any) {+ const [mounted, setMounted] = useState(false);+ const { refetch, isLoading, data } = graphQuery;+ const { resolvedTheme } = useTheme();++ // Only run mounting effect once+ useEffect(() => {+ setMounted(true);+ }, []);++ // Update flow store when data changes+ useEffect(() => {+ if (data) {+ useFlowStore.setState({+ nodes: data?.nodes || [],+ edges: data?.edges || []+ });+ setMounted(true);+ }+ }, [data]);++ if (!mounted || isLoading) {+ return (+ <div className="grow w-full flex items-center justify-center">+ <Loader /> Loading...+ </div>+ );+ }++ return (+ <ReactFlowProvider>+ <LayoutFlow refetch={refetch} theme={resolvedTheme || "light"} />+ </ReactFlowProvider>+ );+}++export default memo(Graph);\ No newline at end of filediff --git a/flowsint-web/src/components/organigrams/organigram-node.tsx b/flowsint-web/src/components/organigrams/organigram-node.tsxnew file mode 100644index 00000000..be2ede08--- /dev/null+++ b/flowsint-web/src/components/organigrams/organigram-node.tsx@@ -0,0 +1,44 @@+import React, { memo, useMemo } from 'react';+import { CopyButton } from '@/components/copy';+import { Badge } from '@/components/ui/badge';+import { Handle, Position } from '@xyflow/react';+import { cn, typeColorMap } from '@/lib/utils';+import { actionItems } from '@/lib/action-items';+import { QuestionMarkIcon } from '@radix-ui/react-icons';+import { useFlowStore } from '@/store/flow-store';+import { BaseNode } from '../ui/base-node';++export default memo(({ data }: any) => {+ const item = useMemo(() => (actionItems as any).find((a: any) => a.type === data.type), [data?.type]);+ const Icon = item?.icon || QuestionMarkIcon;+ const currentNodeId = useFlowStore(state => state.currentNode?.id,+ (prev, next) => prev === next);++ const active = currentNodeId === data.id;++ return (+ <BaseNode className={cn('p-.5 rounded-full', typeColorMap[data.type])} selected={active}>+ <div className="inline-flex items-center gap-2 p-1 w-auto">+ <Badge variant="secondary" className={cn("p-0 rounded-full", item?.size || "h-5 w-5")}>+ <Icon className="h-4 w-4" />+ </Badge>+ <div className="flex items-center gap-1">+ <span className="text-sm">{data.label}</span>+ <CopyButton className="rounded-full h-7 w-7 text-xs" content={data.label} />+ </div>+ </div>+ <Handle+ type="target"+ style={{ visibility: "hidden" }}+ position={Position.Top}+ isConnectable={false}+ />+ <Handle+ type="source"+ style={{ visibility: "hidden" }}+ position={Position.Bottom}+ isConnectable={false}+ />+ </BaseNode>+ );+});\ No newline at end of filediff --git a/flowsint-web/src/lib/action-items.ts b/flowsint-web/src/lib/action-items.tsindex 98dd9ee8..67d68a8a 100644--- a/flowsint-web/src/lib/action-items.ts+++ b/flowsint-web/src/lib/action-items.ts@@ -343,7 +343,8 @@ export const actionItems: ActionItem[] = [icon: FileIcon,label: "Document",fields: ["title", "author", "creation_date", "file_hash", "file_type"],- size: "h-5 w-5"+ size: "h-5 w-5",+ disabled: true,},{id: 27,@@ -353,6 +354,7 @@ export const actionItems: ActionItem[] = [icon: DollarSign,label: "Financial",fields: [],+ disabled: true,children: [{id: 28,@@ -362,7 +364,8 @@ export const actionItems: ActionItem[] = [icon: Bitcoin,label: "Crypto Wallet",fields: ["address", "currency", "platform"],- size: "h-5 w-5"+ size: "h-5 w-5",+ disabled: true,},{id: 29,@@ -372,7 +375,8 @@ export const actionItems: ActionItem[] = [icon: CreditCard,label: "Bank Account",fields: ["account_number", "bank_name", "iban", "bic"],- size: "h-5 w-5"+ size: "h-5 w-5",+ disabled: true,},{id: 30,@@ -382,7 +386,8 @@ export const actionItems: ActionItem[] = [icon: ArrowRightLeft,label: "Transaction",fields: ["amount", "date", "sender", "recipient", "currency"],- size: "h-5 w-5"+ size: "h-5 w-5",+ disabled: true,},],},@@ -394,8 +399,8 @@ export const actionItems: ActionItem[] = [icon: Calendar,label: "Event",fields: ["name", "date", "location", "description", "participants"],- size: "h-5 w-5"-+ size: "h-5 w-5",+ disabled: true,},{id: 32,@@ -405,6 +410,7 @@ export const actionItems: ActionItem[] = [icon: Smartphone,label: "Device",fields: [],+ disabled: true,children: [{id: 33,@@ -414,7 +420,8 @@ export const actionItems: ActionItem[] = [icon: Smartphone,label: "Phone",fields: ["imei", "model", "manufacturer", "serial_number", "type:phone"],- size: "h-5 w-5"+ size: "h-5 w-5",+ disabled: true,},{id: 34,@@ -424,7 +431,8 @@ export const actionItems: ActionItem[] = [icon: Laptop,label: "Computer",fields: ["mac_address", "model", "manufacturer", "serial_number", "type:computer"],- size: "h-5 w-5"+ size: "h-5 w-5",+ disabled: true,},{id: 35,@@ -434,7 +442,8 @@ export const actionItems: ActionItem[] = [icon: Tablet,label: "Tablet",fields: ["imei", "model", "manufacturer", "serial_number", "type:tablet"],- size: "h-5 w-5"+ size: "h-5 w-5",+ disabled: true,},{id: 36,@@ -444,7 +453,8 @@ export const actionItems: ActionItem[] = [icon: Wifi,label: "IoT Device",fields: ["mac_address", "model", "manufacturer", "serial_number", "type:iot"],- size: "h-5 w-5"+ size: "h-5 w-5",+ disabled: true,},],},@@ -456,7 +466,8 @@ export const actionItems: ActionItem[] = [icon: ImageIcon,label: "Media",fields: ["filename", "hash", "creation_date", "location", "exif_data"],- size: "h-5 w-5"+ size: "h-5 w-5",+ disabled: true,},{id: 38,@@ -466,17 +477,8 @@ export const actionItems: ActionItem[] = [icon: GraduationCap,label: "Education",fields: ["institution", "degree", "field", "start_date", "end_date"],- size: "h-5 w-5"- },- {- id: 39,- type: "relationship",- table: "relationships",- key: "relationships",- icon: Users,- label: "Relationship",- fields: ["type", "entity_a", "entity_b", "start_date", "end_date", "description"],- size: "h-5 w-5"+ size: "h-5 w-5",+ disabled: true,},{id: 40,@@ -486,6 +488,7 @@ export const actionItems: ActionItem[] = [icon: Activity,label: "Online Activity",fields: [],+ disabled: true,children: [{id: 41,@@ -495,7 +498,8 @@ export const actionItems: ActionItem[] = [icon: MessageSquare,label: "Forum Post",fields: ["forum", "username", "post_date", "post_content", "post_url", "type:forum_post"],- size: "h-5 w-5"+ size: "h-5 w-5",+ disabled: true,},{id: 42,@@ -505,7 +509,8 @@ export const actionItems: ActionItem[] = [icon: MessageCircle,label: "Comment",fields: ["platform", "username", "comment_date", "comment_content", "comment_url", "type:comment"],- size: "h-5 w-5"+ size: "h-5 w-5",+ disabled: true,},{id: 43,@@ -515,7 +520,8 @@ export const actionItems: ActionItem[] = [icon: ShoppingCart,label: "Online Purchase",fields: ["platform", "username", "purchase_date", "item", "price", "type:purchase"],- size: "h-5 w-5"+ size: "h-5 w-5",+ disabled: true,},],},@@ -527,7 +533,8 @@ export const actionItems: ActionItem[] = [icon: Footprints,label: "Digital Footprint",fields: ["platform", "username", "date_discovered", "data_type", "source_url"],- size: "h-5 w-5"+ size: "h-5 w-5",+ disabled: true,},{id: 45,@@ -537,7 +544,8 @@ export const actionItems: ActionItem[] = [icon: Fingerprint,label: "Biometric Data",fields: ["type", "identifier", "date_collected", "source"],- size: "h-5 w-5"+ size: "h-5 w-5",+ disabled: true,},{id: 46,@@ -547,6 +555,7 @@ export const actionItems: ActionItem[] = [icon: Key,label: "Credential",fields: ["service", "username", "hash", "breach_date", "breach_source"],- size: "h-5 w-5"+ size: "h-5 w-5",+ disabled: true,},]\ No newline at end of filediff --git a/flowsint-web/yarn.lock b/flowsint-web/yarn.lockindex 47e53d96..0526b494 100644--- a/flowsint-web/yarn.lock+++ b/flowsint-web/yarn.lock@@ -182,6 +182,11 @@resolved "https://registry.yarnpkg.com/@eslint/js/-/js-8.57.1.tgz#de633db3ec2ef6a3c89e2f19038063e8a122e2c2"integrity sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==+"@faker-js/faker@^9.6.0":+ version "9.6.0"+ resolved "https://registry.yarnpkg.com/@faker-js/faker/-/faker-9.6.0.tgz#64235d20330b142eef3d1d1638ba56c083b4bf1d"+ integrity sha512-3vm4by+B5lvsFPSyep3ELWmZfE3kicDtmemVpuwl1yH7tqtnHdsA6hG8fbXedMVdkzgtvzWoRgjSB4Q+FHnZiw==+"@floating-ui/core@^1.6.0":version "1.6.9"resolved "https://registry.yarnpkg.com/@floating-ui/core/-/core-1.6.9.tgz#64d1da251433019dafa091de9b2886ff35ec14e6"