From 3075e4a005af58e484b0c07074b9423c734946f9 Mon Sep 17 00:00:00 2001 From: Offending Commit Date: Tue, 12 May 2026 10:05:00 -0500 Subject: [PATCH 1/3] fix: show structured page placeholders while loading --- .../conclusions/ConclusionBrowser.tsx | 30 +++- .../src/components/dashboard/Dashboard.tsx | 65 +++++++- .../web/src/components/peers/PeerDetail.tsx | 45 +++++- .../web/src/components/peers/PeerList.tsx | 41 ++++- .../src/components/sessions/SessionList.tsx | 41 ++++- .../web/src/components/shared/Skeleton.tsx | 15 ++ .../components/workspaces/WebhookManager.tsx | 149 ++++++++++-------- .../components/workspaces/WorkspaceDetail.tsx | 43 ++++- .../components/workspaces/WorkspaceList.tsx | 37 ++++- packages/web/src/index.css | 46 ++++++ 10 files changed, 432 insertions(+), 80 deletions(-) create mode 100644 packages/web/src/components/shared/Skeleton.tsx diff --git a/packages/web/src/components/conclusions/ConclusionBrowser.tsx b/packages/web/src/components/conclusions/ConclusionBrowser.tsx index 2cd756f..347ab55 100644 --- a/packages/web/src/components/conclusions/ConclusionBrowser.tsx +++ b/packages/web/src/components/conclusions/ConclusionBrowser.tsx @@ -14,8 +14,8 @@ import { ConfirmDialog } from "@/components/shared/ConfirmDialog"; import { EmptyState } from "@/components/shared/EmptyState"; import { ErrorAlert } from "@/components/shared/ErrorAlert"; import { FormModal } from "@/components/shared/FormModal"; -import { PageLoader } from "@/components/shared/LoadingSpinner"; import { Pagination } from "@/components/shared/Pagination"; +import { Skeleton } from "@/components/shared/Skeleton"; import { SortControl, type SortDir } from "@/components/shared/SortControl"; import { TimestampChip } from "@/components/shared/TimestampChip"; import { Button } from "@/components/ui/button"; @@ -193,7 +193,7 @@ export function ConclusionBrowser() { - {(isLoading || (activeSearch && searchLoading)) && } + {(isLoading || (activeSearch && searchLoading)) && } {!isLoading && !searchLoading && displayedConclusions.length === 0 && (