From 8ccd2a0b6018b356592239bcca85a828966c7163 Mon Sep 17 00:00:00 2001 From: Ayaanshaikh12243 Date: Thu, 1 Jan 2026 21:59:47 +0530 Subject: [PATCH 1/3] feat: add dashboard page with profile overview section --- client/src/App.tsx | 30 ++++++++++++++++- .../components/dashboard/ProfileOverview.jsx | 13 ++++++++ client/src/dasboard.jsx | 14 ++++++++ client/src/pages/dashboard.jsx | 13 ++++++++ client/src/services/api.ts | 14 ++++++++ client/src/services/dashboardService.ts | 7 ++++ server/index.js | 2 ++ server/routes/users.js | 33 +++++++++++++++++++ 8 files changed, 125 insertions(+), 1 deletion(-) create mode 100644 client/src/components/dashboard/ProfileOverview.jsx create mode 100644 client/src/dasboard.jsx create mode 100644 client/src/pages/dashboard.jsx create mode 100644 client/src/services/api.ts create mode 100644 client/src/services/dashboardService.ts create mode 100644 server/routes/users.js diff --git a/client/src/App.tsx b/client/src/App.tsx index fc033a8..66d3c8f 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -8,6 +8,7 @@ import { } from "react-router-dom"; import { Analytics } from "@vercel/analytics/react"; import { SpeedInsights } from "@vercel/speed-insights/react"; + import Navbar from "./components/layout/Navbar"; import LandingPage from "./components/layout/LandingPage"; import AuthForm from "./components/auth/AuthForm"; @@ -43,6 +44,7 @@ import ScrollToTop from "./components/ui/ScrollToTop"; import ScrollToTopOnRouteChange from "./components/ui/ScrollToTopOnRouteChange"; import { isAuthenticated } from "./utils/auth"; import { SocketProvider } from "./contexts/SocketContext"; +import Dashboard from "./pages/Dashboard"; interface AppProps {} @@ -99,8 +101,13 @@ const App: React.FC = () => {
+ } /> + + {/* ✅ TEMP: Dashboard WITHOUT login */} + } /> + = () => { } /> + } /> = () => { element={} /> } /> + = () => { } /> + } /> - } /> + } + /> + } /> } /> + = () => { } /> + = () => { } /> + = () => { } /> + } /> } /> + } /> + } /> } /> + = () => { } /> + = () => { } /> + = () => { } /> + = () => { } /> + = () => { } /> + } /> + } /> +