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
improve custom pip ux
Louis Beaumont543b223cfd58
diff --git a/screenpipe-app-tauri/components/pipe-store.tsx b/screenpipe-app-tauri/components/pipe-store.tsxindex e7cd1bef5..8ff964abf 100644--- a/screenpipe-app-tauri/components/pipe-store.tsx+++ b/screenpipe-app-tauri/components/pipe-store.tsx@@ -486,16 +486,42 @@ const PipeStore: React.FC = () => {};const handleAddOwnPipe = async () => {- posthog.capture("add_own_pipe", {- newRepoUrl,- });if (newRepoUrl) {try {- toast({+ posthog.capture("add_own_pipe", {+ newRepoUrl,+ });++ // Create initial toast with progress bar+ const t = toast({title: "adding custom pipe",- description: "please wait...",+ description: (+ <div className="space-y-2">+ <Progress value={0} className="h-1" />+ <p className="text-xs">starting installation...</p>+ </div>+ ),+ duration: 100000, // long duration});+ let value = 0;++ // Update progress periodically+ const progressInterval = setInterval(() => {+ value += 3;+ t.update({+ id: t.id,+ title: "adding custom pipe",+ description: (+ <div className="space-y-2">+ <Progress value={value} className="h-1" />+ <p className="text-xs">installing dependencies...</p>+ </div>+ ),+ duration: 100000,+ });+ }, 500);+const response = await fetch("http://localhost:3030/pipes/download", {method: "POST",headers: {@@ -506,16 +532,27 @@ const PipeStore: React.FC = () => {const data = await response.json();+ clearInterval(progressInterval);+if (!data.success) {throw new Error(data.error || "Failed to download pipe");}+ t.update({+ id: t.id,+ title: "pipe added",+ description: (+ <div className="space-y-2">+ <Progress value={100} className="h-1" />+ <p className="text-xs">completed successfully</p>+ </div>+ ),+ duration: 2000,+ });+await fetchInstalledPipes();+ setNewRepoUrl("");- toast({- title: "custom pipe added",- description: "your pipe has been successfully added.",- });} catch (error) {console.error("failed to add custom pipe:", error);toast({@@ -523,8 +560,6 @@ const PipeStore: React.FC = () => {description: "please check the url and try again.",variant: "destructive",});- } finally {- setNewRepoUrl("");}}};