From f2fa289080991f7c0597330e8d1381517ea9c20f Mon Sep 17 00:00:00 2001 From: Arbyhisenaj <41119392+Arbyhisenaj@users.noreply.github.com> Date: Mon, 6 Jan 2025 17:44:58 +0000 Subject: [PATCH] Update ReportDashboard.tsx --- .../[id]/dashboard/ReportDashboard.tsx | 79 +++++++++++-------- 1 file changed, 46 insertions(+), 33 deletions(-) diff --git a/nextjs/src/app/reports/[id]/dashboard/ReportDashboard.tsx b/nextjs/src/app/reports/[id]/dashboard/ReportDashboard.tsx index b871b692d..72217089f 100644 --- a/nextjs/src/app/reports/[id]/dashboard/ReportDashboard.tsx +++ b/nextjs/src/app/reports/[id]/dashboard/ReportDashboard.tsx @@ -5,16 +5,23 @@ import { import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs' import { gql, useQuery } from '@apollo/client' import { useAtom } from 'jotai' -import { CalendarIcon, FileIcon, MapPinIcon, UsersIcon } from 'lucide-react' +import { + CalendarIcon, + FileIcon, + MapPinIcon, + MessageSquareIcon, + UsersIcon, +} from 'lucide-react' import { useReport } from '../(components)/ReportProvider' import { TabTriggerClasses } from '../(components)/ReportSidebarLeft' import { ConstituencyElectionDeepDive } from '../(components)/reportsConstituencyItem' import { selectedBoundaryAtom } from '../useSelectBoundary' +import ReportDashboardChat from './ReportDashboardChat' import ReportDashboardList from './ReportDashboardList' import ReportDashboardMPs from './ReportDashboardMPs' import ReportDashboardMemberCount from './ReportDashboardMemberCount' -import ReportDashboardMemberList from './ReportDashboardMemberList' import ReportDashboardMembersOverTime from './ReportDashboardMembersOverTime' +import ReportMembers from './ReportMembers' const IconClasses = 'w-4 h-4 stroke-meepGray-400 stroke-1 mr-1' @@ -49,6 +56,11 @@ const dashboardTabItems = [ value: 'articles', icon: , }, + { + label: 'Chat', + value: 'chat', + icon: , + }, ] export default function ReportDashboard() { @@ -87,8 +99,10 @@ export default function ReportDashboard() { return ( - - + + {dashboardTabItems.map((item) => ( ))} - - - - {constituencies && !selectedBoundary && ( - <> - - - - - > - )} - {selectedBoundary && analyticalAreaType && ( - - - - )} - - - - - - Foodbanks Data goes here - Groups Data goes here - Events Data goes here - Articles Data goes here - + + + {constituencies && !selectedBoundary && ( + <> + + + + + > + )} + {selectedBoundary && analyticalAreaType && ( + + )} + + + + + + Foodbanks Data goes here + Groups Data goes here + Events Data goes here + Articles Data goes here + + + )