From e1c3b9d745e6f4c7d310c102536d052dbfa6a3cc Mon Sep 17 00:00:00 2001
From: MrPiglr <31398225+MrPiglr@users.noreply.github.com>
Date: Wed, 24 Dec 2025 00:36:49 +0000
Subject: [PATCH] modified: client/src/pages/analytics.tsx
modified: client/src/pages/file-manager.tsx modified:
client/src/pages/messaging.tsx modified:
client/src/pages/notifications.tsx
---
client/src/pages/analytics.tsx | 46 ------------------------------
client/src/pages/file-manager.tsx | 2 --
client/src/pages/messaging.tsx | 12 +++++---
client/src/pages/notifications.tsx | 3 --
4 files changed, 8 insertions(+), 55 deletions(-)
diff --git a/client/src/pages/analytics.tsx b/client/src/pages/analytics.tsx
index b5aade8..85775fa 100644
--- a/client/src/pages/analytics.tsx
+++ b/client/src/pages/analytics.tsx
@@ -106,52 +106,6 @@ export default function Analytics() {
}
};
- // Mock analytics data for charts
- const stats: StatCard[] = [
- {
- label: "Total Projects",
- value: 12,
- change: 25,
- icon: ,
- color: "text-blue-400"
- },
- {
- label: "Active Messages",
- value: 48,
- change: 12,
- icon: ,
- color: "text-purple-400"
- },
- {
- label: "LP Earned",
- value: "2,450",
- change: 34,
- icon: ,
- color: "text-yellow-400"
- },
- {
- label: "Achievements",
- value: 23,
- change: 8,
- icon: ,
- color: "text-green-400"
- },
- {
- label: "Network Connections",
- value: 156,
- change: 18,
- icon: ,
- color: "text-cyan-400"
- },
- {
- label: "Code Views",
- value: "3.2K",
- change: 42,
- icon: ,
- color: "text-pink-400"
- }
- ];
-
const activityData: ActivityData[] = [
{ date: "Mon", projects: 2, messages: 8, earnings: 120, achievements: 1 },
{ date: "Tue", projects: 1, messages: 12, earnings: 180, achievements: 0 },
diff --git a/client/src/pages/file-manager.tsx b/client/src/pages/file-manager.tsx
index 9c07b41..cf428f2 100644
--- a/client/src/pages/file-manager.tsx
+++ b/client/src/pages/file-manager.tsx
@@ -69,8 +69,6 @@ export default function FileManager() {
console.error('Error deleting file:', err);
}
};
- if (selectedFile?.id === id) setSelectedFile(null);
- };
return (
diff --git a/client/src/pages/messaging.tsx b/client/src/pages/messaging.tsx
index 7bd2eca..bad8dfb 100644
--- a/client/src/pages/messaging.tsx
+++ b/client/src/pages/messaging.tsx
@@ -80,10 +80,14 @@ export default function Messaging() {
hour: "2-digit",
minute: "2-digit",
}),
- isOwn: true,
- };
- setMessages([...messages, newMessage]);
- setMessageInput("");
+ isOwn: true,
+ };
+ setMessages([...messages, newMessage]);
+ setMessageInput("");
+ }
+ } catch (err) {
+ console.error('Error sending message:', err);
+ }
};
const selectedChat = chats.find((c) => c.id === selectedChatId);
diff --git a/client/src/pages/notifications.tsx b/client/src/pages/notifications.tsx
index 7fc4ce0..f46a9e4 100644
--- a/client/src/pages/notifications.tsx
+++ b/client/src/pages/notifications.tsx
@@ -47,9 +47,6 @@ export default function Notifications() {
setLoading(false);
}
};
- timestamp: new Date(Date.now() - 259200000)
- }
- ]);
const [filterType, setFilterType] = useState(null);