Skip to content

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

feat: layout

dextmorgn34eddb30bf74
diff --git a/src/app/dashboard/keys/page.tsx b/src/app/dashboard/keys/page.tsx
index 0c043257..14d0ce32 100644
--- a/src/app/dashboard/keys/page.tsx
+++ b/src/app/dashboard/keys/page.tsx
@@ -3,63 +3,119 @@ import { Trash2 } from 'lucide-react'
export default function APIKeys() {
return (
- <div className="max-w-6xl mx-auto p-6">
- <div className="flex flex-col justify-between items-start mb-4">
- <div className="flex justify-between w-full items-center">
- <div>
- <h1 className="text-3xl font-semibold mb-2">Vos clés API</h1>
- <p className="mb-6">
- Gérez vos clés API personnelles pour l&apos;espace de travail Espace de travail de Eliott Morcillo.
- </p>
+ <div className="max-w-6xl mx-auto p-6 space-y-24">
+ <div>
+ <div className="flex flex-col justify-between items-start mb-4">
+ <div className="flex justify-between w-full items-center">
+ <div>
+ <h1 className="text-3xl font-semibold mb-2">Vos clés API</h1>
+ <p className="mb-6 opacity-70">
+ Gérez vos clés API personnelles pour votre espace de travail.
+ </p>
+ </div>
+ <Button
+ >
+ Créer une nouvelle clé
+ </Button>
</div>
- <Button
- >
- Créer une nouvelle clé
- </Button>
+ <Separator className='w-full' size={"4"} />
+ <p className="mb-8 mt-4 opacity-70">
+ Vous pouvez créer jusqu&apos;à 10 clés API et les supprimer lorsque vous n&apos;en avez plus besoin.
+ </p>
</div>
- <Separator className='w-full' size={"4"} />
- <p className="mb-8 mt-4">
- Vous pouvez créer jusqu&apos;à 10 clés API et les supprimer lorsque vous n&apos;en avez plus besoin.
- </p>
+ <Tabs.Root defaultValue="active" className="mb-3">
+ <Tabs.List>
+ <Tabs.Trigger
+ value="active"
+ >
+ Actif
+ </Tabs.Trigger>
+ <Tabs.Trigger
+ value="expired"
+ >
+ Expiré
+ </Tabs.Trigger>
+ </Tabs.List>
+ </Tabs.Root>
+ <Card>
+ <Table.Root>
+ <Table.Header>
+ <Table.Row>
+ <Table.ColumnHeaderCell className="w-[300px]">Nom</Table.ColumnHeaderCell>
+ <Table.ColumnHeaderCell>Clé</Table.ColumnHeaderCell>
+ <Table.ColumnHeaderCell className="text-right">Date d&apos;expiration</Table.ColumnHeaderCell>
+ <Table.ColumnHeaderCell className="w-[50px]"></Table.ColumnHeaderCell>
+ </Table.Row>
+ </Table.Header>
+ <Table.Body>
+ <Table.Row>
+ <Table.RowHeaderCell>clé d&apos;essai</Table.RowHeaderCell>
+ <Table.Cell className="font-mono">************************pnA5</Table.Cell>
+ <Table.Cell className="text-right">15 février 2025</Table.Cell>
+ <Table.Cell>
+ <IconButton variant="ghost">
+ <Trash2 className="h-4 w-4" />
+ </IconButton>
+ </Table.Cell>
+ </Table.Row>
+ </Table.Body>
+ </Table.Root>
+ </Card>
+ </div>
+ <div>
+ <div className="flex flex-col justify-between items-start mb-4">
+ <div className="flex justify-between w-full items-center">
+ <div>
+ <h1 className="text-3xl font-semibold mb-2">Vos clés de services tiers</h1>
+ <p className="mb-6 opacity-70">
+ Gérez vos clés API de services tiers pour votre espace de travail.
+ </p>
+ </div>
+ <Button
+ >
+ Créer une nouvelle clé
+ </Button>
+ </div>
+ </div>
+ <Tabs.Root defaultValue="active" className="mb-3">
+ <Tabs.List>
+ <Tabs.Trigger
+ value="active"
+ >
+ Actif
+ </Tabs.Trigger>
+ <Tabs.Trigger
+ value="expired"
+ >
+ Expiré
+ </Tabs.Trigger>
+ </Tabs.List>
+ </Tabs.Root>
+ <Card>
+ <Table.Root>
+ <Table.Header>
+ <Table.Row>
+ <Table.ColumnHeaderCell className="w-[300px]">Nom</Table.ColumnHeaderCell>
+ <Table.ColumnHeaderCell>Clé</Table.ColumnHeaderCell>
+ <Table.ColumnHeaderCell className="text-right">Date d&apos;expiration</Table.ColumnHeaderCell>
+ <Table.ColumnHeaderCell className="w-[50px]"></Table.ColumnHeaderCell>
+ </Table.Row>
+ </Table.Header>
+ <Table.Body>
+ <Table.Row>
+ <Table.RowHeaderCell>clé d&apos;essai</Table.RowHeaderCell>
+ <Table.Cell className="font-mono">************************pnA5</Table.Cell>
+ <Table.Cell className="text-right">15 février 2025</Table.Cell>
+ <Table.Cell>
+ <IconButton variant="ghost">
+ <Trash2 className="h-4 w-4" />
+ </IconButton>
+ </Table.Cell>
+ </Table.Row>
+ </Table.Body>
+ </Table.Root>
+ </Card>
</div>
- <Tabs.Root defaultValue="active" className="mb-3">
- <Tabs.List>
- <Tabs.Trigger
- value="active"
- >
- Actif
- </Tabs.Trigger>
- <Tabs.Trigger
- value="expired"
- >
- Expiré
- </Tabs.Trigger>
- </Tabs.List>
- </Tabs.Root>
- <Card>
- <Table.Root>
- <Table.Header>
- <Table.Row>
- <Table.ColumnHeaderCell className="w-[300px]">Nom</Table.ColumnHeaderCell>
- <Table.ColumnHeaderCell>Clé</Table.ColumnHeaderCell>
- <Table.ColumnHeaderCell className="text-right">Date d&apos;expiration</Table.ColumnHeaderCell>
- <Table.ColumnHeaderCell className="w-[50px]"></Table.ColumnHeaderCell>
- </Table.Row>
- </Table.Header>
- <Table.Body>
- <Table.Row>
- <Table.RowHeaderCell>clé d&apos;essai</Table.RowHeaderCell>
- <Table.Cell className="font-mono">************************pnA5</Table.Cell>
- <Table.Cell className="text-right">15 février 2025</Table.Cell>
- <Table.Cell>
- <IconButton variant="ghost">
- <Trash2 className="h-4 w-4" />
- </IconButton>
- </Table.Cell>
- </Table.Row>
- </Table.Body>
- </Table.Root>
- </Card>
</div>
)
}
diff --git a/src/app/dashboard/layout.tsx b/src/app/dashboard/layout.tsx
index cc0ffc17..23cd92e0 100644
--- a/src/app/dashboard/layout.tsx
+++ b/src/app/dashboard/layout.tsx
@@ -1,12 +1,12 @@
-import React from 'react'
-import { createClient } from "@/src/lib/supabase/server";
-import { redirect } from "next/navigation";
-import Logo from '@/src/components/logo';
-import { Box, Flex, ScrollArea, TextField, Text } from '@radix-ui/themes';
-import NewCase from '@/src/components/dashboard/new-case';
-import { MagnifyingGlassIcon } from '@radix-ui/react-icons';
-import User from '@/src/components/user';
-import Link from 'next/link';
+import type React from "react"
+import { createClient } from "@/src/lib/supabase/server"
+import { redirect } from "next/navigation"
+import Logo from "@/src/components/logo"
+import { Box, Flex, ScrollArea, TextField, Text } from "@radix-ui/themes"
+import NewCase from "@/src/components/dashboard/new-case"
+import { MagnifyingGlassIcon } from "@radix-ui/react-icons"
+import User from "@/src/components/user"
+import Link from "next/link"
const navigation = [
{
@@ -14,79 +14,113 @@ const navigation = [
children: [
{
name: "Your investigations",
- href: "/dashboard"
- }
- ]
+ href: "/dashboard",
+ },
+ ],
},
{
name: "Configuration",
children: [
{
name: "Settings",
- href: "/dashboard/settings"
+ href: "/dashboard/settings",
},
{
name: "API keys",
- href: "/dashboard/keys"
- }
- ]
- }
+ href: "/dashboard/keys",
+ },
+ ],
+ },
]
+
const DashboardLayout = async ({
children,
}: {
- children: React.ReactNode;
+ children: React.ReactNode
}) => {
const supabase = await createClient()
const { data, error } = await supabase.auth.getUser()
if (error || !data?.user) {
- redirect('/login')
+ redirect("/login")
}
return (
- <Flex className='h-screen w-screen flex'>
- <Flex className='h-screen'>
- <div className='flex flex-col w-[300px] h-full rounded-none shadow-none border-r border-gray-400/20'>
- <div className='w-full rounded-none shadow-none h-12 border-b border-gray-400/20 flex items-center gap-1 flex-row justify-between p-2'>
- <Logo />
- <Flex gap={"1"}>
- <NewCase />
- </Flex>
- </div>
- <ScrollArea type="auto" scrollbars="vertical" className='p-3 w-full !h-[calc(100vh_-48px)] grow overflow-y-auto'>
- <Flex direction={"column"} gap="4" className='p-4'>
- {navigation.map((nav, i) => (
- <Flex direction={"column"} gap="1" key={i}>
- <Text className='opacity-60' weight="light">{nav.name}</Text>
- <Flex direction={"column"} gap="1">
- {nav?.children?.map((child, i) => (
- <Link className='hover:text-sky-400 hover:underline' key={i} href={child.href}><Text weight={"medium"} truncate>{child.name}</Text></Link>
- ))}
- </Flex>
- </Flex>
- ))}
- </Flex>
- </ScrollArea>
+ <Flex style={{ height: "100vh", overflow: "hidden" }}>
+ {/* Left Panel */}
+ <Flex direction="column" style={{ width: "300px", borderRight: "1px solid rgba(128, 128, 128, 0.2)" }}>
+ {/* Left Panel Header */}
+ <Box
+ style={{
+ height: "48px",
+ borderBottom: "1px solid rgba(128, 128, 128, 0.2)",
+ padding: "8px",
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "space-between",
+ }}
+ >
+ <Logo />
+ <NewCase />
+ </Box>
- </div>
+ {/* Left Panel Content */}
+ <ScrollArea type="auto" scrollbars="vertical" style={{ flex: 1, overflow: "auto" }}>
+ <Flex direction="column" gap="4" p="4">
+ {navigation.map((nav, i) => (
+ <Flex direction="column" gap="1" key={i}>
+ <Text style={{ opacity: 0.6 }} weight="light">
+ {nav.name}
+ </Text>
+ <Flex direction="column" gap="1">
+ {nav?.children?.map((child, j) => (
+ <Link key={j} href={child.href} style={{ color: "inherit", textDecoration: "none" }}>
+ <Text
+ className="hover:text-sky-400 hover:underline"
+ weight="medium"
+ style={{
+ whiteSpace: "nowrap",
+ overflow: "hidden",
+ textOverflow: "ellipsis",
+ }}
+ >
+ {child.name}
+ </Text>
+ </Link>
+ ))}
+ </Flex>
+ </Flex>
+ ))}
+ </Flex>
+ </ScrollArea>
</Flex>
- <Flex className='grow flex flex-col'>
- <div>
- <div className='w-full rounded-none shadow-none !h-12 justify-between border-b border-gray-400/20 flex flex-row justify-between items-center p-2'>
- <TextField.Root placeholder="Search an investigation..." className='w-full max-w-xs !h-8'>
- <TextField.Slot>
- <MagnifyingGlassIcon height="16" width="16" />
- </TextField.Slot>
- </TextField.Root>
- <User user={data?.user} />
- </div>
- <div className='p-12 h-[calc(100vh_-56px)]'>
- {children}
- </div>
- </div>
+
+ {/* Main Content */}
+ <Flex direction="column" style={{ flex: 1, overflow: "hidden" }}>
+ {/* Top Navigation */}
+ <Box
+ style={{
+ height: "48px",
+ borderBottom: "1px solid rgba(128, 128, 128, 0.2)",
+ padding: "8px",
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "space-between",
+ }}
+ >
+ <TextField.Root placeholder="Search an investigation..." style={{ width: "100%", maxWidth: "240px", height: "32px" }}>
+ <TextField.Slot>
+ <MagnifyingGlassIcon height="16" width="16" />
+ </TextField.Slot>
+ </TextField.Root>
+ <User user={data?.user} />
+ </Box>
+
+ {/* Main Content Area */}
+ <ScrollArea type="auto" scrollbars="vertical" style={{ flex: 1, overflowY: "auto" }}>
+ <Box p="24px">{children}</Box>
+ </ScrollArea>
</Flex>
</Flex>
-
)
}
diff --git a/src/app/dashboard/page.tsx b/src/app/dashboard/page.tsx
index 684c6670..5437479e 100644
--- a/src/app/dashboard/page.tsx
+++ b/src/app/dashboard/page.tsx
@@ -8,7 +8,13 @@ const DashboardPage = async () => {
const { investigations, error } = await getInvestigations()
if (error) return <div>An error occured.</div>
return (
- <div className='space-y-6'>
+ <div className='space-y-6 max-w-6xl mx-auto p-6'>
+ <div>
+ <h1 className="text-3xl font-semibold mb-2">Vos investigations</h1>
+ <p className="mb-6 opacity-70">
+ La liste de vos investigations. Vous pouvez également en créer d'autres.
+ </p>
+ </div>
<Flex gap="3">
<Button><PlusIcon className='h-4 w-4' />Create</Button>
<Button color="gray" variant='soft'><DownloadIcon className='h-4 w-4' />Upload</Button>
diff --git a/src/components/breach.tsx b/src/components/breach.tsx
index 9fa78b7d..4378557f 100644
--- a/src/components/breach.tsx
+++ b/src/components/breach.tsx
@@ -61,11 +61,11 @@ const Breaches: React.FC<BreachProps> = ({ breaches }) => {
<div className="space-y-3">
<div>
<h4 className="text-sm font-semibold">Description:</h4>
- <p className="text-sm opacity-60" dangerouslySetInnerHTML={{ __html: breach.Description }} />
+ <p className="text-sm opacity-70" dangerouslySetInnerHTML={{ __html: breach.Description }} />
</div>
<div>
<h4 className="text-sm font-semibold">Compromised Data:</h4>
- <ul className="list-disc list-inside text-sm opacity-60">
+ <ul className="list-disc list-inside text-sm opacity-70">
{breach.DataClasses.map((dataClass) => (
<li key={dataClass}>{dataClass}</li>
))}
@@ -74,19 +74,19 @@ const Breaches: React.FC<BreachProps> = ({ breaches }) => {
<div className="grid grid-cols-2 gap-4 text-sm">
<div>
<h4 className="font-semibold">Affected Accounts:</h4>
- <p className="opacity-60">{breach.PwnCount.toLocaleString()}</p>
+ <p className="opacity-70">{breach.PwnCount.toLocaleString()}</p>
</div>
<div>
<h4 className="font-semibold">Domain:</h4>
- <p className="opacity-60">{breach.Domain || "N/A"}</p>
+ <p className="opacity-70">{breach.Domain || "N/A"}</p>
</div>
<div>
<h4 className="font-semibold">Added Date:</h4>
- <p className="opacity-60">{new Date(breach.AddedDate).toLocaleDateString()}</p>
+ <p className="opacity-70">{new Date(breach.AddedDate).toLocaleDateString()}</p>
</div>
<div>
<h4 className="font-semibold">Modified Date:</h4>
- <p className="opacity-60">{new Date(breach.ModifiedDate).toLocaleDateString()}</p>
+ <p className="opacity-70">{new Date(breach.ModifiedDate).toLocaleDateString()}</p>
</div>
</div>
<div className="grid grid-cols-2 gap-2 text-sm">
@@ -95,7 +95,7 @@ const Breaches: React.FC<BreachProps> = ({ breaches }) => {
.map(([key, value]) => (
<div key={key} className="flex items-center">
<span className={`w-4 h-4 mr-2 rounded-full ${value ? "bg-green-500" : "bg-red-500"}`}></span>
- <span className="opacity-60">{key.replace(/^Is/, "")}</span>
+ <span className="opacity-70">{key.replace(/^Is/, "")}</span>
</div>
))}
</div>
diff --git a/src/components/contexts/chatbot-context.tsx b/src/components/contexts/chatbot-context.tsx
index f4bd07c0..9cee40b9 100644
--- a/src/components/contexts/chatbot-context.tsx
+++ b/src/components/contexts/chatbot-context.tsx
@@ -27,7 +27,7 @@ export const ChatProvider: React.FC<ChatProviderProps> = ({ children }) => {
<ChatContext.Provider value={{ open, setOpen }}>
{children}
<Dialog.Root open={open} onOpenChange={setOpen}>
- <Dialog.Content maxWidth={messages?.length > 0 ? "630px" : '480px'} className="w-full p-4">
+ <Dialog.Content maxWidth={messages?.length > 0 ? "730px" : '480px'} className="w-full p-4">
<Dialog.Title>Ask AI</Dialog.Title>
<Dialog.Description size="2" mb="4">
Ask AI chat bot to help you understant patterns.</Dialog.Description>
@@ -43,7 +43,7 @@ export const ChatProvider: React.FC<ChatProviderProps> = ({ children }) => {
/>
<Flex direction={"column"} align={m.role === 'user' ? 'end' : 'start'} gap="1" className='w-full'>
<Text size="2" as='div' weight="bold" className={cn(m.role === 'user' ? 'text-right' : 'text-left')}>
- {isLoading ? <LoadingDots /> : m.role === 'user' ? 'User' : 'Chatbot'}
+ {isLoading && m.role !== 'user' ? <LoadingDots /> : m.role === 'user' ? 'User' : 'Chatbot'}
</Text>
<Card className='max-w-[80%]'>
<Box>
diff --git a/src/components/contexts/investigation-provider.tsx b/src/components/contexts/investigation-provider.tsx
index a5c64b9c..272b6696 100644
--- a/src/components/contexts/investigation-provider.tsx
+++ b/src/components/contexts/investigation-provider.tsx
@@ -74,7 +74,7 @@ export const InvestigationProvider: React.FC<InvestigationProviderProps> = ({ ch
<div className="flex items-center justify-between gap-4">
<div className="flex flex-col gap-1">
<p className="font-medium">{title}</p>
- <p className="opacity-60 text-sm">
+ <p className="opacity-70 text-sm">
{description}
</p>
</div>
@@ -99,7 +99,7 @@ export const InvestigationProvider: React.FC<InvestigationProviderProps> = ({ ch
<div className="flex items-center justify-between gap-4">
<div className="flex flex-col gap-1">
<p className="font-medium">Theme</p>
- <p className="opacity-60 text-sm">
+ <p className="opacity-70 text-sm">
Switch to dark or light mode.
</p>
</div>
diff --git a/src/components/contexts/node-context.tsx b/src/components/contexts/node-context.tsx
index 4ebb4e4c..0a353b90 100644
--- a/src/components/contexts/node-context.tsx
+++ b/src/components/contexts/node-context.tsx
@@ -24,6 +24,7 @@ const nodesTypes = {
"social_accounts_telegram": { table: "social_accounts", type: "social", fields: ["profile_url", "username", "platform:telegram"] },
"social_accounts_snapchat": { table: "social_accounts", type: "social", fields: ["profile_url", "username", "platform:snapchat"] },
"social_accounts_signal": { table: "social_accounts", type: "social", fields: ["profile_url", "username", "platform:signal"] },
+ "social_accounts_github": { table: "social_accounts", type: "social", fields: ["profile_url", "username", "platform:github"] },
"physical_addresses": { table: "physical_addresses", type: "address", fields: ["address", "city", "country", "zip"] },
}
diff --git a/src/components/dashboard/seach-palette.tsx b/src/components/dashboard/seach-palette.tsx
index 84c84d93..6ec516bb 100644
--- a/src/components/dashboard/seach-palette.tsx
+++ b/src/components/dashboard/seach-palette.tsx
@@ -113,7 +113,7 @@ const SearchModal = ({ investigation_id }: { investigation_id: string }) => {
aria-hidden="true"
/>
<p className="mt-4 font-semibold">Search for ip_addresses, domain names and other</p>
- <p className="mt-2 opacity-60">
+ <p className="mt-2 opacity-70">
Put you search between quotes for an exact match search.
</p>
</div>
diff --git a/src/components/investigations/individual-modal.tsx b/src/components/investigations/individual-modal.tsx
index 882c67ca..9ab8a0d8 100644
--- a/src/components/investigations/individual-modal.tsx
+++ b/src/components/investigations/individual-modal.tsx
@@ -156,7 +156,7 @@ const IndividualModal = () => {
</Tabs.Content>
<Tabs.Content value="emails">
<Flex direction="column" gap="3">
- {emails.length === 0 && <Text className="italic opacity-60 text-sm">No email registered. Click on edit to add one.</Text>}
+ {emails.length === 0 && <Text className="italic opacity-70 text-sm">No email registered. Click on edit to add one.</Text>}
{emails.map((email: any, index: number) => (
<Flex direction={"column"} key={index}>
<Callout.Root color={email.breaches.length > 0 ? "orange" : "green"} size="1">
@@ -171,7 +171,7 @@ const IndividualModal = () => {
</Tabs.Content>
<Tabs.Content value="social_account">
<Grid columns="3" gap="3" width="auto">
- {accounts.length === 0 && <Text className="italic opacity-60 text-sm">No account registered. Click on edit to add one.</Text>}
+ {accounts.length === 0 && <Text className="italic opacity-70 text-sm">No account registered. Click on edit to add one.</Text>}
{accounts.map((account: any, index) => (
<Badge className="!p-3 cursor-pointer" color="gray" radius="large" key={index} asChild size="1">
<Flex gap="3" align="center" direction={"row"} className="w-full">
@@ -202,7 +202,7 @@ const IndividualModal = () => {
</Tabs.Content>
<Tabs.Content value="phone_numbers">
<Flex direction="column" gap="3" maxWidth={"420px"}>
- {phones.length === 0 && <Text className="italic opacity-60 text-sm">No phone number registered. Click on edit to add one.</Text>}
+ {phones.length === 0 && <Text className="italic opacity-70 text-sm">No phone number registered. Click on edit to add one.</Text>}
{phones.map((phone, index) => (
<Flex key={index} gap="2" align="center">
<TextField.Root
@@ -234,7 +234,7 @@ const IndividualModal = () => {
</Tabs.Content>
<Tabs.Content value="ip_addresses">
<Flex direction="column" gap="3">
- {ips.length === 0 && <Text className="italic opacity-60 text-sm">No IP address registered. Click on edit to add one.</Text>}
+ {ips.length === 0 && <Text className="italic opacity-70 text-sm">No IP address registered. Click on edit to add one.</Text>}
{ips.map((ip, index) => (
<Flex key={index} gap="2" align="center">
<TextField.Root
@@ -266,7 +266,7 @@ const IndividualModal = () => {
</Tabs.Content>
<Tabs.Content value="relations">
<Grid columns="3" gap="3" width="auto">
- {relations.length === 0 && <Text className="italic opacity-60 text-sm">No relation registered. Click on edit to add one.</Text>}
+ {relations.length === 0 && <Text className="italic opacity-70 text-sm">No relation registered. Click on edit to add one.</Text>}
{relations.map((relation) => (
<Badge className="!p-3 cursor-pointer" color="gray" radius="large" key={relation.id} onClick={() => handleOpenIndividualModal(relation.id)} asChild size="1">
<Flex gap="3" align="center" direction={"row"} className="w-full">
diff --git a/src/components/investigations/nodes/individual.tsx b/src/components/investigations/nodes/individual.tsx
index c21b4aa0..3264a0b7 100644
--- a/src/components/investigations/nodes/individual.tsx
+++ b/src/components/investigations/nodes/individual.tsx
@@ -9,6 +9,7 @@ import { useSearchContext } from '../../contexts/search-context';
import { cn, zoomSelector } from '@/src/lib/utils';
import { CopyButton } from '../../copy';
import { useChatContext } from '../../contexts/chatbot-context';
+import { GithubIcon } from '../../icons';
function Custom(props: any) {
@@ -82,19 +83,20 @@ function Custom(props: any) {
<ContextMenu.Sub>
<ContextMenu.SubTrigger >New</ContextMenu.SubTrigger>
<ContextMenu.SubContent>
- <ContextMenu.Item onClick={(e) => setOpenAddNodeModal(e, "individuals")}><UserIcon className='h-4 w-4 opacity-60' /> New relation</ContextMenu.Item>
- <ContextMenu.Item onClick={(e) => setOpenAddNodeModal(e, "phone_numbers", data.id)}><PhoneIcon className='h-4 w-4 opacity-60' />Phone number</ContextMenu.Item>
- <ContextMenu.Item onClick={(e) => setOpenAddNodeModal(e, "physical_addresses", data.id)}><MapPinHouseIcon className='h-4 w-4 opacity-60' />Physical address</ContextMenu.Item>
- <ContextMenu.Item onClick={(e) => setOpenAddNodeModal(e, "emails", data.id)}><AtSignIcon className='h-4 w-4 opacity-60' />Email address</ContextMenu.Item>
- <ContextMenu.Item onClick={(e) => setOpenAddNodeModal(e, "ip_addresses", data.id)}><LocateIcon className='h-4 w-4 opacity-60' />IP address</ContextMenu.Item>
+ <ContextMenu.Item onClick={(e) => setOpenAddNodeModal(e, "individuals")}><UserIcon className='h-4 w-4 opacity-70' /> New relation</ContextMenu.Item>
+ <ContextMenu.Item onClick={(e) => setOpenAddNodeModal(e, "phone_numbers", data.id)}><PhoneIcon className='h-4 w-4 opacity-70' />Phone number</ContextMenu.Item>
+ <ContextMenu.Item onClick={(e) => setOpenAddNodeModal(e, "physical_addresses", data.id)}><MapPinHouseIcon className='h-4 w-4 opacity-70' />Physical address</ContextMenu.Item>
+ <ContextMenu.Item onClick={(e) => setOpenAddNodeModal(e, "emails", data.id)}><AtSignIcon className='h-4 w-4 opacity-70' />Email address</ContextMenu.Item>
+ <ContextMenu.Item onClick={(e) => setOpenAddNodeModal(e, "ip_addresses", data.id)}><LocateIcon className='h-4 w-4 opacity-70' />IP address</ContextMenu.Item>
<ContextMenu.Sub>
<ContextMenu.SubTrigger >Social account</ContextMenu.SubTrigger>
<ContextMenu.SubContent>
- <ContextMenu.Item onClick={(e) => setOpenAddNodeModal(e, "social_accounts_facebook", data.id)}><FacebookIcon className='h-4 w-4 opacity-60' />Facebook</ContextMenu.Item>
- <ContextMenu.Item onClick={(e) => setOpenAddNodeModal(e, "social_accounts_instagram", data.id)}><InstagramIcon className='h-4 w-4 opacity-60' />Instagram</ContextMenu.Item>
- <ContextMenu.Item onClick={(e) => setOpenAddNodeModal(e, "social_accounts_telegram", data.id)}><SendIcon className='h-4 w-4 opacity-60' />Telegram</ContextMenu.Item>
- <ContextMenu.Item onClick={(e) => setOpenAddNodeModal(e, "social_accounts_signal", data.id)}><MessageCircleDashedIcon className='h-4 w-4 opacity-60' />Signal</ContextMenu.Item>
- <ContextMenu.Item onClick={(e) => setOpenAddNodeModal(e, "social_accounts_snapchat", data.id)}><CameraIcon className='h-4 w-4 opacity-60' />Snapchat</ContextMenu.Item>
+ <ContextMenu.Item onClick={(e) => setOpenAddNodeModal(e, "social_accounts_facebook", data.id)}><FacebookIcon className='h-4 w-4 opacity-70' />Facebook</ContextMenu.Item>
+ <ContextMenu.Item onClick={(e) => setOpenAddNodeModal(e, "social_accounts_instagram", data.id)}><InstagramIcon className='h-4 w-4 opacity-70' />Instagram</ContextMenu.Item>
+ <ContextMenu.Item onClick={(e) => setOpenAddNodeModal(e, "social_accounts_telegram", data.id)}><SendIcon className='h-4 w-4 opacity-70' />Telegram</ContextMenu.Item>
+ <ContextMenu.Item onClick={(e) => setOpenAddNodeModal(e, "social_accounts_signal", data.id)}><MessageCircleDashedIcon className='h-4 w-4 opacity-70' />Signal</ContextMenu.Item>
+ <ContextMenu.Item onClick={(e) => setOpenAddNodeModal(e, "social_accounts_snapchat", data.id)}><CameraIcon className='h-4 w-4 opacity-70' />Snapchat</ContextMenu.Item>
+ <ContextMenu.Item onClick={(e) => setOpenAddNodeModal(e, "social_accounts_github", data.id)}><GithubIcon className='h-4 w-4 opacity-70' />Github</ContextMenu.Item>
<ContextMenu.Item disabled onClick={(e) => setOpenAddNodeModal(e, "social_accounts_coco", data.id)}>Coco <Badge radius='full'>soon</Badge></ContextMenu.Item>
</ContextMenu.SubContent>
</ContextMenu.Sub>
diff --git a/src/components/user.tsx b/src/components/user.tsx
index 2a62f761..bea1ed2a 100644
--- a/src/components/user.tsx
+++ b/src/components/user.tsx
@@ -13,7 +13,7 @@ const User = ({ user }: any) => {
</DropdownMenu.Trigger>
<DropdownMenu.Content className='p-2'>
<Text weight={"medium"}>{user?.user_metadata?.user_name}</Text>
- <Text weight={"light"} size={"2"} className='opacity-60'>{user?.user_metadata?.email}</Text>
+ <Text weight={"light"} size={"2"} className='opacity-70'>{user?.user_metadata?.email}</Text>
<DropdownMenu.Item>Profile</DropdownMenu.Item>
<DropdownMenu.Item>Settings</DropdownMenu.Item>
<DropdownMenu.Separator />