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
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix: pipes tab skeleton loading + eliminate fetch waterfall
Louis Beaumont37a496a63c20
diff --git a/.claude/skills/release/SKILL.md b/.claude/skills/release/SKILL.mdindex f945585e8..a7377404d 100644--- a/.claude/skills/release/SKILL.md+++ b/.claude/skills/release/SKILL.md@@ -121,7 +121,7 @@ gh run view <RUN_ID> --json status,conclusion,jobs --jq '{status: .status, concl- Verify updater artifacts exist (.tar.gz, .sig files)### 8. Publish Release-After testing, publish manually via CrabNebula Cloud dashboard, OR commit with magic words:+After testing, publish via the Cloudflare R2 / backend dashboard, OR commit with magic words:```bashgit commit --allow-empty -m "release-app-publish" && git push```diff --git a/apps/screenpipe-app-tauri/components/settings/pipes-section.tsx b/apps/screenpipe-app-tauri/components/settings/pipes-section.tsxindex 33c101cae..10af5d02e 100644--- a/apps/screenpipe-app-tauri/components/settings/pipes-section.tsx+++ b/apps/screenpipe-app-tauri/components/settings/pipes-section.tsx@@ -6,6 +6,7 @@import React, { useState, useEffect, useCallback, useRef } from "react";import { Card, CardContent } from "@/components/ui/card";+import { Skeleton } from "@/components/ui/skeleton";import { Button } from "@/components/ui/button";import { Switch } from "@/components/ui/switch";import {@@ -294,6 +295,22 @@ export function PipesSection() {}return changed ? next : prev;});+ // Fetch executions immediately (no waterfall through re-render)+ if (fetched.length > 0) {+ const results: Record<string, PipeExecution[]> = {};+ await Promise.all(+ fetched.map(async (pipe) => {+ try {+ const r = await fetch(`http://localhost:3030/pipes/${pipe.config.name}/executions?limit=5`);+ const d = await r.json();+ results[pipe.config.name] = d.data || [];+ } catch {+ results[pipe.config.name] = [];+ }+ })+ );+ setPipeExecutions(results);+ }} catch (e) {console.error("failed to fetch pipes:", e);} finally {@@ -348,10 +365,7 @@ export function PipesSection() {return () => clearInterval(id);}, [pipes, runningPipe, fetchAllExecutions]);- // Fetch all executions whenever pipes list changes- useEffect(() => {- if (pipes.length > 0) fetchAllExecutions(pipes);- }, [pipes.length]); // eslint-disable-line react-hooks/exhaustive-deps+ // Note: executions are fetched inside fetchPipes to avoid waterfallconst fetchLogs = async (name: string) => {try {@@ -498,8 +512,47 @@ export function PipesSection() {if (loading) {return (- <div className="flex items-center justify-center py-8">- <Loader2 className="h-6 w-6 animate-spin" />+ <div className="space-y-4">+ {/* Header skeleton */}+ <div className="flex items-center justify-between">+ <div>+ <Skeleton className="h-5 w-16" />+ <Skeleton className="h-4 w-64 mt-1" />+ </div>+ <div className="flex items-center gap-2">+ <Skeleton className="h-8 w-8 rounded-md" />+ <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}>+ <CardContent className="p-4">+ <div className="flex items-center gap-3">+ <Skeleton className="h-4 w-4" />+ <Skeleton className="h-4 w-32" />+ <div className="flex-1" />+ <Skeleton className="h-5 w-20 rounded-full" />+ <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>+ ))}+ </div></div>);}diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock b/apps/screenpipe-app-tauri/src-tauri/Cargo.lockindex 6ba43987a..6cc8b04cf 100755--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock@@ -8097,7 +8097,7 @@ dependencies = [[[package]]name = "screenpipe-app"-version = "2.0.492"+version = "2.0.495"dependencies = ["anyhow","arboard",