From 77a74e02a3213d2ed7a596525706f4191c37fd0b Mon Sep 17 00:00:00 2001 From: Chandrakala Y Date: Fri, 15 May 2026 09:44:35 +0530 Subject: [PATCH 1/2] Enhance dashboard UX with loading skeletons and empty states --- src/pages/Tracker/Tracker.tsx | 64 +++++++++++++++++++++++++++++++---- 1 file changed, 58 insertions(+), 6 deletions(-) diff --git a/src/pages/Tracker/Tracker.tsx b/src/pages/Tracker/Tracker.tsx index 2bd4d30..bb576aa 100644 --- a/src/pages/Tracker/Tracker.tsx +++ b/src/pages/Tracker/Tracker.tsx @@ -20,7 +20,6 @@ import { TableRow, TablePagination, Link, - CircularProgress, Alert, Tabs, Tab, @@ -28,6 +27,8 @@ import { MenuItem, FormControl, InputLabel, + Skeleton, + Typography, } from "@mui/material"; import { useTheme } from "@mui/material/styles"; import { useGitHubAuth } from "../../hooks/useGitHubAuth"; @@ -279,11 +280,62 @@ const Home: React.FC = () => { )} {loading ? ( - - - - ) : ( - + + + + + + Title + Repository + State + Created + + + + + {[...Array(5)].map((_, index) => ( + + + + + + + + + + + + + + + + + + ))} + +
+
+
+) : currentFilteredData.length === 0 ? ( + + + No Data Found + + + + Try adjusting filters or searching for another GitHub user. + + +) : ( + + From d82cfce1224ae7ca9036f96c87e592ff40578b72 Mon Sep 17 00:00:00 2001 From: Chandrakala Y Date: Fri, 15 May 2026 10:41:37 +0530 Subject: [PATCH 2/2] Handle empty state only when no errors exist --- src/pages/Tracker/Tracker.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Tracker/Tracker.tsx b/src/pages/Tracker/Tracker.tsx index bb576aa..03de100 100644 --- a/src/pages/Tracker/Tracker.tsx +++ b/src/pages/Tracker/Tracker.tsx @@ -316,7 +316,7 @@ const Home: React.FC = () => { -) : currentFilteredData.length === 0 ? ( +) : !authError && !dataError && currentFilteredData.length === 0 ? (