diff --git a/client/src/App.tsx b/client/src/App.tsx index 85dac3f..57062bd 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -12,7 +12,6 @@ import Calendar from "@/pages/calendar"; import Media from "@/pages/media"; import PagesManagement from "@/pages/pages"; import AI from "@/pages/ai"; -import Analytics from "@/pages/analytics"; import History from "@/pages/history"; import Settings from "@/pages/settings"; import SqlAdmin from "@/pages/sql"; @@ -71,7 +70,6 @@ function Router() { {() => } {() => } {() => } - {() => } {() => } {() => } {() => } diff --git a/client/src/components/sidebar.tsx b/client/src/components/sidebar.tsx index d7cbb8f..bbabe38 100644 --- a/client/src/components/sidebar.tsx +++ b/client/src/components/sidebar.tsx @@ -1,4 +1,4 @@ -import { Home, PlusCircle, Calendar, Images, Users, Bot, BarChart3, Clock, Settings, Database, UserCog, LogOut } from "lucide-react"; +import { Home, PlusCircle, Calendar, Images, Users, Bot, Clock, Settings, Database, UserCog, LogOut } from "lucide-react"; import { Link, useLocation } from "wouter"; import { useQuery, useMutation } from "@tanstack/react-query"; import { apiRequest, queryClient } from "@/lib/queryClient"; @@ -42,7 +42,6 @@ export default function Sidebar() { ]; const statsItems = [ - { icon: BarChart3, label: "Analyses", href: "/analytics" }, { icon: Clock, label: "Historique", href: "/history" }, ]; diff --git a/client/src/pages/analytics.tsx b/client/src/pages/analytics.tsx deleted file mode 100644 index d53f58b..0000000 --- a/client/src/pages/analytics.tsx +++ /dev/null @@ -1,129 +0,0 @@ -import { useState } from "react"; -import { useQuery } from "@tanstack/react-query"; -import { TrendingUp, Users, Eye, Heart, BarChart3 } from "lucide-react"; -import Sidebar from "@/components/sidebar"; -import TopBar from "@/components/topbar"; -import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; - -export default function Analytics() { - const [sidebarOpen, setSidebarOpen] = useState(false); - - const { data: stats } = useQuery({ - queryKey: ['/api/stats'], - }); - - const metrics = [ - { - title: "Publications totales", - value: "0", - description: "Toutes plateformes", - icon: TrendingUp, - gradient: "from-primary to-primary/80", - }, - { - title: "Portée totale", - value: "0", - description: "Personnes atteintes", - icon: Users, - gradient: "from-secondary to-secondary/80", - }, - { - title: "Impressions", - value: "0", - description: "Vues totales", - icon: Eye, - gradient: "from-success to-success/80", - }, - { - title: "Engagement", - value: "0", - description: "Interactions totales", - icon: Heart, - gradient: "from-warning to-warning/80", - }, - ]; - - return ( -
- {sidebarOpen && ( -
setSidebarOpen(false)} - /> - )} - -
- -
- -
- setSidebarOpen(!sidebarOpen)} /> - -
-
-

Analyses

-

- Statistiques et performances de vos publications -

-
- -
- {metrics.map((metric, index) => { - const Icon = metric.icon; - return ( - - -
- - {metric.title} - -
- -
-
-
- -
- {metric.value} -
-

{metric.description}

-
-
- ); - })} -
- - - -
-
- -
-
- Fonctionnalité à venir -

Graphiques et statistiques détaillées

-
-
-
- -
-
- -
-

- Les analyses détaillées et les graphiques de performance seront disponibles prochainement. -

-

- Vous pourrez suivre l'évolution de vos statistiques au fil du temps -

-
-
-
-
-
-
- ); -}