-
diff --git a/src/components/contexts/search-context.tsx b/src/components/contexts/search-context.tsx
index 7caada5..120f758 100644
--- a/src/components/contexts/search-context.tsx
+++ b/src/components/contexts/search-context.tsx
@@ -4,13 +4,15 @@ import { createContext, useContext, type ReactNode, useState } from "react"
import { Button } from "@/components/ui/button"
import { Card } from "@/components/ui/card"
import {
- Dialog,
- DialogContent,
- DialogDescription,
- DialogFooter,
- DialogHeader,
- DialogTitle,
-} from "@/components/ui/dialog"
+ Sheet,
+ SheetClose,
+ SheetContent,
+ SheetDescription,
+ SheetFooter,
+ SheetHeader,
+ SheetTitle,
+ SheetTrigger,
+} from "@/components/ui/sheet"
import { Alert, AlertDescription } from "@/components/ui/alert"
import { InfoIcon } from "lucide-react"
import { investigateValue } from "@/lib/actions/search"
@@ -66,12 +68,12 @@ export const SearchProvider: React.FC
= ({ children }) => {
return (
{children}
-
-
+
+
+
)
}
diff --git a/src/components/contexts/use-flow-store.tsx b/src/components/contexts/use-flow-store.tsx
index 8aa595c..7370092 100644
--- a/src/components/contexts/use-flow-store.tsx
+++ b/src/components/contexts/use-flow-store.tsx
@@ -140,18 +140,18 @@ const createStore = (initialNodes: AppNode[] = [], initialEdges: Edge[] = []) =>
},
onNodeClick: (_event: any, node: { id: string; }) => {
set({ currentNode: node.id });
- get().resetNodeStyles()
+ get().resetNodeStyles();
},
onPaneClick: (_envent: any) => {
set({ currentNode: null });
- get().resetNodeStyles()
+ get().resetNodeStyles();
},
onLayout: (direction = 'TB', fitView: () => void) => {
const { nodes, edges } = getLayoutedElements(get().nodes, get().edges, { direction });
set({ nodes });
- set({ edges })
- fitView()
+ set({ edges });
+ fitView();
},
highlightPath: (selectedNode: Node | null) => {
if (!selectedNode) {
diff --git a/src/components/copy.tsx b/src/components/copy.tsx
index 818e5f1..e673712 100644
--- a/src/components/copy.tsx
+++ b/src/components/copy.tsx
@@ -1,10 +1,11 @@
"use client"
import { useState, useCallback } from "react"
-import { Copy } from "lucide-react"
+import { CopyIcon } from "lucide-react"
import { useTimeout } from "usehooks-ts"
import { Tooltip, TooltipContent, TooltipTrigger } from "./ui/tooltip"
import { Button } from "./ui/button"
+import { cn } from "@/lib/utils"
interface CopyButtonProps {
content: string
@@ -34,8 +35,8 @@ export function CopyButton({ content, className, delay = 2000 }: CopyButtonProps
return (
-
-
+
+
diff --git a/src/components/dashboard/investigation.tsx b/src/components/dashboard/investigation.tsx
index a429393..41218d5 100644
--- a/src/components/dashboard/investigation.tsx
+++ b/src/components/dashboard/investigation.tsx
@@ -3,32 +3,29 @@ import React from 'react'
import { Investigation } from '@/types/investigation';
import Link from 'next/link';
import Image from 'next/image';
-import { Card } from '@/components/ui/card';
const investigation = ({ investigation }: { investigation: Investigation }) => {
return (
-
-
-
-
+
+
+
+
+
+
+ {investigation.title}
-
-
- {investigation.title}
-
-
- {investigation.description || No description provided.}
-
+
+ {investigation.description || No description provided.}
-
+
)
diff --git a/src/components/dashboard/search-palette.tsx b/src/components/dashboard/search-palette.tsx
index 290b0c8..65f4e95 100644
--- a/src/components/dashboard/search-palette.tsx
+++ b/src/components/dashboard/search-palette.tsx
@@ -82,7 +82,7 @@ const SearchModal = ({ investigation_id }: { investigation_id: string }) => {
setOpen(true)}>
-
+
Search
@@ -99,13 +99,13 @@ const SearchModal = ({ investigation_id }: { investigation_id: string }) => {
{error && An error occurred.
}
{isLoading && }
{results?.length === 0 && No results found for "{search}".
}
-
+ {results && results?.length !== 0 &&
{!error && !isLoading && Array.isArray(results) && results?.map((item) => (
))}
-
+ }
diff --git a/src/components/investigations/case-selector.tsx b/src/components/investigations/case-selector.tsx
index eb038c4..ffefffc 100644
--- a/src/components/investigations/case-selector.tsx
+++ b/src/components/investigations/case-selector.tsx
@@ -18,10 +18,10 @@ export default function CaseSelector() {
router.push(`/investigations/${value}`);
};
return (
-
+
{isLoading || isLoadingInvestigation ? :
{currentNode && (
-
+
<>
{getNode(currentNode)?.data?.label}
>
diff --git a/src/components/investigations/individual-modal.tsx b/src/components/investigations/individual-modal.tsx
index 07dcbc5..8065339 100644
--- a/src/components/investigations/individual-modal.tsx
+++ b/src/components/investigations/individual-modal.tsx
@@ -100,6 +100,7 @@ const IndividualModal = () => {
setEditMode(!editMode)}
aria-label={editMode ? "Cancel edit" : "Edit profile"}
>
@@ -113,8 +114,8 @@ const IndividualModal = () => {
{individual?.full_name?.[0] || "?"}
-
-
+
+
Overview
diff --git a/src/components/investigations/layout.tsx b/src/components/investigations/layout.tsx
index 67acf24..7903d88 100644
--- a/src/components/investigations/layout.tsx
+++ b/src/components/investigations/layout.tsx
@@ -12,6 +12,7 @@ import { useInvestigationContext } from '@/components/contexts/investigation-pro
import { NavUser } from '@/components/user';
import { Button } from '../ui/button';
import { ScrollArea } from '../ui/scroll-area';
+import Assistant from '../assistant';
const InvestigationLayout = ({
children,
@@ -24,8 +25,7 @@ const InvestigationLayout = ({
investigation_id: string
user: any
}) => {
- const { handleOpenChat } = useChatContext()
- const { panelOpen, setPanelOpen, investigation } = useInvestigationContext()
+ const { panelOpen, setPanelOpen } = useInvestigationContext()
return (
{panelOpen &&
@@ -33,7 +33,6 @@ const InvestigationLayout = ({
-
handleOpenChat(investigation)} color="gray">
@@ -55,14 +54,19 @@ const InvestigationLayout = ({
-
-
-
setPanelOpen(!panelOpen)} size="icon" variant="outline">
-
-
-
+
+
+
+
setPanelOpen(!panelOpen)} size="icon" variant="outline">
+
+
+
+
+
+
+
-
{children}
diff --git a/src/components/investigations/nodes/email.tsx b/src/components/investigations/nodes/email.tsx
index ab6a537..c8f309d 100644
--- a/src/components/investigations/nodes/email.tsx
+++ b/src/components/investigations/nodes/email.tsx
@@ -44,7 +44,7 @@ function EmailNode({ data }: any) {
-
+
{data.label}
{settings.showCopyIcon && }
diff --git a/src/components/investigations/nodes/individual.tsx b/src/components/investigations/nodes/individual.tsx
index c34add4..664c688 100644
--- a/src/components/investigations/nodes/individual.tsx
+++ b/src/components/investigations/nodes/individual.tsx
@@ -89,7 +89,7 @@ function Custom(props: any) {
{loading ? "..." : data.full_name[0]}
{settings.showNodeLabel && showContent && (
-
+
{data.full_name}
{settings.showCopyIcon && }
diff --git a/src/components/investigations/nodes/ip_address.tsx b/src/components/investigations/nodes/ip_address.tsx
index c63273f..eb577c1 100644
--- a/src/components/investigations/nodes/ip_address.tsx
+++ b/src/components/investigations/nodes/ip_address.tsx
@@ -44,7 +44,7 @@ function IpNode({ data }: any) {
-
+
{data.label}
{settings.showCopyIcon && }
diff --git a/src/components/investigations/nodes/phone.tsx b/src/components/investigations/nodes/phone.tsx
index 7f3770f..ca0a6ee 100644
--- a/src/components/investigations/nodes/phone.tsx
+++ b/src/components/investigations/nodes/phone.tsx
@@ -44,7 +44,7 @@ function PhoneNode({ data }: any) {
-
+
{data.label}
{settings.showCopyIcon && }
diff --git a/src/components/investigations/nodes/physical_address.tsx b/src/components/investigations/nodes/physical_address.tsx
index 08e9516..97ea43d 100644
--- a/src/components/investigations/nodes/physical_address.tsx
+++ b/src/components/investigations/nodes/physical_address.tsx
@@ -44,7 +44,7 @@ function AddressNode({ data }: any) {
-
+
{data.label}
{settings.showCopyIcon && }
diff --git a/src/components/investigations/nodes/social.tsx b/src/components/investigations/nodes/social.tsx
index 49c1e0b..9c6e959 100644
--- a/src/components/investigations/nodes/social.tsx
+++ b/src/components/investigations/nodes/social.tsx
@@ -49,7 +49,7 @@ function SocialNode({ data }: any) {
{/* @ts-ignore */}
{platformsIcons?.[data?.platform]?.icon}
-
+
{data.username || data.profile_url}
{settings.showCopyIcon && }
diff --git a/src/components/ui/button.tsx b/src/components/ui/button.tsx
index 61875fc..2cd9d30 100644
--- a/src/components/ui/button.tsx
+++ b/src/components/ui/button.tsx
@@ -10,13 +10,13 @@ const buttonVariants = cva(
variants: {
variant: {
default:
- "bg-primary text-primary-foreground shadow-sm hover:bg-primary/90",
+ "bg-primary text-primary-foreground hover:bg-primary/90",
destructive:
- "bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90",
+ "bg-destructive text-destructive-foregroundhover:bg-destructive/90",
outline:
- "border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground",
+ "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
secondary:
- "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",
+ "bg-secondary text-secondary-foregroundhover:bg-secondary/80",
ghost: "hover:bg-accent hover:text-accent-foreground",
link: "text-primary underline-offset-4 hover:underline",
},
diff --git a/src/components/ui/sheet.tsx b/src/components/ui/sheet.tsx
index e1a2861..b3d0b0f 100644
--- a/src/components/ui/sheet.tsx
+++ b/src/components/ui/sheet.tsx
@@ -58,7 +58,7 @@ function SheetContent({