From 6df5440dd7b6dd670cce987989ae89dac2d194e0 Mon Sep 17 00:00:00 2001 From: KGFCH2 Date: Sun, 31 May 2026 21:23:39 +0530 Subject: [PATCH] fix: enhance empty state dashboard layouts for disconnected GitHub account --- frontend/src/pages/DashboardPage.jsx | 45 +++++++++++++++++++++------- 1 file changed, 34 insertions(+), 11 deletions(-) diff --git a/frontend/src/pages/DashboardPage.jsx b/frontend/src/pages/DashboardPage.jsx index 59d59d5..d93d4f9 100644 --- a/frontend/src/pages/DashboardPage.jsx +++ b/frontend/src/pages/DashboardPage.jsx @@ -58,19 +58,42 @@ export default function DashboardPage() { {/* Metrics Grid */}
{/* GitHub Stats */} -
-

GitHub

-
-
- Commits - + {user?.handles?.github || user?.oauth?.github?.username ? ( + +

GitHub

+
+
+ Username + @{user.handles.github || user.oauth.github.username} +
+
+ Status + Connected +
+
+ View Repository Insights → +
-
- Active PRs - + + ) : ( + +
+

GitHub

+

+ No GitHub account connected. Link your profile to view metrics. +

-
-
+ + + )} {/* Codeforces Widget */} {cfLoading ? (