From 4e9960d46477ac90402b15e431a69492bf788d20 Mon Sep 17 00:00:00 2001 From: ciregenz Date: Wed, 10 Jun 2026 00:58:27 -0700 Subject: [PATCH] [eric] frontend: directory browser loads with row skeletons instead of a centered spinner --- frontend/src/app/components/editor/DirectoryBrowser.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/components/editor/DirectoryBrowser.tsx b/frontend/src/app/components/editor/DirectoryBrowser.tsx index 3a45bf48..0934fe65 100644 --- a/frontend/src/app/components/editor/DirectoryBrowser.tsx +++ b/frontend/src/app/components/editor/DirectoryBrowser.tsx @@ -11,7 +11,7 @@ import List from '@mui/material/List'; import ListItemButton from '@mui/material/ListItemButton'; import ListItemIcon from '@mui/material/ListItemIcon'; import ListItemText from '@mui/material/ListItemText'; -import CircularProgress from '@mui/material/CircularProgress'; +import { Skeleton } from '@/app/components/feedback/Loading'; import IconButton from '@mui/material/IconButton'; import Breadcrumbs from '@mui/material/Breadcrumbs'; import Link from '@mui/material/Link'; @@ -242,8 +242,11 @@ const DirectoryBrowser: React.FC = ({ open, onClose, onSe scrollbarColor: `${c.border.medium} transparent`, }}> {loading ? ( - - + // Row-shaped skeletons instead of a spinner: the list keeps its silhouette while loading. + + {[0, 1, 2, 3].map((i) => ( + + ))} ) : !hasEntries ? (