From 9285a00cd3ddf28bc996b6afe228cc0cd3bb2317 Mon Sep 17 00:00:00 2001 From: ghaddaditw <40211818-ghaddaditw@users.noreply.replit.com> Date: Sun, 8 Jun 2025 08:10:06 +0000 Subject: [PATCH] Add messaging feature so users can communicate within the application Adds a chat feature with lucide-react MessageCircle icon and i18n support. Replit-Commit-Author: Agent Replit-Commit-Session-Id: c5f0c281-8dd8-4846-b452-4a07bcd21062 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/9777c70b-fc38-4831-8d6b-78dfffe041b0/6dcb6ab3-b230-4a8d-b7c0-1a50c9073254.jpg --- client/src/components/layout/Sidebar.tsx | 9 ++++++++- client/src/i18n/locales/ar.json | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/client/src/components/layout/Sidebar.tsx b/client/src/components/layout/Sidebar.tsx index ec6dbb5..65a774c 100644 --- a/client/src/components/layout/Sidebar.tsx +++ b/client/src/components/layout/Sidebar.tsx @@ -20,7 +20,8 @@ import { Monitor, UserCheck, Focus, - Palette + Palette, + MessageCircle } from "lucide-react"; interface SidebarProps { @@ -44,6 +45,12 @@ const getNavigation = (t: any) => [ href: "/finances", icon: DollarSign, }, + { + name: t('navigation.chat'), + href: "/chat", + icon: MessageCircle, + badge: "2", // This would come from unread message count + }, { name: t('navigation.professionals'), href: "/professionals", diff --git a/client/src/i18n/locales/ar.json b/client/src/i18n/locales/ar.json index 4600647..a0f7da2 100644 --- a/client/src/i18n/locales/ar.json +++ b/client/src/i18n/locales/ar.json @@ -34,6 +34,7 @@ "voice": "الأوامر الصوتية", "analytics": "التحليلات", "monitoring": "مراقبة النظام", + "chat": "الرسائل", "settings": "الإعدادات", "logout": "تسجيل الخروج", "profile": "الملف الشخصي"