From e69472d4b0dcde344e3281307751a4fc3a549347 Mon Sep 17 00:00:00 2001
From: michaelschal <35957947-michaelschal@users.noreply.replit.com>
Date: Wed, 8 Oct 2025 13:52:38 +0000
Subject: [PATCH] Update dashboard to show post history and allow direct photo
uploads
Remove the calendar and analytics pages, and update the sidebar navigation. Add functionality for direct image uploads on the new post page. Update the favicon for the application.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: ae4037a0-2a6f-4530-9bac-79b543286bda
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/397bca8c-984f-43ff-841a-10897aeb8140/ae4037a0-2a6f-4530-9bac-79b543286bda/G8GuKB7
---
client/src/App.tsx | 2 -
client/src/components/sidebar.tsx | 3 +-
client/src/pages/analytics.tsx | 129 ------------------------------
3 files changed, 1 insertion(+), 133 deletions(-)
delete mode 100644 client/src/pages/analytics.tsx
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
-
-
-
-
-
-
-
- );
-}