From 91174e075855c89077ff2bd26a6a70ef2fcb216d Mon Sep 17 00:00:00 2001 From: senke Date: Sat, 7 Feb 2026 15:20:44 +0100 Subject: [PATCH] style(studio): elevate CloudFileBrowser to SaaS Premium Co-authored-by: Cursor --- .../CloudFileBrowserSkeleton.tsx | 48 +++++++++---------- .../cloud-file-browser/FileGrid.tsx | 2 +- .../cloud-file-browser/FileGridCard.tsx | 20 ++++---- .../cloud-file-browser/FileTable.tsx | 14 +++--- .../cloud-file-browser/FileTableRow.tsx | 38 +++++++-------- .../cloud-file-browser/FileToolbar.tsx | 22 ++++----- 6 files changed, 72 insertions(+), 72 deletions(-) diff --git a/apps/web/src/features/studio/components/cloud-file-browser/CloudFileBrowserSkeleton.tsx b/apps/web/src/features/studio/components/cloud-file-browser/CloudFileBrowserSkeleton.tsx index 17ad296e5..75f50cb5e 100644 --- a/apps/web/src/features/studio/components/cloud-file-browser/CloudFileBrowserSkeleton.tsx +++ b/apps/web/src/features/studio/components/cloud-file-browser/CloudFileBrowserSkeleton.tsx @@ -19,22 +19,22 @@ export function CloudFileBrowserSkeleton({ return (
{/* Toolbar skeleton */} -
+
-
+
-
+
{[1, 2, 3, 4, 5].map((i) => ( -
+
))}
-
-
-
+
+
+
@@ -42,24 +42,24 @@ export function CloudFileBrowserSkeleton({
{viewMode === 'list' ? (
-
-
-
-
-
-
+
+
+
+
+
+
{Array.from({ length: ROW_COUNT }).map((_, i) => (
-
+
-
-
+
+
-
-
-
+
+
+
))}
@@ -69,14 +69,14 @@ export function CloudFileBrowserSkeleton({ {Array.from({ length: 8 }).map((_, i) => (
-
+
-
+
-
-
+
+
diff --git a/apps/web/src/features/studio/components/cloud-file-browser/FileGrid.tsx b/apps/web/src/features/studio/components/cloud-file-browser/FileGrid.tsx index 146dc099c..650f5e6e8 100644 --- a/apps/web/src/features/studio/components/cloud-file-browser/FileGrid.tsx +++ b/apps/web/src/features/studio/components/cloud-file-browser/FileGrid.tsx @@ -48,7 +48,7 @@ export function FileGrid({ return (
diff --git a/apps/web/src/features/studio/components/cloud-file-browser/FileGridCard.tsx b/apps/web/src/features/studio/components/cloud-file-browser/FileGridCard.tsx index 96de5b991..b0d2cbc69 100644 --- a/apps/web/src/features/studio/components/cloud-file-browser/FileGridCard.tsx +++ b/apps/web/src/features/studio/components/cloud-file-browser/FileGridCard.tsx @@ -15,9 +15,9 @@ export interface FileGridCardProps { function FileTypeIcon({ type, size = 'md' }: { type: CloudFileNode['type']; size?: 'md' | 'lg' }) { const cl = size === 'lg' ? 'w-8 h-8' : 'w-5 h-5'; - if (type === 'folder') return ; + if (type === 'folder') return ; if (type === 'audio') return ; - if (type === 'image') return ; + if (type === 'image') return ; if (['document', 'archive', 'project'].includes(type)) { return ; } @@ -41,12 +41,12 @@ export function FileGridCard({ className )} > -
+
-
+
-
-
+
+
@@ -57,8 +57,8 @@ export function FileGridCard({ onClick(file)} @@ -73,9 +73,9 @@ export function FileGridCard({ aria-label={selected ? 'Désélectionner' : 'Sélectionner'} > {selected ? ( - + ) : ( - + )} diff --git a/apps/web/src/features/studio/components/cloud-file-browser/FileTable.tsx b/apps/web/src/features/studio/components/cloud-file-browser/FileTable.tsx index f25ca2993..2d0f34410 100644 --- a/apps/web/src/features/studio/components/cloud-file-browser/FileTable.tsx +++ b/apps/web/src/features/studio/components/cloud-file-browser/FileTable.tsx @@ -34,7 +34,7 @@ export function FileTable({ return (
@@ -45,31 +45,31 @@ export function FileTable({ onSort('name')} > Name Tags onSort('size')} > Size onSort('modified')} > Modified @@ -94,7 +94,7 @@ export function FileTable({ No files match your filters. diff --git a/apps/web/src/features/studio/components/cloud-file-browser/FileTableRow.tsx b/apps/web/src/features/studio/components/cloud-file-browser/FileTableRow.tsx index c60217bbf..713ce5550 100644 --- a/apps/web/src/features/studio/components/cloud-file-browser/FileTableRow.tsx +++ b/apps/web/src/features/studio/components/cloud-file-browser/FileTableRow.tsx @@ -24,13 +24,13 @@ export interface FileTableRowProps { } function FileTypeIcon({ type }: { type: CloudFileNode['type'] }) { - if (type === 'folder') return ; - if (type === 'audio') return ; - if (type === 'image') return ; + if (type === 'folder') return ; + if (type === 'audio') return ; + if (type === 'image') return ; if (['document', 'archive', 'project'].includes(type)) { - return ; + return ; } - return ; + return ; } export function FileTableRow({ @@ -45,28 +45,28 @@ export function FileTableRow({ return ( -
+
-
-
+
+
-
-
+
+
-
+
-
+
-
+
); @@ -76,18 +76,18 @@ export function FileTableRow({ @@ -110,7 +110,7 @@ export function FileTableRow({ {file.tags?.map((t) => ( {t} @@ -125,7 +125,7 @@ export function FileTableRow({