Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: only show full-page skeleton on initial load, not device switch

Louis Beaumonte4ea4704cb11
diff --git a/apps/screenpipe-app-tauri/components/settings/pipes-section.tsx b/apps/screenpipe-app-tauri/components/settings/pipes-section.tsx
index 2d2724b34..feb4c9543 100644
--- a/apps/screenpipe-app-tauri/components/settings/pipes-section.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/pipes-section.tsx
@@ -1201,10 +1201,11 @@ export function PipesSection() {
};
}, []);
- if (loading) {
+ // Full-page skeleton only on very first load (no pipes ever fetched yet)
+ // Device switches use the inline skeleton in the pipe list instead
+ if (loading && pipes.length === 0 && !selectedDevice && devices.length === 0) {
return (
<div className="space-y-4">
- {/* Header skeleton */}
<div className="flex items-center justify-between">
<div>
<Skeleton className="h-5 w-16" />
@@ -1215,9 +1216,7 @@ export function PipesSection() {
<Skeleton className="h-8 w-28 rounded-md" />
</div>
</div>
- {/* Input skeleton */}
<Skeleton className="h-9 w-full rounded-md" />
- {/* Pipe card skeletons */}
<div className="space-y-2">
{[1, 2, 3].map((i) => (
<Card key={i}>
@@ -1230,16 +1229,6 @@ export function PipesSection() {
<Skeleton className="h-8 w-8 rounded-md" />
<Skeleton className="h-5 w-9 rounded-full" />
</div>
- <div className="mt-3 space-y-1.5">
- {[1, 2, 3].map((j) => (
- <div key={j} className="flex items-center gap-3">
- <Skeleton className="h-3 w-32" />
- <Skeleton className="h-3 w-10" />
- <Skeleton className="h-3 w-8" />
- <Skeleton className="h-3 w-24" />
- </div>
- ))}
- </div>
</CardContent>
</Card>
))}