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
release-app fix pipe card markdown rendering
Louis Beaumont523f1dae9754
diff --git a/screenpipe-app-tauri/components/pipe-store/pipe-card.tsx b/screenpipe-app-tauri/components/pipe-store/pipe-card.tsxindex 2ad29ad14..55735735f 100644--- a/screenpipe-app-tauri/components/pipe-store/pipe-card.tsx+++ b/screenpipe-app-tauri/components/pipe-store/pipe-card.tsx@@ -1,8 +1,4 @@-import React, {- useCallback,- useEffect,- useState,-} from "react";+import React, { useCallback, useEffect, useState } from "react";import { Button } from "@/components/ui/button";import {Download,@@ -66,6 +62,22 @@ function getBuildStepMessage(buildStatus: BuildStatus | undefined): string {}}+function stripMarkdown(text: string): string {+ if (!text) return "";+ return text+ .replace(/<\/?[^>]+(>|$)/g, "") // Remove HTML tags+ .replace(/\*\*(.*?)\*\*|__(.*?)__/g, "$1$2") // Bold+ .replace(/\*(.*?)\*|_(.*?)_/g, "$1$2") // Italic+ .replace(/\[([^\]]+)\]\(([^)]+)\)/g, "$1") // Links+ .replace(/!\[([^\]]+)\]\(([^)]+)\)/g, "$1") // Images+ .replace(/#{1,6}\s+/g, "") // Headers+ .replace(/`{1,3}(.*?)`{1,3}/gs, "$1") // Code blocks+ .replace(/^\s*>[>\s]*/gm, "") // Blockquotes+ .replace(/^\s*[-*+]\s+/gm, "") // Unordered lists+ .replace(/^\s*\d+\.\s+/gm, "") // Ordered lists+ .replace(/~~(.*?)~~/g, "$1"); // Strikethrough+}+export const PipeCard: React.FC<PipeCardProps> = ({pipe,onInstall,@@ -78,6 +90,7 @@ export const PipeCard: React.FC<PipeCardProps> = ({}) => {const [isLoading, setIsLoading] = useState(false);const { settings } = useSettings();+ const [isHovered, setIsHovered] = useState(false);const handleOpenWindow = async (e: React.MouseEvent) => {e.stopPropagation();@@ -103,7 +116,7 @@ export const PipeCard: React.FC<PipeCardProps> = ({const id = pipe.is_local ? pipe.id : pipe.name;try {const response = await fetch(- `http://localhost:3030/pipes/build-status/${id}`,+ `http://localhost:3030/pipes/build-status/${id}`);if (!response.ok) {@@ -249,10 +262,12 @@ export const PipeCard: React.FC<PipeCardProps> = ({return (<motion.div- className="group border rounded-xl p-5 hover:bg-muted/40 has-[.no-card-hover:hover]:hover:bg-transparent transition-all duration-200 cursor-pointer backdrop-blur-sm"+ className="group border rounded-xl p-5 hover:bg-muted/40 has-[.no-card-hover:hover]:hover:bg-transparent transition-all duration-200 cursor-pointer backdrop-blur-sm relative"onClick={() => onClick(pipe)}initial={{ opacity: 0, scale: 0.95 }}animate={{ opacity: 1, scale: 1 }}+ onHoverStart={() => setIsHovered(true)}+ onHoverEnd={() => setIsHovered(false)}whileHover={{boxShadow: "0 0 10px rgba(255,255,255,0.1)",transition: { duration: 0.2 },@@ -267,7 +282,11 @@ export const PipeCard: React.FC<PipeCardProps> = ({</h3><div className="text-sm text-muted-foreground"><PipeStoreMarkdown- content={pipe.description?.substring(0, 90) || "" + "..."}+ content={+ (pipe.description+ ? stripMarkdown(pipe.description).substring(0, 90)+ : "") + "..."+ }variant="compact"/></div>@@ -379,6 +398,19 @@ export const PipeCard: React.FC<PipeCardProps> = ({</div>)}</div>+ {isHovered && (+ <motion.div+ className="absolute inset-0 bg-background/90 backdrop-blur-md rounded-xl p-4 overflow-auto z-50"+ initial={{ opacity: 0, scale: 0.95 }}+ animate={{ opacity: 1, scale: 1 }}+ exit={{ opacity: 0, scale: 0.95 }}+ transition={{ duration: 0.2 }}+ >+ <h3 className="font-semibold text-xl mb-2">{pipe.name}</h3>+ <PipeStoreMarkdown content={pipe.description || ""} />+ {/* Add any additional detailed content you want to show here */}+ </motion.div>+ )}</motion.div>);};diff --git a/screenpipe-app-tauri/src-tauri/Cargo.lock b/screenpipe-app-tauri/src-tauri/Cargo.lockindex 41d12399c..b3c494441 100755--- a/screenpipe-app-tauri/src-tauri/Cargo.lock+++ b/screenpipe-app-tauri/src-tauri/Cargo.lock@@ -5289,7 +5289,7 @@ dependencies = [[[package]]name = "screenpipe-app"-version = "0.38.5"+version = "0.38.9"dependencies = ["anyhow","async-stream",diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.tomlindex 42f7cb34a..087f51be5 100644--- a/screenpipe-app-tauri/src-tauri/Cargo.toml+++ b/screenpipe-app-tauri/src-tauri/Cargo.toml@@ -1,6 +1,6 @@[package]name = "screenpipe-app"-version = "0.38.9"+version = "0.38.10"description = ""authors = ["you"]license = ""