diff --git a/src/app/investigations/[investigation_id]/layout.tsx b/src/app/investigations/[investigation_id]/layout.tsx
index 47511bb..c7d0bb7 100644
--- a/src/app/investigations/[investigation_id]/layout.tsx
+++ b/src/app/investigations/[investigation_id]/layout.tsx
@@ -6,6 +6,8 @@ import { createClient } from "@/lib/supabase/server";
import { notFound, redirect } from "next/navigation";
import { ChatProvider } from '@/components/contexts/chatbot-context';
import { getInvestigation } from '@/lib/actions/investigations';
+import { SidebarProvider } from '@/components/ui/sidebar';
+import { AppSidebar } from '@/components/app-sidebar';
const DashboardLayout = async ({
children,
diff --git a/src/app/investigations/[investigation_id]/left.tsx b/src/app/investigations/[investigation_id]/left.tsx
index 209fa93..fc4aa15 100644
--- a/src/app/investigations/[investigation_id]/left.tsx
+++ b/src/app/investigations/[investigation_id]/left.tsx
@@ -6,6 +6,7 @@ import { cn } from '@/lib/utils';
import { AtSignIcon, PhoneIcon, UserIcon } from 'lucide-react';
import { useEmails } from '@/lib/hooks/investigation/use-emails';
import { usePhones } from '@/lib/hooks/investigation/use-phones';
+import { useSocials } from '@/lib/hooks/investigation/use-socials';
import {
Accordion,
AccordionContent,
@@ -19,6 +20,7 @@ const Left = ({ investigation_id }: { investigation_id: string }) => {
const { individuals, isLoading: isLoadingIndividuals, refetch: refetchIndividuals } = useIndividuals(investigation_id)
const { emails, isLoading: isLoadingEmails, refetch: refetchEmails } = useEmails(investigation_id)
const { phones, isLoading: isLoadingPhones, refetch: refetchPhones } = usePhones(investigation_id)
+ const { socials, isLoading: isLoadingSocials, refetch: refetchSocials } = useSocials(investigation_id)
const { currentNode, setCurrentNode } = useFlowStore()
@@ -37,9 +39,9 @@ const Left = ({ investigation_id }: { investigation_id: string }) => {
}
{individuals?.map((individual: any) => (
- -
+
-
@@ -62,9 +64,9 @@ const Left = ({ investigation_id }: { investigation_id: string }) => {
}
{emails?.map((email: any) => (
- -
+
-
@@ -87,9 +89,9 @@ const Left = ({ investigation_id }: { investigation_id: string }) => {
}
{phones?.map((phone: any) => (
- -
+
-
@@ -99,6 +101,31 @@ const Left = ({ investigation_id }: { investigation_id: string }) => {
+
+
+
+ Socials {!isLoadingSocials && <>({socials?.length})>}
+
+ {isLoadingSocials &&
+
+
+
+
+ }
+
+ {socials?.map((social: any) => (
+ -
+
+
+ ))
+ }
+
+
+
+
)
}
diff --git a/src/app/investigations/loading.tsx b/src/app/investigations/loading.tsx
deleted file mode 100644
index 7a28b35..0000000
--- a/src/app/investigations/loading.tsx
+++ /dev/null
@@ -1,9 +0,0 @@
-import React from 'react'
-
-const loading = () => {
- return (
- Loading investigation...
- )
-}
-
-export default loading
\ No newline at end of file
diff --git a/src/components/contexts/chatbot-context.tsx b/src/components/contexts/chatbot-context.tsx
index 7d4e94e..3dd00cc 100644
--- a/src/components/contexts/chatbot-context.tsx
+++ b/src/components/contexts/chatbot-context.tsx
@@ -50,27 +50,21 @@ export const ChatProvider: React.FC = ({ children }) => {
{m.role === "user" ? (
- ) : isLoading ? (
-
) : (
)}
-
-
- {isLoading && m.role !== "user" ? : m.role === "user" ? "User" : "Chatbot"}
-
-
-
+
+
+
{m.content}
diff --git a/src/components/contexts/investigation-provider.tsx b/src/components/contexts/investigation-provider.tsx
index e866bd6..bb25ffb 100644
--- a/src/components/contexts/investigation-provider.tsx
+++ b/src/components/contexts/investigation-provider.tsx
@@ -57,7 +57,7 @@ export const InvestigationProvider: React.FC
= ({ ch
showMiniMap: true,
showCopyIcon: true,
showNodeToolbar: true,
- floatingEdges: false
+ // floatingEdges: false
});
const createQueryString = useCallback(
@@ -107,7 +107,7 @@ export const InvestigationProvider: React.FC = ({ ch
-
+ {/* */}
Theme
diff --git a/src/components/contexts/node-context.tsx b/src/components/contexts/node-context.tsx
index 92f9da1..b68b1f1 100644
--- a/src/components/contexts/node-context.tsx
+++ b/src/components/contexts/node-context.tsx
@@ -166,7 +166,7 @@ export const NodeProvider: React.FC
= (props: any) => {
const [key, value] = field.split(":")
return (