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

release-app show when an update is available

Louis Beaumontf90ceb83a914
diff --git a/pipes/memories/package.json b/pipes/memories/package.json
index f4f81e338..5b3eef80f 100644
--- a/pipes/memories/package.json
+++ b/pipes/memories/package.json
@@ -1,6 +1,6 @@
{
"name": "memories",
- "version": "0.1.0",
+ "version": "0.1.4",
"private": true,
"scripts": {
"dev": "next dev --turbopack",
diff --git a/screenpipe-app-tauri/components/pipe-store.tsx b/screenpipe-app-tauri/components/pipe-store.tsx
index a5bca1d15..358d9b88d 100644
--- a/screenpipe-app-tauri/components/pipe-store.tsx
+++ b/screenpipe-app-tauri/components/pipe-store.tsx
@@ -75,17 +75,39 @@ export const PipeStore: React.FC = () => {
const plugins = await pipeApi.listStorePlugins();
// Create PipeWithStatus objects for store plugins
- const storePluginsWithStatus = plugins.map((plugin) => ({
- ...plugin,
- is_installed: installedPipes.some((p) => p.config?.id === plugin.id),
- installed_config: installedPipes.find((p) => p.config?.id === plugin.id)
- ?.config,
- has_purchased: purchaseHistory.some((p) => p.plugin_id === plugin.id),
- is_core_pipe: corePipes.includes(plugin.name),
- is_enabled: installedPipes.some(
- (p) => p.config?.id === plugin.id && p.config?.enabled
- ),
- }));
+ const storePluginsWithStatus = await Promise.all(
+ plugins.map(async (plugin) => {
+ const installedPipe = installedPipes.find(
+ (p) => p.config?.id === plugin.id
+ );
+ const currentVersion = installedPipe?.config?.version;
+
+ let has_update = false;
+ if (currentVersion) {
+ try {
+ const updateCheck = await pipeApi.checkUpdate(
+ plugin.id,
+ currentVersion
+ );
+ has_update = updateCheck.has_update;
+ } catch (error) {
+ console.error(`Failed to check updates for ${plugin.id}:`, error);
+ }
+ }
+
+ return {
+ ...plugin,
+ is_installed: !!installedPipe,
+ installed_config: installedPipe?.config,
+ has_purchased: purchaseHistory.some(
+ (p) => p.plugin_id === plugin.id
+ ),
+ is_core_pipe: corePipes.includes(plugin.name),
+ is_enabled: installedPipe?.config?.enabled ?? false,
+ has_update,
+ };
+ })
+ );
const customPipes = installedPipes
.filter((p) => !plugins.some((plugin) => plugin.id === p.config?.id))
diff --git a/screenpipe-app-tauri/components/pipe-store/pipe-card.tsx b/screenpipe-app-tauri/components/pipe-store/pipe-card.tsx
index dffb11451..8d9f76f3d 100644
--- a/screenpipe-app-tauri/components/pipe-store/pipe-card.tsx
+++ b/screenpipe-app-tauri/components/pipe-store/pipe-card.tsx
@@ -7,6 +7,7 @@ import {
UserIcon,
Loader2,
Power,
+ ArrowUpCircle,
} from "lucide-react";
import { PipeStoreMarkdown } from "@/components/pipe-store-markdown";
import { PipeWithStatus } from "./types";
@@ -103,7 +104,7 @@ export const PipeCard: React.FC<PipeCardProps> = ({
size="sm"
variant="outline"
onClick={handleOpenWindow}
- className="hover:bg-muted font-medium no-card-hover"
+ className="hover:bg-muted font-medium relative no-card-hover"
>
<Puzzle className="h-3.5 w-3.5 mr-2" />
open
@@ -189,6 +190,15 @@ export const PipeCard: React.FC<PipeCardProps> = ({
<span className="relative z-10 font-mono">source</span>
</motion.a>
)}
+ <span className="inline-flex items-center gap-1 px-2 py-0.5 rounded-full bg-white/5 font-mono text-xs">
+ v{pipe.installed_config?.version}
+ </span>
+ {pipe.has_update && (
+ <span className="inline-flex items-center gap-1 px-2 py-0.5 rounded-full bg-white/10 font-mono text-xs animate-pulse">
+ <ArrowUpCircle className="h-3 w-3" />
+ update
+ </span>
+ )}
</div>
)}
</div>
diff --git a/screenpipe-app-tauri/components/pipe-store/pipe-details.tsx b/screenpipe-app-tauri/components/pipe-store/pipe-details.tsx
index 92a11b5f4..a146c7237 100644
--- a/screenpipe-app-tauri/components/pipe-store/pipe-details.tsx
+++ b/screenpipe-app-tauri/components/pipe-store/pipe-details.tsx
@@ -76,6 +76,14 @@ export const PipeDetails: React.FC<PipeDetailsProps> = ({
<Badge variant={"outline"} className="font-mono text-xs">
by {pipe.developer_accounts.developer_name}
</Badge>
+ {pipe.has_update && (
+ <Badge
+ variant="default"
+ className="bg-gray-800 text-xs animate-pulse"
+ >
+ update available
+ </Badge>
+ )}
</div>
</div>
@@ -157,7 +165,11 @@ export const PipeDetails: React.FC<PipeDetailsProps> = ({
</Button>
</TooltipTrigger>
<TooltipContent>
- <p>update pipe</p>
+ {pipe.has_update ? (
+ <p>update available! click to update pipe</p>
+ ) : (
+ <p>check for updates</p>
+ )}
</TooltipContent>
</Tooltip>
</TooltipProvider>
diff --git a/screenpipe-app-tauri/components/pipe-store/types.ts b/screenpipe-app-tauri/components/pipe-store/types.ts
index 14d84a57a..d5a066df4 100644
--- a/screenpipe-app-tauri/components/pipe-store/types.ts
+++ b/screenpipe-app-tauri/components/pipe-store/types.ts
@@ -23,6 +23,7 @@ export interface PipeWithStatus extends PipeStorePlugin {
has_purchased: boolean;
is_core_pipe: boolean;
is_installing?: boolean;
+ has_update?: boolean;
}
export interface BrokenPipe {
diff --git a/screenpipe-app-tauri/components/settings/account-section.tsx b/screenpipe-app-tauri/components/settings/account-section.tsx
index 2486cbef4..42e1cd944 100644
--- a/screenpipe-app-tauri/components/settings/account-section.tsx
+++ b/screenpipe-app-tauri/components/settings/account-section.tsx
@@ -86,10 +86,10 @@ export function AccountSection() {
const [showApiKey, setShowApiKey] = useState(false);
const [isAnnual, setIsAnnual] = useState(true);
const [profileForm, setProfileForm] = useState({
- bio: "",
- github_username: "",
- website: "",
- contact: "",
+ bio: settings.user?.bio || "",
+ github_username: settings.user?.github_username || "",
+ website: settings.user?.website || "",
+ contact: settings.user?.contact || "",
});
useEffect(() => {
@@ -266,15 +266,17 @@ export function AccountSection() {
}
};
- useEffect(() => {
- const interval = setInterval(() => {
- loadUser(settings.user?.token!);
- }, 1000);
- return () => clearInterval(interval);
- }, [settings]);
+ console.log(settings.user);
+ // Initialize form only once when user data first loads
useEffect(() => {
- if (settings.user) {
+ if (
+ settings.user &&
+ !profileForm.bio &&
+ !profileForm.github_username &&
+ !profileForm.website &&
+ !profileForm.contact
+ ) {
setProfileForm({
bio: settings.user.bio || "",
github_username: settings.user.github_username || "",
@@ -282,7 +284,14 @@ export function AccountSection() {
contact: settings.user.contact || "",
});
}
- }, []);
+ }, [settings.user]); // Only run when settings.user changes
+
+ useEffect(() => {
+ const interval = setInterval(() => {
+ loadUser(settings.user?.token!);
+ }, 1000);
+ return () => clearInterval(interval);
+ }, [settings]);
return (
<div className="w-full space-y-6 py-4">
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.lock b/screenpipe-app-tauri/src-tauri/Cargo.lock
index 5493c99a3..f2aceeb79 100755
--- a/screenpipe-app-tauri/src-tauri/Cargo.lock
+++ b/screenpipe-app-tauri/src-tauri/Cargo.lock
@@ -5273,7 +5273,7 @@ dependencies = [
[[package]]
name = "screenpipe-app"
-version = "0.28.9"
+version = "0.29.0"
dependencies = [
"anyhow",
"async-stream",
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.toml
index fc71dbf89..10e28d77b 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.29.0"
+version = "0.29.1"
description = ""
authors = ["you"]
license = ""