From a22e77c4ebdde83c73caa83dfb8c9ee2a7089961 Mon Sep 17 00:00:00 2001 From: Julien Froidefond Date: Fri, 17 Oct 2025 23:07:01 +0200 Subject: [PATCH] feat: enhance ClientLibraryPage loading state with improved skeleton structure and remove deprecated loading component --- .../[libraryId]/ClientLibraryPage.tsx | 38 +++++++++++++-- src/app/libraries/[libraryId]/loading.tsx | 46 ------------------- src/styles/globals.css | 2 +- 3 files changed, 34 insertions(+), 52 deletions(-) delete mode 100644 src/app/libraries/[libraryId]/loading.tsx diff --git a/src/app/libraries/[libraryId]/ClientLibraryPage.tsx b/src/app/libraries/[libraryId]/ClientLibraryPage.tsx index b0c8a85..92655a3 100644 --- a/src/app/libraries/[libraryId]/ClientLibraryPage.tsx +++ b/src/app/libraries/[libraryId]/ClientLibraryPage.tsx @@ -151,15 +151,43 @@ export function ClientLibraryPage({ if (loading) { return ( -
- - + {/* Section header avec titre + actions */} +
+
+ +
+ + +
+
-
+ + {/* Filters */} +
+
+
+ +
+
+ + + +
+
+
+ + {/* Grid */} +
{Array.from({ length: effectivePageSize }).map((_, i) => ( - + ))}
+ + {/* Pagination */} +
+ + +
); } diff --git a/src/app/libraries/[libraryId]/loading.tsx b/src/app/libraries/[libraryId]/loading.tsx deleted file mode 100644 index 949662a..0000000 --- a/src/app/libraries/[libraryId]/loading.tsx +++ /dev/null @@ -1,46 +0,0 @@ -import { OptimizedSkeleton } from "@/components/skeletons/OptimizedSkeletons"; - -export default function LibraryLoading() { - return ( -
- {/* Header avec titre + compteur + refresh */} -
- -
- - -
-
- - {/* Filters section */} -
-
-
-
- -
-
- - - -
-
-
- - {/* Grid */} -
- {Array.from({ length: 20 }).map((_, i) => ( - - ))} -
- - {/* Pagination */} -
- - -
-
-
- ); -} - diff --git a/src/styles/globals.css b/src/styles/globals.css index ab98bc4..e7a0370 100644 --- a/src/styles/globals.css +++ b/src/styles/globals.css @@ -68,7 +68,7 @@ body { --secondary: 217.2 32.6% 17.5%; --secondary-foreground: 210 40% 98%; - --muted: 217.2 32.6% 17.5%; + --muted: 217.2 32.6% 25%; --muted-foreground: 215 20.2% 65.1%; --accent: 217.2 32.6% 17.5%;