A modern platform for visual, flexible, and extensible graph-based investigations. For cybersecurity analysts and investigators.
feat: zoom on click
dextmorgn862fac629d80
diff --git a/flowsint-web/src/app/dashboard/entities/data-table.tsx b/flowsint-web/src/app/dashboard/entities/data-table.tsxindex 631006cf..cd96cb89 100644--- a/flowsint-web/src/app/dashboard/entities/data-table.tsx+++ b/flowsint-web/src/app/dashboard/entities/data-table.tsx@@ -671,17 +671,17 @@ function TableCellViewer({ item }: { item: z.infer<typeof schema> }) {{item.header}</Button></SheetTrigger>- <SheetContent side="right" className="flex flex-col">+ <SheetContent side="right" className="flex flex-"><SheetHeader className="gap-1"><SheetTitle>{item.header}</SheetTitle><SheetDescription>Showing total visitors for the last 6 months</SheetDescription></SheetHeader>- <div className="flex flex-1 flex-col gap-4 overflow-y-auto py-4 text-sm">+ <div className="flex flex-1 flex-col gap-4 col p-4 overflow-y-auto py-4 text-sm">{!isMobile && (<>- <ChartContainer config={chartConfig}>+ <ChartContainer config={chartConfig} className="border rounded-md"><AreaChartaccessibilityLayerdata={chartData}diff --git a/flowsint-web/src/app/dashboard/entities/page.tsx b/flowsint-web/src/app/dashboard/entities/page.tsxindex 6d20e758..da43e053 100644--- a/flowsint-web/src/app/dashboard/entities/page.tsx+++ b/flowsint-web/src/app/dashboard/entities/page.tsx@@ -1,11 +1,17 @@import React from 'react'import data from "./data.json"import { DataTable } from './data-table'+import { SubNav } from '@/components/dashboard/sub-nav'const page = () => {return (- <div className="w-full space-y-8 container mx-auto py-12 px-8">- <DataTable data={data} />- </div>+ <>+ <div className="sticky z-40 bg-background w-full hidden md:flex top-[48px] border-b">+ <SubNav />+ </div>+ <div className="w-full space-y-8 container mx-auto py-12 px-8">+ <DataTable data={data} />+ </div>+ </>)}diff --git a/flowsint-web/src/app/dashboard/layout.tsx b/flowsint-web/src/app/dashboard/layout.tsxindex 3ba635e4..cb0623ad 100644--- a/flowsint-web/src/app/dashboard/layout.tsx+++ b/flowsint-web/src/app/dashboard/layout.tsx@@ -30,7 +30,7 @@ const DashboardLayout = async ({<SidebarInset><div className="flex flex-col flex-1 min-h-screen flex-col bg-background"><header className="sticky top-0 z-50 bg-background border-b">- <div className="flex h-14 items-center px-4">+ <div className="flex h-12 items-center px-4"><Link href="/dashboard" className="flex items-center gap-1"><Radar className="mr-2 h-6 w-6" /><h2 className="text-lg font-semibold mr-6">flowsint</h2>diff --git a/flowsint-web/src/app/dashboard/page.tsx b/flowsint-web/src/app/dashboard/page.tsxindex fee75b99..de3052de 100644--- a/flowsint-web/src/app/dashboard/page.tsx+++ b/flowsint-web/src/app/dashboard/page.tsx@@ -40,14 +40,16 @@ const DashboardPage = () => {return (<>- <div className="sticky z-40 bg-background w-full hidden md:flex top-[56px] border-b">+ <div className="sticky z-40 bg-background w-full hidden md:flex top-[48px] border-b"><SubNav /></div>- <div className="w-full space-y-8 container mx-auto py-12 px-8">- <div>- <h1 className="text-3xl font-bold">Welcome back, Eliott</h1>+ <div className="w-full space-y-8 mx-auto py-12 px-8">+ <div className="flex items-center gap-2 justify-between">+ <h1 className="text-2xl font-bold">Overview</h1>+ <Button>New investigation</Button></div><div>+<RecentSketches /></div><div className="flex items-center gap-2 justify-between mb-6">diff --git a/flowsint-web/src/app/dashboard/projects/[project_id]/individuals/[individual_id]/page.tsx b/flowsint-web/src/app/dashboard/projects/[project_id]/individuals/[individual_id]/page.tsxindex 372f8374..de8fba16 100644--- a/flowsint-web/src/app/dashboard/projects/[project_id]/individuals/[individual_id]/page.tsx+++ b/flowsint-web/src/app/dashboard/projects/[project_id]/individuals/[individual_id]/page.tsx@@ -180,314 +180,310 @@ export default async function IndividualPage({ params }: { params: Promise<{ indconst individual = await getIndividual(individual_id)return (- <DashboardLayout items={[{ name: "Projects", href: "/dashboard" }, {- name: individual?.investigation?.project?.name, href: `/dashboard/projects/${individual?.investigation?.project?.id}`,- }, { name: individual?.investigation?.title, href: `/dashboard/projects/${individual?.investigation?.project?.id}/investigations//${individual?.investigation?.id}`, icon: <Waypoints className="h-4 w-4 text-primary" /> }, { name: individual?.full_name, icon: <UserIcon className="h-4 w-4 text-primary" /> }]}>- <div className="min-h-screen p-6">- <div className="max-w-7xl mx-auto my-12 space-y-6">- {/* Header with profile info */}- <div className="flex flex-col md:flex-row gap-6 items-start md:items-center">- <Avatar className="w-24 h-24 rounded-full border-2">- <AvatarImage src={individual.avatar} alt={individual.full_name} />- <AvatarFallback className="">- {individual.full_name- .split(" ")- .map((n) => n[0])- .join("")}- </AvatarFallback>- </Avatar>- <div className="space-y-4">- <h1 className="text-3xl md:text-4xl font-bold">{individual.full_name}</h1>- <div className="grid grid-cols-1 md:grid-cols-2 gap-4">- <div className="flex items-center gap-2">- <span className="opacity-60">Email</span>- <span>{individual.email}</span>- </div>- <div className="flex items-center gap-2">- <span className="opacity-60">Phone Number</span>- <span>{individual.phoneNumber}</span>- </div>+ <div className="min-h-screen p-6">+ <div className="max-w-7xl mx-auto my-12 space-y-6">+ {/* Header with profile info */}+ <div className="flex flex-col md:flex-row gap-6 items-start md:items-center">+ <Avatar className="w-24 h-24 rounded-full border-2">+ <AvatarImage src={individual.avatar} alt={individual.full_name} />+ <AvatarFallback className="">+ {individual.full_name+ .split(" ")+ .map((n) => n[0])+ .join("")}+ </AvatarFallback>+ </Avatar>+ <div className="space-y-4">+ <h1 className="text-3xl md:text-4xl font-bold">{individual.full_name}</h1>+ <div className="grid grid-cols-1 md:grid-cols-2 gap-4">+ <div className="flex items-center gap-2">+ <span className="opacity-60">Email</span>+ <span>{individual.email}</span>+ </div>+ <div className="flex items-center gap-2">+ <span className="opacity-60">Phone Number</span>+ <span>{individual.phoneNumber}</span></div></div></div>+ </div>- {/* Stats cards */}- <div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4">- <Card className="bg-sidebar shadow-none border-border backdrop-blur">- <CardContent className="p-4 flex justify-between items-center">- <div className="flex items-center gap-2">- <div className="p-2 rounded-md ">- <CreditCard className="h-5 w-5" />- </div>- <span className="opacity-60">Accounts</span>- </div>- <div className="flex items-center gap-1">- <span className="text-2xl font-bold">{individual.stats.accounts}</span>- <ArrowRight className="h-4 w-4 text-gray-500" />+ {/* Stats cards */}+ <div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4">+ <Card className="bg-sidebar shadow-none border-border backdrop-blur">+ <CardContent className="p-4 flex justify-between items-center">+ <div className="flex items-center gap-2">+ <div className="p-2 rounded-md ">+ <CreditCard className="h-5 w-5" /></div>- </CardContent>- </Card>+ <span className="opacity-60">Accounts</span>+ </div>+ <div className="flex items-center gap-1">+ <span className="text-2xl font-bold">{individual.stats.accounts}</span>+ <ArrowRight className="h-4 w-4 text-gray-500" />+ </div>+ </CardContent>+ </Card>- <Card className="bg-sidebar shadow-none border-border backdrop-blur">- <CardContent className="p-4 flex justify-between items-center">- <div className="flex items-center gap-2">- <div className="p-2 rounded-md ">- <User className="h-5 w-5" />- </div>- <span className="opacity-60">Names</span>- </div>- <div className="flex items-center gap-1">- <span className="text-2xl font-bold">{individual.stats.names}</span>- <ArrowRight className="h-4 w-4 text-gray-500" />+ <Card className="bg-sidebar shadow-none border-border backdrop-blur">+ <CardContent className="p-4 flex justify-between items-center">+ <div className="flex items-center gap-2">+ <div className="p-2 rounded-md ">+ <User className="h-5 w-5" /></div>- </CardContent>- </Card>+ <span className="opacity-60">Names</span>+ </div>+ <div className="flex items-center gap-1">+ <span className="text-2xl font-bold">{individual.stats.names}</span>+ <ArrowRight className="h-4 w-4 text-gray-500" />+ </div>+ </CardContent>+ </Card>- <Card className="bg-sidebar shadow-none border-border backdrop-blur">- <CardContent className="p-4 flex justify-between items-center">- <div className="flex items-center gap-2">- <div className="p-2 rounded-md ">- <Mail className="h-5 w-5" />- </div>- <span className="opacity-60">Emails</span>+ <Card className="bg-sidebar shadow-none border-border backdrop-blur">+ <CardContent className="p-4 flex justify-between items-center">+ <div className="flex items-center gap-2">+ <div className="p-2 rounded-md ">+ <Mail className="h-5 w-5" /></div>- <div className="flex items-center gap-1">- <span className="text-2xl font-bold">{individual.stats.emails}</span>- <ArrowRight className="h-4 w-4 text-gray-500" />- </div>- </CardContent>- </Card>+ <span className="opacity-60">Emails</span>+ </div>+ <div className="flex items-center gap-1">+ <span className="text-2xl font-bold">{individual.stats.emails}</span>+ <ArrowRight className="h-4 w-4 text-gray-500" />+ </div>+ </CardContent>+ </Card>- <Card className="bg-sidebar shadow-none border-border backdrop-blur">- <CardContent className="p-4 flex justify-between items-center">- <div className="flex items-center gap-2">- <div className="p-2 rounded-md ">- <Phone className="h-5 w-5" />- </div>- <span className="opacity-60">Phone Numbers</span>- </div>- <div className="flex items-center gap-1">- <span className="text-2xl font-bold">{individual.stats.phoneNumbers}</span>- <ArrowRight className="h-4 w-4 text-gray-500" />+ <Card className="bg-sidebar shadow-none border-border backdrop-blur">+ <CardContent className="p-4 flex justify-between items-center">+ <div className="flex items-center gap-2">+ <div className="p-2 rounded-md ">+ <Phone className="h-5 w-5" /></div>- </CardContent>- </Card>- </div>+ <span className="opacity-60">Phone Numbers</span>+ </div>+ <div className="flex items-center gap-1">+ <span className="text-2xl font-bold">{individual.stats.phoneNumbers}</span>+ <ArrowRight className="h-4 w-4 text-gray-500" />+ </div>+ </CardContent>+ </Card>+ </div>- {/* Main content grid */}- <div className="grid grid-cols-1 lg:grid-cols-2 gap-6">- {/* Profile section */}- <Card className="bg-sidebar shadow-none border-border backdrop-blur">- <CardHeader className="border-b pb-4">- <h2 className="text-xl font-bold">Profile</h2>- </CardHeader>- <CardContent className="p-4 space-y-4">- <div className="grid grid-cols-2 gap-y-4">- <span className="opacity-60">Birthday</span>- <span className="text-right">{individual.profile.birthday}</span>+ {/* Main content grid */}+ <div className="grid grid-cols-1 lg:grid-cols-2 gap-6">+ {/* Profile section */}+ <Card className="bg-sidebar shadow-none border-border backdrop-blur">+ <CardHeader className="border-b pb-4">+ <h2 className="text-xl font-bold">Profile</h2>+ </CardHeader>+ <CardContent className="p-4 space-y-4">+ <div className="grid grid-cols-2 gap-y-4">+ <span className="opacity-60">Birthday</span>+ <span className="text-right">{individual.profile.birthday}</span>- <span className="opacity-60">Family status</span>- <span className="text-right">{individual.profile.familyStatus}</span>+ <span className="opacity-60">Family status</span>+ <span className="text-right">{individual.profile.familyStatus}</span>- <span className="opacity-60">Is job seeker</span>- <span className="text-right">{individual.profile.isJobSeeker ? "Yes" : "No"}</span>+ <span className="opacity-60">Is job seeker</span>+ <span className="text-right">{individual.profile.isJobSeeker ? "Yes" : "No"}</span>- <span className="opacity-60">Education</span>- <span className="text-right">{individual.profile.education}</span>+ <span className="opacity-60">Education</span>+ <span className="text-right">{individual.profile.education}</span>- <span className="opacity-60">Job title</span>- <span className="text-right">{individual.profile.jobTitle}</span>+ <span className="opacity-60">Job title</span>+ <span className="text-right">{individual.profile.jobTitle}</span>- <span className="opacity-60">Company</span>- <span className="text-right">{individual.profile.company}</span>- </div>- </CardContent>- </Card>+ <span className="opacity-60">Company</span>+ <span className="text-right">{individual.profile.company}</span>+ </div>+ </CardContent>+ </Card>- {/* Job History section */}- <Card className="bg-sidebar shadow-none border-border backdrop-blur">- <CardHeader className="border-b pb-4">- <h2 className="text-xl font-bold">Job History</h2>- </CardHeader>- <CardContent className="p-4 space-y-6">- {individual.jobHistory.map((job, index) => (- <div key={index} className="flex gap-4">- <div className="flex-shrink-0">- <div className="w-10 h-10 rounded-md overflow-hidden bg-sidebar shadow-none flex items-center justify-center">- {/* <Image+ {/* Job History section */}+ <Card className="bg-sidebar shadow-none border-border backdrop-blur">+ <CardHeader className="border-b pb-4">+ <h2 className="text-xl font-bold">Job History</h2>+ </CardHeader>+ <CardContent className="p-4 space-y-6">+ {individual.jobHistory.map((job, index) => (+ <div key={index} className="flex gap-4">+ <div className="flex-shrink-0">+ <div className="w-10 h-10 rounded-md overflow-hidden bg-sidebar shadow-none flex items-center justify-center">+ {/* <Imagesrc={job.logo || "/placeholder.svg"}alt={job.company}width={40}height={40}className="object-cover"/> */}- <Building2 className="h-5 w-5" />- </div>- </div>- <div className="flex-1">- <h3 className="font-medium">{job.title}</h3>- <p className="opacity-60">{job.company}</p>- </div>- <div className="text-right opacity-60 text-sm">- {job.startDate} - {job.endDate}+ <Building2 className="h-5 w-5" /></div></div>- ))}- </CardContent>- </Card>- </div>-- {/* Social Media section */}- <div className="grid grid-cols-1 md:grid-cols-2 gap-6">- {/* Facebook */}- {individual.socialMedia.facebook && (- <Card className="bg-sidebar shadow-none border-border backdrop-blur">- <CardHeader className="border-b pb-4 flex flex-row justify-between items-center">- <div className="flex items-center gap-2">- <div className="w-8 h-8 bg-blue-600 rounded flex items-center justify-center">- <Facebook className="h-5 w-5 text-white" />- </div>- <h2 className="text-xl font-bold">Facebook</h2>+ <div className="flex-1">+ <h3 className="font-medium">{job.title}</h3>+ <p className="opacity-60">{job.company}</p></div>- <div className="flex items-center gap-1 text-sm opacity-60">- <Calendar className="h-4 w-4" />- <span>First seen {individual.socialMedia.facebook.firstSeen}</span>+ <div className="text-right opacity-60 text-sm">+ {job.startDate} - {job.endDate}</div>- </CardHeader>- <CardContent className="p-4">- <div className="flex justify-between">- <div className="space-y-4">- <div className="grid grid-cols-2 gap-y-4 gap-x-8">- <span className="opacity-60">Followers count</span>- <span>{individual.socialMedia.facebook.followersCount}</span>+ </div>+ ))}+ </CardContent>+ </Card>+ </div>- <span className="opacity-60">Full name</span>- <span>{individual.socialMedia.facebook.fullName}</span>+ {/* Social Media section */}+ <div className="grid grid-cols-1 md:grid-cols-2 gap-6">+ {/* Facebook */}+ {individual.socialMedia.facebook && (+ <Card className="bg-sidebar shadow-none border-border backdrop-blur">+ <CardHeader className="border-b pb-4 flex flex-row justify-between items-center">+ <div className="flex items-center gap-2">+ <div className="w-8 h-8 bg-blue-600 rounded flex items-center justify-center">+ <Facebook className="h-5 w-5 text-white" />+ </div>+ <h2 className="text-xl font-bold">Facebook</h2>+ </div>+ <div className="flex items-center gap-1 text-sm opacity-60">+ <Calendar className="h-4 w-4" />+ <span>First seen {individual.socialMedia.facebook.firstSeen}</span>+ </div>+ </CardHeader>+ <CardContent className="p-4">+ <div className="flex justify-between">+ <div className="space-y-4">+ <div className="grid grid-cols-2 gap-y-4 gap-x-8">+ <span className="opacity-60">Followers count</span>+ <span>{individual.socialMedia.facebook.followersCount}</span>- <span className="opacity-60">Username</span>- <span>{individual.socialMedia.facebook.username}</span>+ <span className="opacity-60">Full name</span>+ <span>{individual.socialMedia.facebook.fullName}</span>- <span className="opacity-60">Location</span>- <span>{individual.socialMedia.facebook.location}</span>- </div>- </div>+ <span className="opacity-60">Username</span>+ <span>{individual.socialMedia.facebook.username}</span>- {individual.socialMedia.facebook.profileImage && (- <div className="flex-shrink-0">- <Image- src={individual.socialMedia.facebook.profileImage || "/placeholder.svg"}- alt={individual.socialMedia.facebook.fullName}- width={100}- height={100}- className="rounded-md"- />- </div>- )}+ <span className="opacity-60">Location</span>+ <span>{individual.socialMedia.facebook.location}</span>+ </div></div>- </CardContent>- </Card>- )}- {/* Instagram */}- {individual.socialMedia.instagram && (- <Card className="bg-sidebar shadow-none border-border backdrop-blur">- <CardHeader className="border-b pb-4 flex flex-row justify-between items-center">- <div className="flex items-center gap-2">- <div className="w-8 h-8 bg-gradient-to-tr from-purple-600 via-pink-500 to-orange-400 rounded flex items-center justify-center">- <Instagram className="h-5 w-5 text-white" />+ {individual.socialMedia.facebook.profileImage && (+ <div className="flex-shrink-0">+ <Image+ src={individual.socialMedia.facebook.profileImage || "/placeholder.svg"}+ alt={individual.socialMedia.facebook.fullName}+ width={100}+ height={100}+ className="rounded-md"+ /></div>- <h2 className="text-xl font-bold">Instagram</h2>+ )}+ </div>+ </CardContent>+ </Card>+ )}++ {/* Instagram */}+ {individual.socialMedia.instagram && (+ <Card className="bg-sidebar shadow-none border-border backdrop-blur">+ <CardHeader className="border-b pb-4 flex flex-row justify-between items-center">+ <div className="flex items-center gap-2">+ <div className="w-8 h-8 bg-gradient-to-tr from-purple-600 via-pink-500 to-orange-400 rounded flex items-center justify-center">+ <Instagram className="h-5 w-5 text-white" /></div>- <Link href="#" className="text-green-500 flex items-center gap-1 text-sm">- <span>See profile</span>- <ExternalLink className="h-4 w-4" />- </Link>- </CardHeader>- <CardContent className="p-4">- <div className="flex justify-between">- <div className="space-y-4">- <div className="grid grid-cols-2 gap-y-4 gap-x-8">- <span className="opacity-60">Followers count</span>- <span>{individual.socialMedia.instagram.followersCount}</span>+ <h2 className="text-xl font-bold">Instagram</h2>+ </div>+ <Link href="#" className="text-green-500 flex items-center gap-1 text-sm">+ <span>See profile</span>+ <ExternalLink className="h-4 w-4" />+ </Link>+ </CardHeader>+ <CardContent className="p-4">+ <div className="flex justify-between">+ <div className="space-y-4">+ <div className="grid grid-cols-2 gap-y-4 gap-x-8">+ <span className="opacity-60">Followers count</span>+ <span>{individual.socialMedia.instagram.followersCount}</span>- <span className="opacity-60">Following count</span>- <span>{individual.socialMedia.instagram.followingCount}</span>+ <span className="opacity-60">Following count</span>+ <span>{individual.socialMedia.instagram.followingCount}</span>- <span className="opacity-60">Username</span>- <span>{individual.socialMedia.instagram.username}</span>+ <span className="opacity-60">Username</span>+ <span>{individual.socialMedia.instagram.username}</span>- <span className="opacity-60">Is Verified</span>- <span>{individual.socialMedia.instagram.isVerified ? "Yes" : "No"}</span>+ <span className="opacity-60">Is Verified</span>+ <span>{individual.socialMedia.instagram.isVerified ? "Yes" : "No"}</span>- <span className="opacity-60">Probability</span>- <span>{individual.socialMedia.instagram.probability}</span>- </div>+ <span className="opacity-60">Probability</span>+ <span>{individual.socialMedia.instagram.probability}</span></div>-- {individual.socialMedia.instagram.profileImage && (- <div className="flex-shrink-0">- <Image- src={individual.socialMedia.instagram.profileImage || "/placeholder.svg"}- alt={individual.socialMedia.instagram.username}- width={100}- height={100}- className="rounded-md"- />- </div>- )}- </div>-- <div className="mt-4 flex justify-end">- <button className=" hover:bg-gray-700 text-sm px-4 py-2 rounded-md">Show more</button></div>- </CardContent>- </Card>- )}- {/* X (Twitter) */}- {individual.socialMedia.x && (- <Card className="bg-sidebar shadow-none border-border backdrop-blur">- <CardHeader className="border-b pb-4 flex flex-row justify-between items-center">- <div className="flex items-center gap-2">- <div className="w-8 h-8 bg-black rounded flex items-center justify-center">- <Twitter className="h-5 w-5 text-white" />+ {individual.socialMedia.instagram.profileImage && (+ <div className="flex-shrink-0">+ <Image+ src={individual.socialMedia.instagram.profileImage || "/placeholder.svg"}+ alt={individual.socialMedia.instagram.username}+ width={100}+ height={100}+ className="rounded-md"+ /></div>- <h2 className="text-xl font-bold">X</h2>- </div>- <Link href="#" className="text-green-500 flex items-center gap-1 text-sm">- <span>See profile</span>- <ExternalLink className="h-4 w-4" />- </Link>- </CardHeader>- <CardContent className="p-4">- <div className="flex items-center gap-1 text-sm opacity-60">- <Calendar className="h-4 w-4" />- <span>First seen {individual.socialMedia.x.firstSeen}</span>+ )}+ </div>++ <div className="mt-4 flex justify-end">+ <button className=" hover:bg-gray-700 text-sm px-4 py-2 rounded-md">Show more</button>+ </div>+ </CardContent>+ </Card>+ )}++ {/* X (Twitter) */}+ {individual.socialMedia.x && (+ <Card className="bg-sidebar shadow-none border-border backdrop-blur">+ <CardHeader className="border-b pb-4 flex flex-row justify-between items-center">+ <div className="flex items-center gap-2">+ <div className="w-8 h-8 bg-black rounded flex items-center justify-center">+ <Twitter className="h-5 w-5 text-white" /></div>- </CardContent>- </Card>- )}+ <h2 className="text-xl font-bold">X</h2>+ </div>+ <Link href="#" className="text-green-500 flex items-center gap-1 text-sm">+ <span>See profile</span>+ <ExternalLink className="h-4 w-4" />+ </Link>+ </CardHeader>+ <CardContent className="p-4">+ <div className="flex items-center gap-1 text-sm opacity-60">+ <Calendar className="h-4 w-4" />+ <span>First seen {individual.socialMedia.x.firstSeen}</span>+ </div>+ </CardContent>+ </Card>+ )}- {/* YouTube */}- {individual.socialMedia.youtube && Object.keys(individual.socialMedia.youtube).length > 0 && (- <Card className="bg-sidebar shadow-none border-border backdrop-blur">- <CardHeader className="border-b pb-4 flex flex-row justify-between items-center">- <div className="flex items-center gap-2">- <div className="w-8 h-8 bg-red-600 rounded flex items-center justify-center">- <Youtube className="h-5 w-5 text-white" />- </div>- <h2 className="text-xl font-bold">YouTube</h2>+ {/* YouTube */}+ {individual.socialMedia.youtube && Object.keys(individual.socialMedia.youtube).length > 0 && (+ <Card className="bg-sidebar shadow-none border-border backdrop-blur">+ <CardHeader className="border-b pb-4 flex flex-row justify-between items-center">+ <div className="flex items-center gap-2">+ <div className="w-8 h-8 bg-red-600 rounded flex items-center justify-center">+ <Youtube className="h-5 w-5 text-white" /></div>- <Link href="#" className="text-green-500 flex items-center gap-1 text-sm">- <span>See profile</span>- <ExternalLink className="h-4 w-4" />- </Link>- </CardHeader>- </Card>- )}- </div>+ <h2 className="text-xl font-bold">YouTube</h2>+ </div>+ <Link href="#" className="text-green-500 flex items-center gap-1 text-sm">+ <span>See profile</span>+ <ExternalLink className="h-4 w-4" />+ </Link>+ </CardHeader>+ </Card>+ )}</div></div>- </DashboardLayout>+ </div>)}\ No newline at end of filediff --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 140c7a88..5cdf1bca 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@@ -26,7 +26,7 @@ export default function DashboardClient({ projectId, investigationId }: Dashboar})return (<>- <div className="sticky z-40 bg-background top-[56px] border-b">+ <div className="sticky z-40 bg-background top-[48px] border-b"><InvestigationtNavigation project_id={projectId} investigation_id={investigationId} /></div>{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 902ebf2b..ae8c3948 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@@ -17,12 +17,11 @@ const DashboardLayout = async ({if (userError || !data?.user) {redirect('/login')}- const { project_id, investigation_id } = await (params)return (<InvestigationProvider><SearchProvider><ChatProvider>- <InvestigationLayout user={data.user} investigation_id={investigation_id} left={<Left project_id={project_id} investigation_id={investigation_id} />}>+ <InvestigationLayout>{children}</InvestigationLayout></ChatProvider>diff --git a/flowsint-web/src/app/dashboard/projects/[project_id]/page.tsx b/flowsint-web/src/app/dashboard/projects/[project_id]/page.tsxindex 30bbd68e..14c63bd8 100644--- a/flowsint-web/src/app/dashboard/projects/[project_id]/page.tsx+++ b/flowsint-web/src/app/dashboard/projects/[project_id]/page.tsx@@ -57,7 +57,7 @@ const DashboardPage = () => {return (<>- <div className="sticky z-40 bg-background top-[56px] border-b">+ <div className="sticky z-40 bg-background top-[48px] border-b"><ProjectNavigation project_id={project_id as string} /></div><div className="w-full space-y-8 container mx-auto py-12 px-8">diff --git a/flowsint-web/src/components/dashboard/recent-sketches.tsx b/flowsint-web/src/components/dashboard/recent-sketches.tsxindex 23c332c7..9d82cffb 100644--- a/flowsint-web/src/components/dashboard/recent-sketches.tsx+++ b/flowsint-web/src/components/dashboard/recent-sketches.tsx@@ -3,11 +3,12 @@import type { Investigation } from "@/types/investigation"import { useQuery } from "@tanstack/react-query"import Link from "next/link"-import { FileText, Folder, Layers, Search, Waypoints } from "lucide-react"+import { FileSearch, FileText, Folder, Layers, Search, Users, Waypoints } from "lucide-react"import { Card, CardContent, CardFooter } from "@/components/ui/card"import { Skeleton } from "@/components/ui/skeleton"import { formatDistanceToNow } from "date-fns"+import { number, string } from "zod"const RecentSketches = () => {const {@@ -51,6 +52,44 @@ const RecentSketches = () => {)}+ // return (+ // <div className="space-y-4">+ // <div className="grid gap-4 md:grid-cols-2 lg:grid-cols-4">+ // <div className="rounded-lg border bg-card text-card-foreground p-6">+ // <div className="flex flex-row items-center justify-between space-y-0 pb-2">+ // <h3 className="tracking-tight text-sm font-medium">Investigations Actives</h3>+ // <FileSearch className="h-4 w-4 text-muted-foreground" />+ // </div>+ // <div className="text-2xl font-bold">24</div>+ // <p className="text-xs text-muted-foreground">+2 depuis le mois dernier</p>+ // </div>+ // <div className="rounded-lg border bg-card text-card-foreground p-6">+ // <div className="flex flex-row items-center justify-between space-y-0 pb-2">+ // <h3 className="tracking-tight text-sm font-medium">Sujets Suivis</h3>+ // <Users className="h-4 w-4 text-muted-foreground" />+ // </div>+ // <div className="text-2xl font-bold">145</div>+ // <p className="text-xs text-muted-foreground">+12 depuis le mois dernier</p>+ // </div>+ // <div className="rounded-lg border bg-card text-card-foreground p-6">+ // <div className="flex flex-row items-center justify-between space-y-0 pb-2">+ // <h3 className="tracking-tight text-sm font-medium">Documents Collectés</h3>+ // <FileText className="h-4 w-4 text-muted-foreground" />+ // </div>+ // <div className="text-2xl font-bold">532</div>+ // <p className="text-xs text-muted-foreground">+86 depuis le mois dernier</p>+ // </div>+ // <div className="rounded-lg border bg-card text-card-foreground p-6">+ // <div className="flex flex-row items-center justify-between space-y-0 pb-2">+ // <h3 className="tracking-tight text-sm font-medium">Alertes</h3>+ // <FileSearch className="h-4 w-4 text-muted-foreground" />+ // </div>+ // <div className="text-2xl font-bold">9</div>+ // <p className="text-xs text-muted-foreground">-2 depuis le mois dernier</p>+ // </div>+ // </div>+ // </div>+ // )return (<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4">{investigations?.map((investigation: Investigation) => {diff --git a/flowsint-web/src/components/dashboard/sub-nav.tsx b/flowsint-web/src/components/dashboard/sub-nav.tsxindex 94afb997..80eaddf9 100644--- a/flowsint-web/src/components/dashboard/sub-nav.tsx+++ b/flowsint-web/src/components/dashboard/sub-nav.tsx@@ -54,7 +54,7 @@ export function SubNav() {key={section.id}href={section?.href || ""}className={cn(- "flex items-center text-xs gap-2 px-4 py-2 transition-colors",+ "flex items-center text-sm gap-2 px-4 py-2 transition-colors",section?.href == pathname? "bg-accent text-accent-foreground": "text-muted-foreground hover:text-foreground hover:bg-accent/50",diff --git a/flowsint-web/src/components/investigations/case-selector.tsx b/flowsint-web/src/components/investigations/case-selector.tsxindex e665da3b..ef33a2b7 100644--- a/flowsint-web/src/components/investigations/case-selector.tsx+++ b/flowsint-web/src/components/investigations/case-selector.tsx@@ -10,6 +10,7 @@ import {SelectValue,} from "@/components/ui/select"import { Skeleton } from "@/components/ui/skeleton";+import { Waypoints } from "lucide-react";export default function CaseSelector() {const router = useRouter()@@ -25,10 +26,10 @@ export default function CaseSelector() {};return (<div className="flex items-center">- {isLoading || investigation.isLoading ? <Skeleton className="h-8 w-40 bg-foreground/10" /> :+ {isLoading || investigation.isLoading ? <Skeleton className="h-7 w-40 bg-foreground/10" /> :<Select onValueChange={handleSelectionChange} defaultValue={investigation?.data.id}>- <SelectTrigger className="min-w-none w-full hover:bg-sidebar-accent shadow-none border-none text-ellipsis truncate gap-1">- <SelectValue defaultValue={investigation?.data?.title || ""} placeholder="Select an investigation" />+ <SelectTrigger className="min-w-none w-full hover:bg-sidebar-accent font-medium shadow-none border-none text-ellipsis truncate gap-1">+ <Waypoints className="mr-1"/> <SelectValue defaultValue={investigation?.data?.title || ""} placeholder="Select an investigation" /></SelectTrigger><SelectContent>{investigations?.map((investigation) => (diff --git a/flowsint-web/src/components/investigations/investigation-navigation.tsx b/flowsint-web/src/components/investigations/investigation-navigation.tsxindex 49fa0763..d3d9df48 100644--- a/flowsint-web/src/components/investigations/investigation-navigation.tsx+++ b/flowsint-web/src/components/investigations/investigation-navigation.tsx@@ -4,6 +4,8 @@ import { cn } from "@/lib/utils"import { Users, TimerIcon, MapIcon, WaypointsIcon } from "lucide-react"import Link from "next/link"import { usePathname } from "next/navigation"+import MoreMenu from "./more-menu"+import { ScanButton } from "./scans-drawer/scan-button"export function InvestigationtNavigation({ project_id, investigation_id }: { project_id: string, investigation_id: string }) {@@ -20,7 +22,6 @@ export function InvestigationtNavigation({ project_id, investigation_id }: { proname: "Individuals",href: `/dashboard/projects/${project_id}/investigations/${investigation_id}/individuals`,icon: Users,- count: 24,},{id: "timeline",@@ -37,25 +38,31 @@ export function InvestigationtNavigation({ project_id, investigation_id }: { pro]return (- <div className="flex overflow-auto">- {sections.map((section) => (- <Link- key={section.id}- href={section?.href || ""}- className={cn(- "flex items-center text-xs gap-2 px-4 py-2 transition-colors",- section?.href == pathname- ? "bg-accent text-accent-foreground"- : "text-muted-foreground hover:text-foreground hover:bg-accent/50",- )}- >- <section.icon className="h-4 w-4" />- <span>{section.name}</span>- {section.count && (+ <div className="flex items-center justify-between">+ <div className="flex overflow-auto">+ {sections.map((section) => (+ <Link+ key={section.id}+ href={section?.href || ""}+ className={cn(+ "flex items-center text-sm gap-2 px-4 py-2 transition-colors",+ section?.href == pathname+ ? "bg-accent text-accent-foreground"+ : "text-muted-foreground hover:text-foreground hover:bg-accent/50",+ )}+ >+ <section.icon className="h-4 w-4" />+ <span>{section.name}</span>+ {/* {section?.count && (<span className="ml-1 rounded-full bg-primary/10 px-2 py-0.5 text-xs">{section.count}</span>- )}- </Link>- ))}+ )} */}+ </Link>+ ))}+ </div>+ <div className="flex items-center">+ <MoreMenu />+ <ScanButton />+ </div></div>)}diff --git a/flowsint-web/src/components/investigations/layout.tsx b/flowsint-web/src/components/investigations/layout.tsxindex 77dda944..ef1f9c9d 100644--- a/flowsint-web/src/components/investigations/layout.tsx+++ b/flowsint-web/src/components/investigations/layout.tsx@@ -4,15 +4,11 @@ const InvestigationLayout = ({children,}: {children: React.ReactNode;- left: React.ReactNode;- investigation_id: string- user: any}) => {- return (- <>- {children}- <ScanDrawer />- </>+ return (<>+ {children}+ < ScanDrawer />+ </>)}diff --git a/flowsint-web/src/components/investigations/more-menu.tsx b/flowsint-web/src/components/investigations/more-menu.tsxindex 26a8320d..7d1c450a 100644--- a/flowsint-web/src/components/investigations/more-menu.tsx+++ b/flowsint-web/src/components/investigations/more-menu.tsx@@ -13,7 +13,7 @@ export default function MoreMenu() {return (<DropdownMenu><DropdownMenuTrigger asChild>- <Button variant="outline" size="icon">+ <Button variant="outline" size="icon" className="rounded-none border-none"><Ellipsis className="h-4 w-4" /></Button></DropdownMenuTrigger>diff --git a/flowsint-web/src/components/investigations/project-navigation.tsx b/flowsint-web/src/components/investigations/project-navigation.tsxindex 5e01e8d8..bdc0944b 100644--- a/flowsint-web/src/components/investigations/project-navigation.tsx+++ b/flowsint-web/src/components/investigations/project-navigation.tsx@@ -46,7 +46,7 @@ export function ProjectNavigation({ project_id }: { project_id: string }) {key={section.id}href={section?.href || ""}className={cn(- "flex items-center text-xs gap-2 px-4 py-2 transition-colors",+ "flex items-center text-sm gap-2 px-4 py-2 transition-colors",section?.href == pathname? "bg-accent text-accent-foreground": "text-muted-foreground hover:text-foreground hover:bg-accent/50",diff --git a/flowsint-web/src/components/investigations/project-selector.tsx b/flowsint-web/src/components/investigations/project-selector.tsxindex 5566c28d..b4c7b666 100644--- a/flowsint-web/src/components/investigations/project-selector.tsx+++ b/flowsint-web/src/components/investigations/project-selector.tsx@@ -33,10 +33,10 @@ export default function ProjectSelector() {};return (<div className="flex items-center">- {isLoading ? <Skeleton className="h-8 w-40 bg-foreground/10" /> :+ {isLoading ? <Skeleton className="h-7 w-40 bg-foreground/10" /> :// @ts-ignore<Select onValueChange={handleSelectionChange} defaultValue={project_id}>- <SelectTrigger className="min-w-none w-full hover:bg-sidebar-accent shadow-none border-none text-ellipsis truncate gap-1">+ <SelectTrigger className="min-w-none w-full hover:bg-sidebar-accent font-medium shadow-none border-none text-ellipsis truncate gap-1"><SelectValue placeholder="Select an investigation" /></SelectTrigger><SelectContent>diff --git a/flowsint-web/src/components/investigations/scans-drawer/scan-button.tsx b/flowsint-web/src/components/investigations/scans-drawer/scan-button.tsxindex 437f0c8e..d0aac8f2 100644--- a/flowsint-web/src/components/investigations/scans-drawer/scan-button.tsx+++ b/flowsint-web/src/components/investigations/scans-drawer/scan-button.tsx@@ -105,20 +105,14 @@ export function ScanButton() {return (<Sheet open={open} onOpenChange={setOpen}><SheetTrigger asChild>- <Button variant="ghost" size={"icon"} className="h-full relative w-12 rounded-none">+ <Button variant="ghost" size={"icon"} className="rounded-none">{pendingCount > 0 ? (<>- <ZapIcon className="mr-2 !h-4 !w-4" />- <Badge variant="default" className="text-xs px-0 h-5 w-5 absolute top-1 right-1 border-none rounded-full">- {pendingCount}- </Badge>+ <ZapIcon fill="var(--primary)" stroke="var(--primary)" className="!h-4 !w-4 animate-pulse" /></>) : (<>- <ZapIcon className="mr-2 !h-4 !w-4" />- <Badge variant="outline" className="text-xs px-0 h-5 w-5 absolute top-1 right-1 border-none rounded-full">- 0- </Badge>+ <ZapIcon className="!h-4 !w-4" /></>)}</Button>diff --git a/flowsint-web/src/components/investigations/sketch/graph.tsx b/flowsint-web/src/components/investigations/sketch/graph.tsxindex da120ab5..fe729769 100644--- a/flowsint-web/src/components/investigations/sketch/graph.tsx+++ b/flowsint-web/src/components/investigations/sketch/graph.tsx@@ -222,36 +222,37 @@ const LayoutFlow = ({ refetch, theme }: LayoutFlowProps) => {}, [refetch, onLayout, fitView])// // Node highlighting effect- // useEffect(() => {- // resetNodeStyles()- // if (!currentNode) return+ useEffect(() => {+ resetNodeStyles()+ if (!currentNode) return- // const internalNode = getNode(currentNode.id)- // if (!internalNode) return+ const internalNode = getNode(currentNode.id)+ if (!internalNode) return- // useFlowStore.getState().updateNode(internalNode.id, {- // ...internalNode,- // zIndex: 5000,- // data: { ...internalNode.data, forceToolbarVisible: true },- // style: { ...internalNode.style, opacity: 1 },- // })+ useFlowStore.getState().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+ 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: 1000,- // zoom: 1.5,- // })+ setCenter(internalNode.position.x + nodeWidth / 2, internalNode.position.y + nodeHeight / 2 + 20, {+ duration: 1000,+ zoom: 1.5,+ })- // useFlowStore.getState().highlightPath(internalNode)- // }, [currentNode, getNode, setCenter, resetNodeStyles])+ useFlowStore.getState().highlightPath(internalNode)+ }, [currentNode, getNode, setCenter, resetNodeStyles])// Memoize connection handler to prevent recreationconst handleConnect = useCallback((params: any) => onConnect(params, investigation_id), [onConnect, investigation_id])// Handle node context menuconst handleNodeContextMenu: NodeMouseHandler = useCallback((event, node) => {+ event.stopPropagation()setCurrentNode(node)// Prevent default context menuevent.preventDefault()diff --git a/flowsint-web/src/components/investigations/sketch/large-data-graph.tsx b/flowsint-web/src/components/investigations/sketch/large-data-graph.tsxindex ea8e08fc..92fe9fbe 100644--- a/flowsint-web/src/components/investigations/sketch/large-data-graph.tsx+++ b/flowsint-web/src/components/investigations/sketch/large-data-graph.tsx@@ -202,12 +202,12 @@ function LayoutFlow({ refetch, theme }: LayoutFlowProps) {.d3Force("link").distance(() => 2100) // Increase from 150 to 200.strength(0.1) // Decrease from 0.2 to 0.1 for more flexibility-+graphRef.current.d3Force("charge").strength(-400) // Double the repulsion from -200 to -400.distanceMax(5100) // Increase from 250 to 500-+// Add this to improve initial positioninggraphRef.current.d3Force("x", d3.forceX().strength(0.05))graphRef.current.d3Force("y", d3.forceY().strength(0.05))@@ -229,7 +229,7 @@ function LayoutFlow({ refetch, theme }: LayoutFlowProps) {}, [])return (- <div className="relative w-full h-[calc(100vh_-_48px)]">+ <div className="w-full grow overflow-hidden relative"><div className="absolute top-3.5 left-3.5 z-10 flex items-center gap-1"><TooltipProvider><Tooltip>@@ -271,8 +271,8 @@ function LayoutFlow({ refetch, theme }: LayoutFlowProps) {<RotateCwIcon className={`h-4 w-4 ${reloading ? "animate-spin" : ""}`} /></Button></div>-<ForceGraph2D+ref={graphRef}graphData={graphData}nodeRelSize={NODE_R}@@ -334,7 +334,7 @@ export default function LargeInvestigationGraph({ graphQuery }: LargeInvestigatiif (!mounted || isLoading) {return (- <div className="h-[calc(100vh_-_48px)] w-full flex items-center justify-center">+ <div className="grow w-full flex items-center justify-center"><Loader /> Loading...</div>)diff --git a/flowsint-web/src/components/ui/button.tsx b/flowsint-web/src/components/ui/button.tsxindex 7df646ba..8aa1082f 100644--- a/flowsint-web/src/components/ui/button.tsx+++ b/flowsint-web/src/components/ui/button.tsx@@ -10,7 +10,7 @@ const buttonVariants = cva(variants: {variant: {default:- "text-primary-foreground bg-primary/70 hover:bg-primary/80 border border-primary",+ "text-primary-foreground bg-primary/90 hover:bg-primary/80 border border-primary",destructive:"bg-destructive text-destructive-foregroundhover:bg-destructive/90",outline:diff --git a/flowsint-web/src/components/ui/select.tsx b/flowsint-web/src/components/ui/select.tsxindex 2bb57c1d..2aa8768d 100644--- a/flowsint-web/src/components/ui/select.tsx+++ b/flowsint-web/src/components/ui/select.tsx@@ -2,7 +2,7 @@import * as React from "react"import * as SelectPrimitive from "@radix-ui/react-select"-import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react"+import { CheckIcon, ChevronDownIcon, ChevronUpIcon, ChevronsUpDownIcon } from "lucide-react"import { cn } from "@/lib/utils"@@ -40,7 +40,7 @@ function SelectTrigger({>{children}<SelectPrimitive.Icon asChild>- <ChevronDownIcon className="size-4 opacity-50" />+ <ChevronsUpDownIcon className="size-4 opacity-50" /></SelectPrimitive.Icon></SelectPrimitive.Trigger>)@@ -59,7 +59,7 @@ function SelectContent({className={cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border shadow-md",position === "popper" &&- "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",+ "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",className)}position={position}@@ -70,7 +70,7 @@ function SelectContent({className={cn("p-1",position === "popper" &&- "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"+ "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1")}>{children}diff --git a/flowsint-web/styles/globals.css b/flowsint-web/styles/globals.cssindex a6237c50..84cc8b0a 100644--- a/flowsint-web/styles/globals.css+++ b/flowsint-web/styles/globals.css@@ -15,7 +15,7 @@--card-foreground: hsl(0 0% 3.9%);--popover: hsl(0 0% 100%);--popover-foreground: hsl(0 0% 3.9%);- --primary: hsl(221.2 83.2% 53.3%);+ --primary: oklch(0.623 0.214 259.815);;--primary-foreground: hsl(0 0% 98%);--secondary: hsl(0 0% 96.1%);--secondary-foreground: hsl(0 0% 9%);@@ -53,7 +53,7 @@--card-foreground: hsl(0 0% 98%);--popover: hsl(240 0% 9.9%);--popover-foreground: hsl(0 0% 98%);- --primary: hsl(160.1 84.1% 39.4%);+ --primary: oklch(0.623 0.214 259.815);;--primary-foreground: hsl(0, 0%, 100%);--secondary: hsl(0 0% 14.9%);--secondary-foreground: hsl(0 0% 98%);@@ -195,6 +195,6 @@}.react-flow__node-group {- padding: 0px!important;- border-radius: 6px!important;+ padding: 0px !important;+ border-radius: 6px !important;}\ No newline at end of file