From 63ae963cd3de36521941996345b4eccef9f41e62 Mon Sep 17 00:00:00 2001 From: michaelschal <35957947-michaelschal@users.noreply.replit.com> Date: Sat, 4 Oct 2025 10:13:34 +0000 Subject: [PATCH] Update application UI with a modern and streamlined design Revamp the entire UI with a new theme, enhancing readability and modern aesthetics across all components, including AI chat, calendar, media uploads, and user management sections. 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/nriKMjY --- .replit | 8 + client/src/components/ai-chat.tsx | 103 +++++++------ client/src/components/calendar-view.tsx | 126 +++++++-------- client/src/components/managed-pages.tsx | 93 +++++++----- client/src/components/media-upload.tsx | 194 +++++++++++++----------- client/src/components/quick-actions.tsx | 101 ++++++------ client/src/pages/ai.tsx | 8 +- client/src/pages/analytics.tsx | 143 +++++++++-------- client/src/pages/calendar.tsx | 4 +- client/src/pages/dashboard.tsx | 20 +-- client/src/pages/history.tsx | 69 +++++---- client/src/pages/login.tsx | 60 +++++--- client/src/pages/media.tsx | 4 +- client/src/pages/new-post.tsx | 36 ++--- client/src/pages/pages.tsx | 18 +-- client/src/pages/settings.tsx | 22 +-- client/src/pages/sql.tsx | 18 +-- client/src/pages/users-admin.tsx | 12 +- 18 files changed, 566 insertions(+), 473 deletions(-) diff --git a/.replit b/.replit index ad64fe1..93f3672 100644 --- a/.replit +++ b/.replit @@ -14,10 +14,18 @@ run = ["npm", "run", "start"] localPort = 5000 externalPort = 80 +[[ports]] +localPort = 35357 +externalPort = 3002 + [[ports]] localPort = 40537 externalPort = 3000 +[[ports]] +localPort = 41095 +externalPort = 3003 + [[ports]] localPort = 43245 externalPort = 3001 diff --git a/client/src/components/ai-chat.tsx b/client/src/components/ai-chat.tsx index 0ba4791..212eb35 100644 --- a/client/src/components/ai-chat.tsx +++ b/client/src/components/ai-chat.tsx @@ -4,7 +4,7 @@ import { Input } from "@/components/ui/input"; import { Textarea } from "@/components/ui/textarea"; import { useMutation, useQuery } from "@tanstack/react-query"; import { apiRequest, queryClient } from "@/lib/queryClient"; -import { Bot, User, Lightbulb, History, Zap } from "lucide-react"; +import { Bot, User, Lightbulb, History, Zap, Sparkles } from "lucide-react"; import { useToast } from "@/hooks/use-toast"; interface Message { @@ -51,11 +51,9 @@ export default function AiChat() { const handleSubmit = () => { if (!input.trim()) return; - // Add user message const userMessage = input; setMessages((prev) => [...prev, { role: "user", content: userMessage }]); - // Parse product info from input (simple parsing) const productInfo = { name: userMessage.match(/Produit:\s*(.+?)(?:\n|$)/i)?.[1] || userMessage, price: userMessage.match(/Prix:\s*(.+?)(?:\n|$)/i)?.[1] || "", @@ -68,93 +66,97 @@ export default function AiChat() { }; return ( -
Décrivez votre produit pour générer du texte
+Génération de contenu intelligent
+{message.content}
+{message.content}
{message.variants && ( -{variant.text}
+{variant.text}
Planifiez vos publications sur plusieurs pages
-Visualisez vos publications planifiées
+- Gérez vos pages Facebook et Instagram connectées -
++ {(pages as any[])?.length || 0} page(s) connectée(s) +
++
{page.platform === "facebook" ? "Facebook Page" : "Instagram Business"}
-Aucune page connectée
-